LaTeX forum ⇒ LyXhow to make nested footnotes in Lyx? Topic is solved

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
ExecutorElassus
Posts: 91
Joined: Wed Sep 07, 2011 3:14 pm

how to make nested footnotes in Lyx?

Postby ExecutorElassus » Mon Jan 20, 2014 3:21 am

I've read the following reports regarding bigfoot and footnotes:

This one, and this one, and also this one.

They all provide slightly different ways of achieving what I want, which is footnotes within footnotes (for the sake of annotation). However, I've read that Lyx does not allow this, and my attempts to modify a lyx document consistently result in an error about missing a number at the point of the second footnote insertion.

I'm using the bigfoot package, also KOMAScript (which invokes hyperref, making it difficult to insert the hyperfootnotes=false command, as one of those threads suggests). The relevant section of my present preamble reads thus:

  1. \usepackage[ruled]{bigfoot}
  2. \DeclareNewFootnote{default}
  3. \DeclareNewFootnote{B}[symbol*]
  4. \MakeSortedPerPage{footnoteB}
  5. \makeatletter
  6. \let\@makefntext@orig\@makefntext
  7. \FootnoteSpecific{B}\def\@makefntext{\@makefntext@orig\tiny}
  8. \makeatother

which compiles fine unless I insert a {\footnoteB} into the text.

Am I doing something wrong? Is there some other way to achieve this in Lyx?

Thanks,

EE

EDIT: Added "solved" to the subject, which is a habit I picked up from another forum. It's helpful!
Last edited by ExecutorElassus on Mon Jan 20, 2014 9:22 pm, edited 1 time in total.

Tags:

User avatar
cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Mon Jan 20, 2014 9:03 pm

First of all I am not a LyX user usually.

This preamble addition works for me:
  1. \usepackage{bigfoot}
  2. \DeclareNewFootnote{default}
  3. \DeclareNewFootnote{B}[fnsymbol]
  4. \MakePerPage{footnoteB}


Note the line
  1. \DeclareNewFootnote{B}[fnsymbol]

which is different from yours. The optional argument (the one in square brackets) determines how the corresponding footnote counter is formatted. Basically it means that a command \fnsymbol{footnoteB} is called. In your preamble the line reads
  1. \DeclareNewFootnote{B}[symbol*]
which would call a command \symbol*{footnoteB} which won't work in standard LaTeX for formatting a counter and thus must produce an error.

Please also note the line
  1. \MakePerPage{footnoteB}

The \fnsymbol only has nine symbols! This means if the number of footnotes exceeds nine an error will be thrown. The above line tries to prevent this by starting from the first symbol on a new page.

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

ExecutorElassus
Posts: 91
Joined: Wed Sep 07, 2011 3:14 pm

Postby ExecutorElassus » Mon Jan 20, 2014 9:21 pm

ZOMG that fixed it. Thank you so much for clarifying this. As you can see, there are a bunch of different threads about it, and they're all somewhat old. It doesn't help that the documentation for bigfoot is … sparse, to put it mildly, and the documentation for manyfoot on which it relies was written by a non-native speaker.

As for the finite counter, I do not expect to have more than nine of these per page (they are, after all, annotations to footnotes, and should thus be comparitively rare). If it comes down to it, I imagine I could make another footnote/counter set for the next level down.

Anyway, now it compiles fine, so I'm going to spend some time geeking out with the fine-tuning.

Thanks again,

EE
PS- while I set it to [SOLVED], I still have a couple questions. First, the size specification doesn't seem to accept the more-varied size descriptions available to KOMAScript (such as "smaller" and "smallest"), instead going from "small" to "tiny." Is there a way around this? Also, If I did, in fact, want to add a third apparatus, how much of the code in the preamble would I need to copy and duplicate? Thanks again.
Last edited by ExecutorElassus on Mon Jan 20, 2014 9:32 pm, edited 1 time in total.

User avatar
cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Mon Jan 20, 2014 9:31 pm

ExecutorElassus wrote:As for the finite counter, I do not expect to have more than nine of these per page (they are, after all, annotations to footnotes, and should thus be comparitively rare).

That's what I thought. But without the \MakePerPage call the error would be thrown if you had more than nine document wide so I thinks it's better to include it.

BTW: the \MakePerPage macro is provided by the perpage package which is loaded by bigfoot.

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim


Return to “LyX”

Who is online

Users browsing this forum: No registered users and 2 guests