-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path0.1-LT-Lerntheken--Übersicht.tex
46 lines (37 loc) · 1.18 KB
/
0.1-LT-Lerntheken--Übersicht.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
\documentclass[12pt,a5paper,landscape]{scrartcl}
% Seitennummer der ersten Karte, die keine Hilfekarte ist
\def\firstContentCard{1}
\usepackage{pgfmorepages}
%\pgfmorepagesloadextralayouts
\pgfpagesuselayout{8 on 1}[a4paper,border shrink=5mm]
%\nofiles
% See: https://tex.stackexchange.com/questions/166107/do-something-on-every-second-page
%\usepackage{atbegshi}
%\AtBeginShipout{%
% \ifnum\value{page}<\firstContentCard%
% %include all help cards
% \else%
% \ifodd\numexpr\value{page}-\firstContentCard%
% \AtBeginShipoutDiscard%
% \fi
% \fi
%}
%
%\input{6.1-LT-Bruchrechnung.inhalt}
\usepackage{grffile}
\usepackage{pgffor,pdfpages}
% Name der Lernstation.pdf ermitteln
% See: https://tex.stackexchange.com/questions/141194/creating-a-handout-with-the-notes-on-a-second-screen
\newcommand{\jobbasename}{}
\newcommand{\setjobbasename}{%
\def\split##1--##2!!!{\def\jobbasename{##1}}%
\expandafter\split\jobname!!!%
}
\setjobbasename
\begin{document}
% See: https://tex.stackexchange.com/questions/327658/how-to-rotate-every-second-page-in-a-pdf
\pdfximage{\jobbasename.pdf}
\foreach \p in {1,...,\the\pdflastximagepages}{%
\includepdf[pages=\p]{\jobbasename.pdf}%
}
\end{document}