# [Tex/LaTex] Combine class and page breaks

combinepage-breaking

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?

\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 was doc1.tex, doc2.tex etx and doc.tex looked like

\documentclass{article}
\usepackage{a,b,c}
\begin{document}
\input{doc1-body}
\end{document}


where doc1-body,tex is

stuff...


Then your combined document can be

\documentclass{article}
\usepackage{a,b,c}
\begin{document}
\input{doc1-body}
\input{doc2-body}
\input{doc3-body}
\input{doc4-body}
\end{document}
`

Or possibly with section headings in between each document, or whatever you need....