Combine class and page breaks

Course Queries Syllabus Queries 3 years ago

4.08K 2 0 0 0

User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 3 years ago


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?

0 views
0 shares

profilepic.png
manpreet 3 years ago


\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.texdoc2.texetx 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....


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Similar Forum