My coauthor and I have a tex file for the paper (main.tex), and another tex file for tables and figures (tables_and_figures.tex). Previously, we would compile main.tex, and then compile tables_and_figures.tex to start at the next page number. I'm curious if it is possible to refer to tables_and_figures.tex in main.tex so that we just have to compile main.tex, and it will start tables_and_figures.tex following the content. Importantly, tables_and_figures.tex has its own preambles, which seems to be incompatible with \include or \input (if my understanding of these commands based on the few postings is correct).
Asked
Active
Viewed 42 times
\refor anything similar to create references/links frommain.texto specific pages/elements oftables_and_figures.tex? If not, you could just add the compiled PDF fortables_and_figures.texat the end ofmain.texwith the pdfpages package. If you need linked references, it's more difficult. – frabjous May 28 '22 at 22:19shared.texthen\inputthat into each document. – David Carlisle May 28 '22 at 23:23pagecommand={}. I.e.,\includepdf[pages=-,pagecommand={}]{tables_and_figures}. (pdfpages usually supresses the page numbers of the pages it adds, but this makes it not do so; see here). – frabjous May 29 '22 at 00:02