LyX ⇒ HELP Lyx command \appendix
HELP Lyx command \appendix
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!!
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
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
HELP Lyx command \appendix
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

Code: Select all
\documentclass{report}
\usepackage{appendix}
\begin{document}
\chapter{One}
The chapter content
\section{A section}
The section content
\section{Another section}
The section content
\begin{subappendices}
\chapter*{Appendix}
\section{A title for the appendix}
Appendix text
\section{Another heading in the appendix}
More appendix text
\end{subappendices}
\chapter{Two}
The chapter content
\section{A section}
text
\begin{subappendices}
\chapter*{Appendix}
\section{Title for an appendix}
text
\section{Another title for an appendix}
text
\end{subappendices}
...
\end{document}
Stefan
HELP Lyx command \appendix
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!