I have a quite huge thesis-latex-document with lots of references to the appendix. The whole document I would like to split into two pdf-files. That means: I would like to have the thesis and the appendix as separate .pdf-outputs with own titlepages but the references in the main document leading to the appendix, so I can print out two independent documents.
The reason is: The main file is my thesis, the appendix is - obviously - the appendix that is not actually independent from the thesis but should be treated as independent if you know what I mean. I would like to be able to give out the thesis without the appendix but the references that I have to the appendix should indicate that it actually is another document.
I assume I'll have to create two separate "main files". One for the main document "thesis.tex" and one for the appendix "appendix.tex". The question then is: How can I
- let the included "appendix.tex"-file get compiled while actually compiling the "thesis.tex" including all necessary references? In this case the hyperlinks are not that important.
- get as output thesis.pdf and appendix.pdf?
- get the reference in the main document point to sth. like "Appendix, p. XY" or - preferabily since I am writing in German - "Anhang, S. XY"?
I am using Sublime Text with the latexing-extension but I guess this is not very important in this case. In terms of typesetting engine I use pdflatex, so nothing really experimental.
After all I need to know: What package do I might need for this? What changes do I need to undertake in my document (for example labels) to accomplish the above mentioned results?