-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout_14000.tex
62 lines (49 loc) · 968 Bytes
/
layout_14000.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
\documentclass{article}
\usepackage{subfigure}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{lscape}
\usepackage{pdfpages}
\usepackage{pgffor}
\usepackage[pass]{geometry}
\newgeometry{margin=0pt}
\usepackage[font=tiny,skip=0pt]{caption}
\extrafloats{1}
\begin{document}
\begin{landscape}
\newcommand*{\samples}
{
Novy_prostor,
Vnuknuti}
\newcommand{\type}{14000}
\newcounter{cards_line}
\newcounter{cards_page}
\newcounter{copy}
\setcounter{cards_line}{3}
\setcounter{cards_page}{6}
\setcounter{copy}{0}
\centering
\tiny{\type}
\loop
\foreach \x in \samples
{
\includegraphics[scale=0.75]{cards/\type/\x.png}
%
\addtocounter{cards_line}{-1}
\addtocounter{cards_page}{-1}
\ifnum\value{cards_line} < 1
\setcounter{cards_line}{3}
\fi
%
\ifnum\value{cards_page} < 1
\clearpage
\tiny{\type}
\setcounter{cards_page}{6}
\fi
}
\addtocounter{copy}{1}
\ifnum\value{copy} < 3
\repeat
\end{landscape}
\end{document}