I have a document written in tex, although it is a shorter version of a larger document. For example, my short document is 10 pages, and once I elaborate on some parts in the shorter document, it will become 15 pages. I would like to create a new document which is essentially 25 pages long, the first 10 pages of which is the short document and the last 15 pages of which is the long version (placed in an appendix). The content of the 15 page part would repeat a lot of content from the first 10 pages.
I have two questions.
Is it possible to compile the short version and the long version together in one tex file (i.e., so the content of the entire 25 page document lies in the same tex file)? The only way I know of would involve a lot of work regarding changing label names/references, equations, etc.
I guess there is a way to concatenate the short version together with the long version as two separate pdf files (one 10 pages and the other 15 pages), even though I prefer not to do this. Is pdfpages the best way to do this? What if I want the appendix part to begin in the middle of a page at the end of my short document (and not on a new blank page)?
Here is an example. This will result in warnings though, which I want to avoid, and I would have to change the labels individually to fix these warnings (not only are there warnings, but right now both equation references refer to the second equation in the appendix):
\begin{document}
\section{main}
My equation:
\begin{equation}\label{eqn:addition}
1 + 1
\end{equation}
Equation~\ref{eqn:addition}
\appendix
\section{main}
My equation with some elaboration:
\begin{equation}\label{eqn:addition}
1 + 1
\end{equation}
Equation~\ref{eqn:addition} with more elaboration
\end{document}
\documentclass
and the appropriate packages that sets up the problem. This will go a long way to clarifying any issues. – Peter Grill Oct 23 '14 at 21:02