LyXFootnote numbering

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Gumbare
Posts: 11
Joined: Wed Dec 08, 2010 5:24 pm

Footnote numbering

Post by Gumbare »

How to keep Footnote numbering throughout the whole document (book).
It resets at the beginning of new chapter.
I'd like it to continue.

For example - Chapter I has five footnotes, numbered 1-5.
Chapter II has three footnoes and I'd like them to be 6, 7 and 8, but LyX (in KOMA-book) changes them to 1, 2 and 3 again.

any solutions?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Footnote numbering

Post by meho_r »

Put into the preamble the following:

Code: Select all

Code, edit and compile here:
\usepackage{chngcntr}
\counterwithout{footnote}{chapter}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
More infos in chngcntr documentation.
Gumbare
Posts: 11
Joined: Wed Dec 08, 2010 5:24 pm

Re: Footnote numbering

Post by Gumbare »

Thanks for reply. It works - but only on output file (dvi, pdf).
Within document I still have doubled and tripled and multiplied numbering.
Is this possible to change? (just asking)

PS I just discovered that this happens in Document Class (book KOMA script) and it works normally in simple article, so I'm guessing I'd need to change something in KOMA script, right?
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Re: Footnote numbering

Post by meho_r »

It is not koma-script-specific. Same applies to all document classes which use chapters (in article class, the highest sectioning unit is section). Also, I don't think this has anything to do with document classes themselves, rather with LyX's interface or layouts. But how to change that, I cannot say. You might try asking about this on LyX's mailing list, if nobody here comes with a solution.
jburkhart
Posts: 2
Joined: Fri Apr 23, 2021 6:42 pm

Footnote numbering

Post by jburkhart »

For anyone else late to the party who had the same question about LyX:

To change this sort of numbering in the LyX interface, you have to either change the LyX layout file used in your LyX document (Document > Settings > Document Class > Document Class), or you have to add it as a local layout (Document > Settings > Local Layout). See the LyX Customization Guide for documentation on LyX layout syntax, etc.

To get the numbering to be continuous across chapters, you can add this in your Local Layout:

Code: Select all

Counter footnote
Within part
LabelString "\arabic{footnote}"
End
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Note that the numbering will reset across parts now, rather than chapters. If this is an issue, I expect you could define a new counter one tier higher than part, and use that instead.

Hope this helps someone else late to the party like me!
Post Reply