Combine class and page breaks

Course Queries Syllabus Queries 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Syllabus Queries related to Course Queries. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 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?

profilepic.png
manpreet 2 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.