GeneralAppendix in the Middle of a Document

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
hkyz
Posts: 9
Joined: Wed Apr 25, 2012 9:37 am

Appendix in the Middle of a Document

Post by hkyz »

Are there any means to write appendices in the middle of the document, yet they will be appended at the end of document?

What I want to achieve is something like this:

Code: Select all

\documentclass{article}
\begin{document}

\section{Section A}
See Appendix A.

\begin{appendix} %%%
\section{Appendix A} %%%
This is appendix A. %%%
\end{appendix} %%%

\section{Section B}
See Appendix B.

\begin{appendix} %%%
\section{Appendix B} %%%
This is appendix B. %%%
\end{appendix} %%%

\end{document}
Attachments
app.png
app.png (22.7 KiB) Viewed 4157 times

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Appendix in the Middle of a Document

Post by localghost »

If it would appear in the middle of the document, it would not be called "Appendix", but "Parenthesis". And by the way, \appendix is a switch and not an environment.


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

Appendix in the Middle of a Document

Post by Stefan Kottwitz »

Within the main document source, it could be written to separate documents which could be included at the end. However, I doubt that it would be useful. In my opinion, such complex documents could be handled much better if you split into several files, i.e. a main document, and sections and appendix in document files which you load by \include. Writing all into one file, and even have a different order in the source than in the output, seems less manageable to me.

Stefan
LaTeX.org admin
Post Reply