LyXAppendix numbering not working in TOC with child documents

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Paul Richards
Posts: 13
Joined: Mon Jan 31, 2011 5:16 pm

Appendix numbering not working in TOC with child documents

Post by Paul Richards »

I am using LyX version 2.0.3. I have a main document with several child documents, the earlier ones chapters and the latter two appendices - all of them are of the 'Book' style. The appendices have a box around the whole document; this box is labelled 'Appendix'. At the start of the appendices is the heading; this is inside the box and is of the 'Chapter' level.

My problem is this: the appendix numbers are not being incremented in the table of contents: I have two appendix A ! I would expect appendix A and appendix B.

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

Paul Richards
Posts: 13
Joined: Mon Jan 31, 2011 5:16 pm

Appendix numbering not working in TOC with child documents

Post by Paul Richards »

I tried putting the heading (at chapter level) outside of the appendix box, but it caused problems.

I have solved the problem by inserting some TeX code at the start, e.g:

Code: Select all

\setcounter{chapter}{0}
becomes Appendix A

It will work OK but its not a neat solution!
Post Reply