I use combine
class to bundle some LaTeX files together.
The main file is essentially like this:
\documentclass{combine}
\begin{document}
\begin{papers}
\import{file1}
\import{file2}
\end{papers}
\end{document}
A typical included file takes less than a page of text, but in the end every file is on a single page, as combine seems to be putting a page break after every file. How would I avoid these page breaks?
Best Answer
\import
, like the standard latex\include
requires each imported document to start on a new page. But if your documents are so small, you probably can just use\input
instead and input the documents (which would need then just to be the document body without the preamble). If you need to process the documents individually as well as together there are various things you can do, hard to say without seeing an example but for instance if each small document wasdoc1.tex
,doc2.tex
etx anddoc
.tex` looked likewhere
doc1-body,tex
isThen your combined document can be
Or possibly with section headings in between each document, or whatever you need....