LaTeX forum ⇒ LyXHELP Lyx command \appendix Topic is solved

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Posts: 2
Joined: Sat Oct 06, 2018 5:41 pm

HELP Lyx command \appendix

Postby Tanja » Sat Oct 06, 2018 5:45 pm

Dor my thesis i decided to improve my work inserting directly in Lyx the command "\appendix" but i don't understand how to end this part.
I would like to insert an Appendix between two different chapters but if i use this command everything i'll write after that will be inside the Appendix without the possibility to come back to a "normal chapter".
Could someone help me?
Could someone explain me how to end the \appendix part?
Thanks a lot!!

User avatar
Stefan Kottwitz
Site Admin
Posts: 9392
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sat Oct 06, 2018 7:20 pm

Hi Tanja,

welcome to the forum!

Usually an appendix comes at the end. That's why there's the \appendix command to switch to the appendix, but not command to switch back. As an appendix in the middle of a document is very uncommon, there's no default support for it.

You could make it with the appendix package, such as, in LaTeX:

  1. \documentclass{report}
  2. \usepackage{appendix}
  3. \begin{document}
  4. \chapter{One}
  5. The chapter content
  6. \section{A section}
  7. The section content
  8. \section{Another section}
  9. The section content
  10. \begin{subappendices}
  11. \chapter*{Appendix}
  12. \section{A title for the appendix}
  13. Appendix text
  14. \section{Another heading in the appendix}
  15. More appendix text
  16. \end{subappendices}
  17. \chapter{Two}
  18. The chapter content
  19. \section{A section}
  20. text
  21. \begin{subappendices}
  22. \chapter*{Appendix}
  23. \section{Title for an appendix}
  24. text
  25. \section{Another title for an appendix}
  26. text
  27. \end{subappendices}
  28. ...
  29. \end{document}

Did you see a book with an appendix between chapters? As it's an addition anyway, it usually comes at the end. Your thesis may be nearly the only one with appendices within the actual document, which is an interesting idea but perhaps unusual styles may not be so honored, except the supervisor wants it that way.

Site admin

Posts: 2
Joined: Sat Oct 06, 2018 5:41 pm

Postby Tanja » Sun Oct 07, 2018 10:35 pm

Hi Stefan,
you're right, actually it's not very common what I wanted to. Maybe I should rethink it.
I am writing a chapter where I'm showing the results of a model I tested and at the end of the chapter I wanted to add an appendix with the R code used to produce the results. Then I wanted to switch back to a chapter for the conclusions.
Maybe it's simply the best to add the R code at the end of the thesis.
Thanks a lot!

Return to “LyX”

Who is online

Users browsing this forum: No registered users and 4 guests