Assume the following situation: You set problem sheets for a class, and at the end of the semester, you have 13 individual LaTeX files, including the preamble (the stuff from \\documentclass to \\begin{document}). Now you want to provide a file that contains all problems, followed by all problems with solutions. You could just concatenate the resulting PDFs, but that would waste quite a bit of paper, as most problem sheets do not fill the whole page. You could just copy’n’paste the LaTeX code, but that is not neat either. So you want to include the 13 individual documents in one LaTeX document. LaTeX provides \\include and \\input commands, but these would require that the content of the individual files, i.e. the stuff between \\begin{document} and \\end{document}, is put in a file of its own. You cannot just \\input the full problem sheet document, as there must be only one \\documentclass command, and a few preamble commands are invalid within the document. There are various
More
Support this project and others with 1-click micro-donations
