## LaTeX forum ⇒ LyX ⇒ HELP Lyx command \appendix Topic is solved

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

### HELP Lyx command \appendix

Hi!
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!!

Stefan Kottwitz
Posts: 9242
Joined: Mon Mar 10, 2008 9:44 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:

\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}

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.

Stefan

Tanja
Posts: 2
Joined: Sat Oct 06, 2018 5:41 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!

### Who is online

Users browsing this forum: No registered users and 4 guests