Generalthe same document four times

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
User avatar
mappo
Posts: 25
Joined: Thu Nov 29, 2007 11:19 am

the same document four times

Post by mappo »

I want to be able to print the same document on four A6 pages.
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?
If you don't recycle, you're throwing it all away.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post by Stefan Kottwitz »

Hi mappo,

you could use the pdfpages package, call \includepdf with the nup option, see its documentation.

Stefan
LaTeX.org admin
User avatar
mappo
Posts: 25
Joined: Thu Nov 29, 2007 11:19 am

the same document four times

Post by mappo »

That will probably do it.

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}
Here "lista" refers of course to lista.tex which is the non-complete document.
If you don't recycle, you're throwing it all away.
Post Reply