171effd296b1d9e0d7c934963dbb1a8de3f89d70
[librarian.git] / librarian / pdf / wlpub.cls
1 % -*- coding: utf-8 -*-
2 \NeedsTeXFormat{LaTeX2e}
3 \ProvidesClass{wlpub}[2011/11/28 wolnelektury.pl book style]
4
5 % PDF customizations
6 %
7 % nofootnotes - disable generation of footnotes
8 % nothemes - disable generation of themes
9 % defaultleading - default leading
10 % onehalfleading - leading of 1.5 (interlinia)
11 % doubleleading - double leading (interlinia)
12 % a4paper,... - paper size as required by LaTeX
13 % nowlfont - don't use customized WL font
14
15 %\RequirePackage{geometry}
16 \RequirePackage{setspace}
17 \RequirePackage{type1cm}
18 \RequirePackage{amssymb}
19 \RequirePackage{amsmath}
20 \RequirePackage{paralist}
21 \RequirePackage[normalem]{ulem}
22 \RequirePackage{xifthen}
23 \RequirePackage{environ} % environments with \BODY, for wyimek
24
25 %\DeclareOption{13pt}{%
26 %\AtEndOfClass{%
27 % font size definitions, similar to ones in /usr/share/texmf-texlive/tex/latex/base/
28 %% \renewcommand\normalsize{%
29 %%    \@setfontsize\normalsize{13pt}{14.5pt}%
30 %%    \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
31 %%    \abovedisplayshortskip \z@ \@plus3\p@
32 %%    \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
33 %%    \belowdisplayskip \abovedisplayskip
34 %%    \let\@listi\@listI}\normalsize%
35 %% \renewcommand\footnotesize{%
36 %%    \@setfontsize\footnotesize\@xpt\@xiipt
37 %%    \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
38 %%    \abovedisplayshortskip \z@ \@plus3\p@
39 %%    \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
40 %%    \def\@listi{\leftmargin\leftmargini
41 %%                \topsep 6\p@ \@plus2\p@ \@minus2\p@
42 %%                \parsep 3\p@ \@plus2\p@ \@minus\p@
43 %%                \itemsep \parsep}%
44 %%    \belowdisplayskip \abovedisplayskip
45 %}%
46 %}%
47 %}
48
49 %% \DeclareOption{14pt}{\renewcommand{\normalsize}{\AtEndOfClass{\fontsize{14}{17}\selectfont}}}
50
51 \DeclareOption{defaultleading}{}
52 \DeclareOption{doubleleading}{\AtBeginDocument{\doublespacing}}%\setlength{\leading}{1em plus 0.5ex minus 0.2ex}}
53 \DeclareOption{onehalfleading}{\AtBeginDocument{\onehalfspacing}}%\setlength{\leading}{1em plus 0.5ex minus 0.2ex}}
54
55 %% This does not really work, since dvipdfm(x) will use it's configuration in /etc/texmf/dvipdfm(x) and force a global paper size setting.
56 \DeclareOption{a5paper}{%
57       \setlength{\paperheight}{210mm}%
58       \setlength{\paperwidth}{148mm}}
59 % a5paper dropped down size
60 \newif\ifcutafivepaper \cutafivepaperfalse
61 \DeclareOption{a5paperdd}{%
62   \setlength{\paperheight}{225mm}%
63   \setlength{\paperwidth}{160mm}%
64   \cutafivepapertrue
65 }
66
67 \newif\ifshowfootnotes \showfootnotestrue
68 \DeclareOption{nofootnotes}{\showfootnotesfalse}
69
70 \newif\ifshowthemes \showthemestrue
71 \DeclareOption{nothemes}{\showthemesfalse}
72
73 \newif\ifenablewlfont \enablewlfonttrue
74 \DeclareOption{nowlfont}{\enablewlfontfalse}
75
76
77 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{extbook}}
78 \ProcessOptions\relax
79 \LoadClass{extbook}
80 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
81
82 \usepackage{trace}
83 \usepackage{caption}
84 \usepackage{tabularx}
85 \usepackage[MeX]{polski}
86 \usepackage{icomma}
87 \usepackage[xetex]{graphicx}
88 \usepackage{fontspec}
89 \usepackage{xunicode}
90 \usepackage{xltxtra}
91 %\usepackage{trimspaces} % imported by something else?
92 \usepackage{color}
93 \usepackage[overload]{textcase}
94 \usepackage{scalefnt}
95 \usepackage[colorlinks=true,linkcolor=black,setpagesize=false,urlcolor=black,xetex,linktocpage]{hyperref}
96 %\usepackage{hyperref}
97 \usepackage{fancyhdr}
98
99 %\usepackage{fnpos}
100 \usepackage{printlen}
101 \usepackage{calc}
102 \usepackage[stable]{footmisc}
103
104 \usepackage{chngcntr}
105 \counterwithout{footnote}{chapter}
106
107 \usepackage[explicit]{titlesec}
108 \usepackage{microtype}
109
110 %% Wyimki - placing them on correct pages
111 \usepackage[strict]{changepage}
112 %\usepackage{fltpage}
113 %\usepackage{float}
114
115 \pagestyle{plain}
116 % bottom figure below footnotes
117 %\makeFNabove
118
119 %%% Hyphenation opts:
120 %\pretolerance=10000
121 \tolerance=2600
122 \emergencystretch=30pt
123
124
125 %%%%%%%%%%%%%%%%%%%%%%% Paper size
126 \setlength\baselineskip{7.14pt}
127 \ifcutafivepaper
128   \usepackage[%
129     paperwidth=160mm,%
130     paperheight=225mm,%
131     text={117mm,162mm},%
132     top=30mm,%
133     headsep=8mm,%
134     left=23mm,%
135     right=30mm]{geometry}%
136 \else
137   \usepackage[%
138     top=\dimexpr14.5mm+\baselineskip-16pt\relax, % margin will be smaller to accomodate for bigger header (16pt)
139     headsep=3\baselineskip,
140     headheight=16pt,
141     bottom=26.3mm,%
142     inner=14.5mm,%
143     outer=22.5mm,%
144     textheight=\dimexpr7.14pt*(32*2+1)\relax,%
145     includehead]{geometry}
146 \fi
147
148 %%%%%%%%%%%%%%%%%%%%%%%% Fonts
149
150 \setmainfont[
151 ItalicFont = CrimsonText-Italic,
152 BoldFont = CrimsonText-Bold,
153 BoldItalicFont = CrimsonText-BoldItalic,
154 Ligatures={Common, Contextual},
155 SmallCapsFont = CrimsonText-Roman,
156 SmallCapsFeatures={Letters=SmallCaps},
157 Mapping=tex-text
158 ]{CrimsonText-Roman}
159 \newfontface\sb{CrimsonText-Semibold}
160 \newfontface\intro{Archivo-Black}
161
162 %% For faking small caps You burn in typographic hell.
163 \makeatletter
164 \newlength\fake@f
165 \newlength\fake@c
166 \def\fakesc#1{%
167   \begingroup%
168   \xdef\fake@name{\csname\curr@fontshape/\f@size\endcsname}%
169   \fontsize{\fontdimen8\fake@name}{\baselineskip}\selectfont%
170   \uppercase{#1}%
171   \endgroup%
172 }
173 \makeatother
174
175 \setlength{\parindent}{3mm}
176 \setlength{\parskip}{0mm}
177
178 \renewcommand{\normalsize}{\fontsize{10.4}{14.28}\addfontfeature{LetterSpace=3.0}\selectfont}
179 \renewcommand{\large}{\fontsize{14}{14.28}\addfontfeature{LetterSpace=3.0,Letters=Uppercase}\selectfont} % srodtytul
180 \renewcommand{\small}{\fontsize{8}{14.28}\addfontfeature{LetterSpace=5.0}\selectfont} % paginy
181 \renewcommand{\Large}{\fontsize{15}{21.42}\addfontfeature{LetterSpace=0.0}\selectfont} % tytuł rozdziału
182 \renewcommand{\huge}{\fontsize{18}{28.56}\addfontfeature{LetterSpace=1.0}\selectfont} % wyimek
183 \renewcommand{\Huge}{\fontsize{24}{40}\selectfont} % cover
184 \renewcommand{\footnotesize}{\addfontfeature{LetterSpace=1.0}\fontsize{9}{10.74}\selectfont}
185
186
187
188 \definecolor{stoK}{cmyk}{0,0,0,1}
189 \definecolor{theme}{gray}{.3}
190 %\color{stoK}
191
192
193 %%%%%%%%%%%%%%%%%%%%%% Headings.
194 \pagestyle{fancy}
195 \fancyhf{}
196 \renewcommand{\headrulewidth}{0pt}
197 \renewcommand{\footrulewidth}{0pt}
198 \makeatletter
199 %%%%%%%%%% Nagłówek normalny
200 \cfoot{}
201 % this will go to \leftmark
202 \renewcommand{\chaptermark}[1]{\markboth{\MakeTextUppercase{#1}}{}}
203 \fancyhead[CE]{{\small\MakeTextUppercase{\@author, \@title}}}
204 \fancyhead[CO]{{\small\leftmark}}
205 \fancyhead[LE,RO]{{\small\intro\thepage}}
206 %%%%%%%%%% Nagłówek pierwszej strony rozdziału
207 \fancypagestyle{plain}{%
208 \fancyhf{}
209 \fancyhead[LE,RO]{{\small\intro\thepage}}
210 \renewcommand{\headrulewidth}{0pt}
211 \renewcommand{\footrulewidth}{0pt}}
212 \makeatother
213
214 %%%%%%%%%%%%%%%%%%%%%% Section title styles.
215 %% Chapters
216 \titleformat{\chapter}[block]%
217 {\Large\intro\addfontfeature{LetterSpace=0.5,Kerning={Uppercase}}}%
218 {}{0pt}{\parbox{80mm}{\raggedright#1}}
219 \newlength{\chapterposcorrection}\newlength{\chapterspaceafter}
220 \setlength{\chapterposcorrection}{-\headsep-2\baselineskip-2.352mm} % 2.352 is a measured correction:
221 \setlength{\chapterspaceafter}{14\baselineskip-14pt+2.352mm}%\f@size of large
222 \titlespacing*{\chapter}{0pt}{\chapterposcorrection}{\chapterspaceafter}
223
224 %% Sections
225 \titleformat{\section}%
226 {\addfontfeature{LetterSpace=0.3}\large}%
227 {\thesection{}.}{.5em}{\MakeTextUppercase{#1}}
228
229 \renewcommand{\thesection}{\Roman{section}}
230
231 \titleformat{\subsection}[runin]%
232 {}%
233 {\thesubsection{}.}{.5em}{\MakeTextUppercase{#1}.}[]
234
235 \renewcommand{\thesubsection}{\Alph{subsection}}
236 \titlespacing*{\subsection}{0pt}{\baselineskip}{.5em}
237
238 \newcommand{\typosubsubsection}[1]{%
239 {\textsc{#1}}
240 }
241
242 %% XXX delete them
243 \newcommand{\typosubsection}[1]{%
244 {\MakeTextUppercase{#1}}
245 }
246
247 \newcommand{\typosection}[1]{%
248 {\addfontfeature{FakeStretch=0.96, LetterSpace=-4.0}\emph{\scalefont{2}#1}}
249 %{\addfontfeature{Scale=2.0, FakeStretch=0.98, LetterSpace=-2.0}\emph{#1}}
250 }
251 %%%%%%%%%%%%%%%%%% ^^
252
253 %%%%% Footnotes (works with footmisc) %%%%%%%%
254 \newlength{\footnoteindent}\newlength{\footnoteprespace}
255 \setlength{\footnoteindent}{6mm}%{3.5mm}
256 \setlength{\footnoteprespace}{0em}
257 \makeatletter
258
259 \renewcommand\@makefnmark{%
260 \hspace{\footnoteprespace}
261 \hbox{{\normalfont \@thefnmark}}%
262 }
263 \renewcommand\thefootnote{[\arabic{footnote}]}
264
265 \setlength{\footnotemargin}{-\footnoteindent-\footnoteprespace-.3em}
266 \renewcommand\footnotelayout[1]{%
267   \setlength{\leftskip}{\footnoteindent}#1}
268
269 %% \long\def\@makefntext#1{%
270 %% \setlength{\leftskip}{\footnoteindent}%
271 %% \setlength{\hskip}{-\footnoteindent-\footnoteprespace-.1em}%
272 %% \hb@xt@ \dimexpr\footnoteindent+\footnoteprespace%
273 %% {\@makefnmark}#1
274 %% %  \parindent 1em\noindent \hb@xt@ 1.8em{\hss \@makefnmark \enskip}#1
275 %% }
276
277 % make public
278 \def\trimspace#1{\trim@spaces{#1}}
279
280 \makeatother
281
282 %%%%%%%%%%%%%%%%%%%%%% Wyimki
283 %% \floatstyle{plain}
284 %% \newfloat{wyimekbox}{p}{wmk}
285 %% \floatname{wyimekbox}{Wyimek}
286
287 \NewEnviron{wyimek}{%
288   \checkoddpage
289   \ifoddpage
290     \PackageWarning{wlpub}{Wyimek on odd page, omitting it.}
291   \else
292     \begin{figure}[tp]
293       \begin{center}
294         \begin{minipage}[t][\textheight][c]{70mm}
295           \huge\it\BODY
296         \end{minipage}
297       \end{center}
298     \end{figure}
299   \fi
300   \BODY
301 }
302
303
304
305
306
307 %%%%%%%%%%%%%%%%%%%%%%%%%%
308
309
310 \clubpenalty=100000
311 \widowpenalty=100000
312
313
314 % see http://osdir.com/ml/tex.xetex/2005-10/msg00003.html
315 \newsavebox{\ximagebox}\newlength{\ximageheight}
316 \newsavebox{\xglyphbox}\newlength{\xglyphheight}
317 \newcommand{\xbox}[1]
318 {\savebox{\ximagebox}{#1}\settoheight{\ximageheight}{\usebox {\ximapgebox}}%
319 \savebox{\xglyphbox}{\char32}\settoheight{\xglyphheight}{\usebox {\xglyphbox}}%
320 \raisebox{\ximageheight}[0pt][0pt]{%\raisebox{-\xglyphheight}[0pt] [0pt]{%
321 \makebox[0pt][l]{\usebox{\xglyphbox}}}%}%
322 \usebox{\ximagebox}%
323 \raisebox{0pt}[0pt][0pt]{\makebox[0pt][r]{\usebox{\xglyphbox}}}}
324
325
326 \newcommand{\makecover}{
327   %% \paperwidth=297mm
328
329
330   %% \paperheight=210mm
331
332   \newgeometry{paperwidth=297mm,paperheight=210mm}
333   \pdfpageheight=210mm
334   \pdfpagewidth=297mm
335
336   \thispagestyle{empty}
337   \newlength{\PictHOffset}
338   \newlength{\PictVOffset}
339   \setlength{\PictHOffset}{1in}
340   \addtolength{\PictHOffset}{\hoffset}
341   \addtolength{\PictHOffset}{\oddsidemargin}
342
343   \setlength{\PictVOffset}{1in}
344   \addtolength{\PictVOffset}{\voffset}
345   \addtolength{\PictVOffset}{\topmargin}
346   \addtolength{\PictVOffset}{\headheight}
347   \addtolength{\PictVOffset}{\headsep}
348   \addtolength{\PictVOffset}{\topskip}
349
350   \addtolength{\PictVOffset}{-\paperheight}
351
352   \noindent\hspace*{-\PictHOffset}%
353   \raisebox{\PictVOffset}[0pt][0pt]{\makebox[0pt][l]{%
354       \includegraphics[height=\pdfpageheight,width=\pdfpagewidth]{cover.pdf}}}
355
356   \restoregeometry
357   \pdfpageheight=210mm
358   \pdfpagewidth=148mm
359
360   }
361
362 \renewcommand{\maketitle}{
363   %\vspace{\paperheight}
364   \thispagestyle{empty}
365   \cleardoublepage
366   \setcounter{page}{1}
367   \thispagestyle{empty}
368   \begin{center}
369   \intro
370   {
371     \begin{spacing}{1.4}
372     \Huge \noindent \thetitle
373     \end{spacing}
374   }
375   \end{center}
376
377   \vspace{\baselineskip}
378
379   \begin{center}
380     \intro
381     {
382       \huge \noindent
383       \theauthor
384
385     }
386   \end{center}
387                   %\emph{\thankyou}\\
388                   %\indent\emph{You made this book possible.}
389   \vspace{7\baselineskip}
390
391   \begin{center}
392     \includegraphics[scale=.2]{logo.eps}
393   \end{center}
394
395 }
396
397
398 \newcommand{\editorialsection}{
399   \clearpage
400   \thispagestyle{empty}
401   {
402     \setlength{\parindent}{0mm}
403   \input{editorial}
404   }
405 }
406
407 \renewcommand*\contentsname{Spis treści}
408 \newcommand{\spistresci}{
409 {
410   \intro
411   \setcounter{tocdepth}{0}
412   \tableofcontents
413   \newpage
414 }
415 }
416
417
418
419
420 \newcommand{\tytul}[1]{%
421 #1%
422 \vspace{1em}%
423 }
424
425 \newcommand{\nazwapodutworu}[1]{%
426 \section*{#1}%
427 }
428
429 \newcommand{\autorutworu}[1]{%
430 #1
431 %\subsection*{\typosubsection{#1}}%
432 }
433
434 \newcommand{\dzielonadrzedne}[1]{%
435 \subsection*{#1}%
436 }
437
438 \newcommand{\nazwautworu}[1]{%
439 \section*{#1}%
440 }
441
442 \newcommand{\podtytul}[1]{%
443 \subsection*{\typosubsubsection{#1}}%
444 }
445
446 \newcommand{\podtytulpodutworu}[1]{%
447 \subsection*{\typosubsubsection{#1}}%
448 }
449
450 \newcommand{\translator}[1]{%
451 \subsection*{\typosubsubsection{tłum. #1}}%
452 }
453 \newcommand{\translatorsline}[1]{%
454 #1
455 }
456
457 \newcommand{\powiesc}[1]{#1}
458 \newcommand{\opowiadanie}[1]{#1}
459 \newcommand{\lirykal}[1]{#1}
460 \newcommand{\lirykalp}[1]{#1}
461 \newcommand{\dramatwierszowanyl}[1]{#1}
462 \newcommand{\dramatwierszowanylp}[1]{#1}
463 \newcommand{\dramatwspolczesny}[1]{#1}
464
465 \newcommand{\nota}[1]{%
466 \begin{em}%
467 \begin{flushleft}%
468 \noindent #1%
469 \end{flushleft}%
470 \end{em}%
471 }
472
473 \newcommand{\dedykacja}[1]{%
474 \begin{em}%
475 \begin{flushright}%
476 #1%
477 \end{flushright}%
478 \end{em}%
479 }
480
481 \newcommand{\dlugicytat}[1]{%
482 \begin{quotation}%
483 \noindent
484 #1%
485 \end{quotation}%
486 }
487
488 \newcommand{\poezjacyt}[1]{%
489 \begin{verse}%
490 #1%
491 \end{verse}%
492 }
493 \newcommand{\motto}[1]{%
494 \begin{em}%
495 #1%
496 \end{em}%
497 }
498 \newcommand{\listaosob}[2]{%
499 \par{#1}%
500 \begin{itemize}%
501 #2%
502 \end{itemize}%
503 }
504
505 \newcommand{\nagloweklisty}[1]{%
506 \typosubsubsection{#1}%
507 }
508
509 \newcommand{\listaosoba}[1]{%
510 \item{#1}%
511 }
512
513 \newcommand{\kwestia}[1]{%
514 \par{#1}%
515 }
516
517 \newcommand{\naglowekakt}[1]{%
518 \pagebreak
519 \subsection*{\typosubsection{#1}}%
520 }
521 \newcommand{\naglowekczesc}[1]{%
522 \pagebreak
523 \part{#1}%
524 }
525 \newcommand{\srodtytul}[1]{%
526 \subsection{#1}%
527 }
528
529 \newcommand{\naglowekscena}[1]{%
530 \subsubsection*{\typosubsubsection{#1}}%
531 }
532
533 \newcommand{\theautorrozdzialu}{}
534
535 \newcommand{\autorrozdzialu}[1]{%
536 \renewcommand{\theautorrozdzialu}{{\normalfont\normalsize\newline{}\newline{}\parbox{\textwidth}{\emph\normalsize #1}}}
537 }
538
539
540 \newcommand{\naglowekrozdzial}[1]{%
541 \chapter[#1]{\MakeUppercase{#1}\theautorrozdzialu{}}
542 \renewcommand{\theautorrozdzialu}{}%
543 }
544
545 \newcommand{\naglowekosoba}[1]{%
546 \par{\textsc{#1}}\nopagebreak%
547 }
548 \newcommand{\naglowekpodrozdzial}[1]{%
549 \section{#1}\nopagebreak%
550 }
551
552 \newcommand{\miejsceczas}[1]{%
553 \par{\emph{#1}}%
554 }
555 \newcommand{\didaskalia}[1]{%
556 \par{\emph{#1}}%
557 }
558
559 \newcommand{\akap}[1]{%
560 \par{#1}%
561 }
562 \newcommand{\akapdialog}[1]{%
563 \par{#1}%
564 }
565 \newcommand{\akapcd}[1]{%
566 \par{#1}%
567 }
568
569 \newcommand{\mottopodpis}[1]{%
570 \begin{em}%
571 \begin{flushright}%
572 #1%
573 \end{flushright}%
574 \end{em}%
575 }
576
577 \newcommand{\strofa}[1]{%
578 \par{\noindent{\ignorespaces#1\vspace{1em}}}%
579 }
580
581 \newcommand{\wers}[1]{#1}
582
583 \newcommand{\wersakap}[1]{%
584 \hspace*{1em}#1%
585 }
586 \newcommand{\werscd}[1]{%
587 \hspace*{8em}#1%
588 }
589 \newcommand{\werswciety}[2][1em]{%
590 \hspace*{#1}#2%
591 }
592
593 \ifshowfootnotes
594   \newcommand{\pa}[1]{\NoCaseChange{\footnote{#1 [przypis autorski]}}}
595   \newcommand{\pe}[1]{\NoCaseChange{\footnote{#1}}}
596   \newcommand{\pr}[1]{\NoCaseChange{\footnote{#1}}}
597   \newcommand{\pt}[1]{\NoCaseChange{\footnote{#1}}}
598 \else
599   \newcommand{\pa}[1]{}
600   \newcommand{\pe}[1]{}
601   \newcommand{\pr}[1]{}
602   \newcommand{\pt}[1]{}
603 \fi
604
605 \newcommand{\mat}[1]{$#1$}
606
607 \newcommand{\didasktekst}[1]{%
608 \emph{#1}%
609 }
610 \newcommand{\slowoobce}[1]{%
611 \emph{#1}%
612 }
613 \newcommand{\tytuldziela}[1]{%
614 \emph{#1}%
615 }
616 \newcommand{\wyroznienie}[1]{%
617 \emph{#1}%
618 }
619
620 \newcommand{\osoba}[1]{%
621 #1%
622 }
623
624 \newcommand{\sekcjaswiatlo}{%
625 \vspace{\baselineskip}%
626 }
627
628 \newcommand{\sekcjaasterysk}{%
629 \vspace{10pt}%
630 \begin{center}%
631 \par{*}%
632 \end{center}%
633 }
634
635 \newcommand{\separatorlinia}{%
636 \vspace{10pt}%
637 \hrule{}%
638 \vspace{10pt}%
639 }
640
641 \newcommand{\ilustrscale}[0]{1}
642 \newcommand{\setilustrscale}[1]{\renewcomand{\ilustrscale}{#1}}
643
644 \newcommand{\ilustr}[3][]{
645   \vspace{2\baselineskip}%
646   \begin{center}%
647     \ifthenelse{\isempty{#1}}%
648     {\par{\includegraphics{\trimspace{#2}}\\#3}}%
649     {\par{\includegraphics[#1]{\trimspace{#2}}\\#3}}%
650   \end{center}%
651   \vspace{2\baselineskip}%
652 }
653
654
655 \newcommand{\motyw}[2][0]{%
656 \ifshowthemes
657 \mbox{}%
658 \marginpar{%
659 \vspace{-8pt}%
660 \vspace{-#1\baselineskip}%
661 \raggedright{\hspace{0pt}%
662 \footnotesize{\color{theme}{#2}}}%
663 \vspace{\baselineskip}%
664 }%
665 \fi
666 }
667
668 \newcommand{\lista}[1]{%
669 \begin{compactitem}
670 \setlength{\parskip}{\parindent}
671 #1
672 \end{compactitem}
673 }
674
675 \newcommand{\punkt}[1]{%
676 \item #1
677 }
678 \newcommand{\link}[2]{\href{#1}{\uline{#2}\footnote{#1}}}
679
680 \newcommand{\www}[1]{{\normalfont\small\href{#1}{#1}}}