General ⇒ the same document four times
the same document four times
What is the best way to do this?
One idea that I have is to divide an A4 with a table and in each cell call
\input{documentFile}
Is there a better method? Perhaps something with minipage instead of table?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
the same document four times
you could use the pdfpages package, call \includepdf with the nup option, see its documentation.
Stefan
the same document four times
The document that is to be inserted is also a .tex file.
Will I have to compile it separately (so that it exists
"physically" on the HDD) before running the script with
the \includepdf command?
That way the project will have to consist of two complete
documents. As for now, there is only one document and
one other .tex file that gets \include:ed four times in a row.
Code: Select all
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{setspace}
\newcommand{\hit}{\fbox{\begin{minipage}{.45\textwidth}\input{lista}\end{minipage}}}
\begin{document}
\centering
\hit \hit
\\
\hit \hit
\end{document}