I am creating a document in a4 and it shall actually be printed out on a3 sheets of paper.
Some bits of informations:
The main document will be set in a4, vertical/normal orientation.
The document through pdfpages shall be in a3, i.e. the a4 pages next to each other.
Although I am not sure if this is relevant, the a4 document I create will most likely have an equal amount of pages.
=> Is it possible to address the page before the last page with a variable or logical expression of some sorts? If yes, the code could be used somewhat universally, instead of writing out the actual (discreet) number of pagers.
So in relation to the code in "a3"-MWE below, the 3 could be that variable or expression. (pages={last,1-3},)
MWE for the a4 document
\documentclass[
11pt,
a4paper,
]
{scrartcl}
\usepackage{
lmodern,
blindtext
}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{multicol}
\listfiles
\begin{document}
\begin{center}
This document has 4 pages.
\end{center}
\begin{multicols}{2}
\blinddocument
\blindtext[7]
\end{multicols}
\end{document}
MWE for the a3 document
\documentclass[
11pt,
a3paper,
landscape,
]
{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{pdfpages}
\listfiles
\begin{document}
\includepdf[pages={last,1-3},nup=2x1]{problem-pdpfages-second-last-page.pdf} %THIS IS JUST MY DOCUMENT NAME FOR THIS PROBLEM, please choose any document name how you see fit :)
\end{document}