-
Notifications
You must be signed in to change notification settings - Fork 0
/
DASTmacros.tex
163 lines (129 loc) · 4.35 KB
/
DASTmacros.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
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
\hyphenation{Mi-khay-lo-vna Do-lo-khov Be-zu-khov Kar-lo-vich Lange-ron
Co-pen-ha-gen Dmi-trie-vna Pav-lo-vich Na-ta-sha Kuz-mi-ni-chna Bol-kho-vi-ti-nov
Bo-ro-di-no Ku-tu-zov Pav-lo-vna
Ger-mers-heim Ca-me-na Lou-ana Ka-rin Ka-rolin Ma-nu-el }
% babel
\selectlanguage{dutch}
% graphixs
\graphicspath{{img/}}
% chngcntr
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
% color
\definecolor{ornament}{RGB}{0,80,0}
% \definecolor{marron}{RGB}{60,30,10}
% \definecolor{darkblue}{RGB}{0,0,80}
% \definecolor{lightblue}{RGB}{80,80,80}
% \definecolor{darkgreen}{RGB}{0,80,0}
% \definecolor{darkgray}{RGB}{0,80,0}
% \definecolor{darkred}{RGB}{80,0,0}
% \definecolor{shadecolor}{rgb}{0.97,0.97,0.97}
\input Acorn.fd
\newcommand*\initfamily{\usefont{U}{Acorn}{xl}{n}}
\newcommand{\nm}{}
\iftablet
\geometry{
paperwidth=220mm,
paperheight=150mm,
left=2cm,
right=2cm,
top=1.5cm,
bottom=2.5cm,
% nohead
}
\else % periodicalaureo
\geometry{
paperwidth=170mm,
paperheight=240mm,
right=18.9mm, %37.8mm,
left= 37.8mm,%18.9mm,
top=26.7mm,
bottom=41mm, % should be 53.3mm
}
\fi
\renewcommand{\headrule}{{\color{ornament}
\raisebox{-2.1pt}[10pt][10pt]{\leafright} \hrulefill
\raisebox{-2.1pt}[10pt][10pt]{~~~\decofourleft \decotwo\decofourright~~~} \hrulefill
\raisebox{-2.1pt}[10pt][10pt]{ \leafleft}}
}
\renewcommand{\footnoterule}{\vspace{-0.8em}
\noindent
{\color{ornament}\pgfornament[width=5cm]{88} }
{\color{ornament}\includegraphics[width=5cm]{tikz/88} }
\vspace{.5em} }
\fancyfoot[RO,CO,LO,RE,CE,LE]{ }
\fancyhead[RO,CO,LO,RE,CE,LE]{ }
\fancyhead[RO,LE]{\scriptsize\thepage}
\fancyfoot[RE,LO]{{\scriptsize Tine De Booij - Een familieverhaal}}
\fancyfoot[RO,LE]{\scriptsize\thepage}
\fancyfoot[C]{{\color{ornament}\pgfornament[width=1cm]{69}}}
\fancyfoot[C]{{\color{ornament}\includegraphics[width=1cm]{tikz/69}}}
\fancypagestyle{plain}{%
\fancyfoot[RO,LE]{\scriptsize\thepage}
\fancyhead[RO,LE]{\scriptsize\thepage}
\fancyhead[CO]{}
\fancyfoot[LO,CO]{}
}
\titleformat{\part}
{\hbox{\begin{minipage}{\textwidth}\color{ornament}
% \pgfornament[height=1cm]{63}\hfill%
% \pgfornament[height=1cm]{71}\iftablet\pgfornament[height=1cm]{71}\fi\hfill%
% \pgfornament[height=1cm]{64}\\[1em]
\includegraphics[height=1cm]{tikz/63}\hfill%
\includegraphics[height=1cm]{tikz/71}\iftablet\includegraphics[height=1cm]{tikz/71}\fi\hfill%
\includegraphics[height=1cm]{tikz/64}\\
\end{minipage}}
\centering \LARGE\bfseries}
{\newline \thepart.}{.5em}{}[\vspace{1ex}\hbox{%
\begin{minipage}{\textwidth}\color{ornament}
% \pgfornament[height=1cm,symmetry=h]{63}\hfill%
% \pgfornament[height=1cm,symmetry=v]{71}\iftablet\pgfornament[height=1cm]{71}\fi\hfill%
% \pgfornament[height=1cm,symmetry=h]{64}\\[1em]
\scalebox{1}[-1]{\includegraphics[height=1cm]{tikz/63}}\hfill%
\scalebox{1}[-1]{\includegraphics[height=1cm]{tikz/71}}\iftablet\scalebox{1}[-1]{\includegraphics[height=1cm]{tikz/71}}\fi\hfill%
\scalebox{1}[-1]{\includegraphics[height=1cm]{tikz/64}}\\
\end{minipage}
}]
\titleformat{\chapter}
{\iftablet\vspace{-20mm}\else\vspace{-15mm}\fi\hbox{\begin{minipage}[0pt]{\textwidth}\color{ornament}
% \pgfornament[height=1cm]{63}\hfill%
% \pgfornament[height=1cm]{87}\hfill%
% \pgfornament[height=1cm]{64}\\[1em]
\includegraphics[height=1cm]{tikz/63}\hfill%
\includegraphics[height=1cm]{tikz/87}\hfill%
\includegraphics[height=1cm]{tikz/64}\\
\end{minipage}}\vspace{-.5em}
\LARGE\bfseries}
{\newline \thechapter.}{0.5em}{}%
[\iftablet\vspace{-13mm}\else\vspace{-10mm}\fi]
\titleformat{\section}
{\hbox{\begin{minipage}{\textwidth}\color{ornament}
\hfill\parbox{4cm}{\pgfornament[width=2cm]{84}\pgfornament[width=2cm]{84}}%
\raisebox{2.6pt}{\pgfornament[width=1cm,symmetry=v]{14}}
\end{minipage}}
\Large\bfseries}
{\newline \thesection.}{.5em}{}
\ifcalli
\newcommand{\calli}{\calligra}
\else
\newcommand{\calli}{\itshape}
\fi
\let\oldquote\quote
\let\oldendquote\endquote
\def\quote{\begingroup \oldquote \flushleft }
\def\endquote{\endflushleft \oldendquote \endgroup \bigskip}
\setlength{\headheight}{25pt}
\setcounter{totalnumber}{50}
\setcounter{topnumber}{50}
\setcounter{bottomnumber}{50}
\makeatletter
\def\initial{\@ifstar\@initial\@@initial}
\def\@initial#1#2{
\lettrine[lines=2, loversize=0.3, lraise=0]{``\initfamily #1}{#2}
}
\def\@@initial#1#2{
\lettrine[lines=2, loversize=0.3, lraise=0]{\initfamily #1}{#2}
}
\makeatother
% caption lenghts
%\setlength\abovecaptionskip{-0.7\baselineskip}