-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathliste_des_rumtreibers.sty
173 lines (143 loc) · 4.16 KB
/
liste_des_rumtreibers.sty
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
\ProvidesPackage{liste_des_rumtreibers}
% ---------
% Options
% ---------
% layoutforscreen: Adjusts layout so that it is more comfortable to read on
% screen.
\DeclareOption{layoutforscreen}{
\def\layoutforscreen{1}
}
% showmargins: Shows flowfram border.
\DeclareOption{showborder}{
\def\showmarginsforflowfram{1}
\PassOptionsToPackage{draft}{flowfram}
}
% Fallback
\DeclareOption*{
\ClassWarning{liste_des_rumtreibers}{Unknown option '\CurrentOption'}
}
%% Process given options
\ProcessOptions\relax
% ------
% Main
% ------
% Define paper size.
\RequirePackage{extsizes} % font size 8pt
\RequirePackage[a4paper, landscape, margin=0cm, marginparwidth=0cm]{geometry}
% Define font.
\RequirePackage{fontspec}
\setromanfont{Futura Medium}
\RequirePackage{amsmath,amssymb,amsfonts}
\RequirePackage{graphicx}
\RequirePackage{textcomp}
\RequirePackage{xcolor}
\RequirePackage{csquotes}
\RequirePackage{titlesec}
% Count all locations (for showing the total value on the title page).
\RequirePackage{totcount}
% Counter für alle Locations:
\newtotcounter{locations}
% Counter für noch nicht besichtigte Locations (für die Beta-Phase):
\newtotcounter{reviewlocations}
% -------------
% Page Layout
% -------------
% Define page frames.
\RequirePackage{flowfram}
\ifx\layoutforscreen\undefined
%% DIN A4 Format: 210 × 297
% \newflowframe[⟨pages⟩]{⟨width⟩}{⟨height⟩}{⟨x⟩}{⟨y⟩}[⟨label⟩]
\newflowframe[all]{64mm}{95mm}{ 5mm}{205mm}[one]
\newflowframe[all]{64mm}{95mm}{ 5mm}{ 5mm}[two]
\newflowframe[all]{64mm}{95mm}{ 79mm}{ 5mm}[three]
\newflowframe[all]{64mm}{95mm}{153mm}{ 5mm}[four]
\newflowframe[all]{64mm}{95mm}{227mm}{ 5mm}[five]
\newflowframe[all]{64mm}{95mm}{227mm}{205mm}[six]
\newflowframe[all]{64mm}{95mm}{153mm}{205mm}[seven]
\newflowframe[all]{64mm}{95mm}{ 79mm}{205mm}[eight]
\setflowframe*{one}{angle=180}
\setflowframe*{six}{angle=180}
\setflowframe*{seven}{angle=180}
\setflowframe*{eight}{angle=180}
\else
%% DIN A4 Format: 210 × 297
% \newflowframe[⟨pages⟩]{⟨width⟩}{⟨height⟩}{⟨x⟩}{⟨y⟩}[⟨label⟩]
\newflowframe[1] {64mm}{95mm}{227mm}{ 5mm}[title]
\newflowframe[all]{64mm}{95mm}{ 5mm}{110mm}[one]
\newflowframe[all]{64mm}{95mm}{ 79mm}{110mm}[two]
\newflowframe[all]{64mm}{95mm}{153mm}{110mm}[three]
\newflowframe[all]{64mm}{95mm}{227mm}{110mm}[four]
\newflowframe[all]{64mm}{95mm}{ 5mm}{ 5mm}[five]
\newflowframe[all]{64mm}{95mm}{ 79mm}{ 5mm}[six]
\newflowframe[all]{64mm}{95mm}{153mm}{ 5mm}[seven]
\newflowframe[>2] {64mm}{95mm}{227mm}{ 5mm}[eight]
\fi
\ifx\showmarginsforflowfram\undefined
\else
\showmarginsfalse
\fi
% ---------------
% Scissor marks
% ---------------
\RequirePackage{tikz}
\RequirePackage{pifont}
%% DIN A4 Format: 210 × 297
% \newstaticframe[⟨pages⟩]{⟨width⟩}{⟨height⟩}{⟨x⟩}{⟨y⟩}[⟨label⟩]
\newstaticframe[1]{148.5mm}{10mm}{74.25mm}{100mm}[cutmark]
\begin{staticcontents*}{cutmark}
\begin{tikzpicture}[overlay]
\node (left) at (0,0) {\ding{34}}; % \ding{34} is pifont's scissor symbol
\node (right) at (148.5mm,0mm) {};
\draw [dotted] (left) -- (right);
\end{tikzpicture}
\end{staticcontents*}
% ---------
% Spacing
% ---------
% Reduce spacing around section headers.
\titlespacing*{\section}
{0pt} % left
{1.2ex} % top
{0.7ex} % bottom
\titlespacing*{\subsection}
{0pt} % left
{1.1ex} % top
{0.6ex} % bottom
\setlength\parindent{0pt}
\setlength\tabcolsep{0.0mm}
% -----------
% Titlepage
% -----------
\newcommand{\version}[1]{%
\gdef\theVersion{#1}%
}
% -------------------
% Location commands
% -------------------
\newenvironment{locations}{
\begin{tabular}{c c p{34mm} p{22mm}}
}{
\end{tabular}
}
\newenvironment{emptylocations}{
\renewcommand{\arraystretch}{1.3}
\begin{locations}
}{
\end{locations}
\renewcommand{\arraystretch}{1.0}
}
\newcommand{\location}[1]{%
\stepcounter{locations}%
\;$\square$\; & $\heartsuit$\; & %
{#1\dotfill} & \hrulefill \\%
}
\newcommand{\emptylocation}[1]{%
\;$\square$\; & $\heartsuit$\; & %
{#1\dotfill} & \hrulefill \\%
}
% Für die Beta-Phase: Markiere Kneipen als noch nicht besichtigt.
\newcommand{\review}[1]{%
\stepcounter{reviewlocations}%
\textcolor{gray}{#1}%
}
\endinput