-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout_2000.tex
75 lines (62 loc) · 1.22 KB
/
layout_2000.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
63
64
65
66
67
68
69
70
71
72
73
74
75
\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}
{
Cerny_bananovnik,
Cerny_bananovnik_1,
Cerny_bananovnik_2,
Cerny_bananovnik_3,
Cerny_bananovnik_4,
Cerveny_bananovnik,
Cerveny_bananovnik_1,
Cerveny_bananovnik_2,
Cerveny_bananovnik_3,
Cerveny_bananovnik_4,
Modry_bananovnik,
Modry_bananovnik_1,
Modry_bananovnik_2,
Modry_bananovnik_3,
Modry_bananovnik_4}
\newcommand{\type}{2000}
\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}