I want to integrate the corrected exercises into a document. I would like these corrections to be inserted in reduced size (4 pages on one page) without carrying out post processing. Is there a package that allows compiling to change the layout?
I specify, the integrated corrector is not compiled, it is integrated as an external file in .tex format and not pdf. in fact I am looking for the equivalent of pdfpages for .tex files
I think I found an "original" solution that needs to be improved and tested. The idea is to combine the use of tcolorbox and multicols.
How to ensure that all boxes are the same size, that the distribution of boxes is homogeneous?
\documentclass{article}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage[most]{tcolorbox}
\usepackage{multicol}
\begin{document}
\tcbset{colback=red!5!white,colframe=red!75!black}
\lipsum[1-3]
\clearpage
\begin{multicols}{2}
\begin{tcolorbox}[%
width=\textwidth, height=\textheight,scale=0.5,
enhanced,
breakable,
frame hidden,
overlay broken = {
\draw[line width=0.5mm, red, rounded corners]
(frame.north west) rectangle (frame.south east);},
]{}
\lipsum[1-30]
\end{tcolorbox}
\end{multicols}
\clearpage
\lipsum[4-5]
\end{document}

pdfpagesdid you read the manual for the packagepdfpages? – daleif Jan 05 '23 at 12:53beamerdocument class, where you can make 4x1 handouts, I do not see the point of avoid post-processing with pdfpages, some tool as pdfnup, or from the printer menu, that are all trivial and do not need to touch the source .tex. AFAIK, there are no packages to do this automatically in other class. Of course, with flowfram, minipages, or simply two columns and a reduced font, you can simulate print 4 pages into one, but for what this mess? – Fran Jan 06 '23 at 22:08