5

I'm using LaTeX to write a quiz for the calculus class that I'm teaching, and I'm trying to save paper by using both sides of half a sheet of A4 paper (i.e., an A5 sheet) instead of one side of an A4 sheet. I'd like to print two double-sided copies of the quiz on a single sheet of A4 paper - i.e., the front side of the A4 sheet contains two copies of page 1, and the back side contains two copies of page 2. Is there a simple way to do this in LaTeX?

  • Other answers can be found here – Hafid Boukhoulda Sep 24 '18 at 9:08
  • @LoopSpace Okay, I withdraw my vote. – AndréC Mar 9 at 7:56
  • @LoopSpace it's done now :-) – AndréC Mar 9 at 8:02
  • 1
    @AndréC My feeling is that tikzmark (which is already on ctan) and pgfmorepages have different relationships to the core pgf code. Tikzmark builds something extra, but pgfmorepages replaces (and extends) something existing. If pgf doesn't want it, I'll happily upload it to ctan. – Loop Space Mar 9 at 9:46
5

This may be achieved by using pgfpages package that provides \pgfpageuselayout command to be put in the preambule of the document.

\documentclass[a5paper]{article}
\usepackage{lipsum}
\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper,landscape]

\begin{document}
\lipsum[1-5]
\end{document}

enter image description here

3

I've written an extension of pgfpages imaginatively called pgfmorepages (CTAN and github) which can handle repeating pages. The following code has two pages and each is repeated. Printing them out will give you two A5 double-sided copies.

\documentclass[a5paper]{article}
%\url{https://tex.stackexchange.com/q/452197/86}
\usepackage{lipsum}
\usepackage{pgfmorepages}
\pgfmorepagesloadextralayouts

\pgfpagesuselayout{repeated 2-up}[a4paper]

\begin{document}
\lipsum[1-5]
\end{document}

The resulting pages look like this:

first page

second page

If downloading from github, you need both pgfmorepages.sty and pgfmorepageslayouts.code.tex.

  • 1
    Oh! I'd use the repeated layout. Will you put this on CTAN? – David Purton Mar 9 at 6:13
  • 2
    @DavidPurton I've just been bug-fixing with a view to making it more readily available (it is downloadable from github) but thought I should offer it to the pgf maintainers first. – Loop Space Mar 9 at 7:57
  • @DavidPurton It's now on CTAN. – Loop Space May 9 at 18:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.