I have a big report with appendices. Now I would like to put my appendices in a separate file. That's no problem at all. But I refer to my appendices in my main file. What would be the easiest way to refer to my appendices in my main file, while the appendices themselves are separate?
Right now I have my appendices both in my main file and a separate appendices file and made sure the page numbering is the same. But now I have my appendices in my main file while I dont need them there.
Is there some easier way to do this?
Short version: is there some easy way to crossrefer to another latex file?
xrpackage (orxr-hyper), have a look at How to reference another document in LaTeX. If the answer there can already help you, we could close this question as a duplicate with link to that answer. – Stefan Kottwitz Apr 17 '11 at 14:39xrandxr-hyperpackages. There aint too much documentation on it. They seem to assume both latex files are in the same folder. Would it be possible also to refer to a file in a complete different folder? – Elmer Apr 17 '11 at 14:51\include/\includeonly. See When should I use \input vs \include ? for more information on this. – Alan Munn Apr 17 '11 at 15:25\includeand\includeonlythen? – Elmer Apr 17 '11 at 18:05\includeto include them in your source. This keeps your source documents manageable, but the whole document behaves as a single document from the point of view of cross-references. – Alan Munn Apr 17 '11 at 18:36\includeto include them in my mainfile. But with my seperate appendices, i have 2 "mainfiles". – Elmer Apr 17 '11 at 19:55\includeto include the chapters. How is that the same as having more than one main file? – Alan Munn Apr 17 '11 at 19:59chapters. Main2 is used to include myappendices.now the question is, what the easiest way is, to refer to my
appendicesin main1.hope u understand what i mean now. Excuse my english.
– Elmer Apr 17 '11 at 20:20\include. Then you can use\includeonlyto produce separate PDFs, one without references and one that is only references. – TH. Apr 17 '11 at 21:03