37965a93d1b3c781e48cc06bcf1f451d3d98b774
[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[silent]{fontspec} % silent - no warnings, quiet - warn only to log
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}{8mm}%{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=400
311 \widowpenalty=400
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{}\ignorespaces#1%
484 \end{quotation}%
485 }
486
487 \newcommand{\poezjacyt}[1]{%
488 \begin{verse}%
489 #1%
490 \end{verse}%
491 }
492 \newcommand{\motto}[1]{%
493 \begin{em}%
494 #1%
495 \end{em}%
496 }
497 \newcommand{\listaosob}[2]{%
498 \par{#1}%
499 \begin{itemize}%
500 #2%
501 \end{itemize}%
502 }
503
504 \newcommand{\nagloweklisty}[1]{%
505 \typosubsubsection{#1}%
506 }
507
508 \newcommand{\listaosoba}[1]{%
509 \item{#1}%
510 }
511
512 \newcommand{\kwestia}[1]{%
513 \par{#1}%
514 }
515
516 \newcommand{\naglowekakt}[1]{%
517 \pagebreak
518 \subsection*{\typosubsection{#1}}%
519 }
520 \newcommand{\naglowekczesc}[1]{%
521 \pagebreak
522 \part{#1}%
523 }
524 \newcommand{\srodtytul}[1]{%
525 \subsection{#1}%
526 }
527
528 \newcommand{\naglowekscena}[1]{%
529 \subsubsection*{\typosubsubsection{#1}}%
530 }
531
532 \newcommand{\theautorrozdzialu}{}
533
534 \newcommand{\autorrozdzialu}[1]{%
535 \renewcommand{\theautorrozdzialu}{{\normalfont\normalsize\newline{}\newline{}\parbox{\textwidth}{\normalsize\it #1}}}
536 }
537
538
539 \newcommand{\naglowekrozdzial}[1]{%
540 \chapter[#1]{\MakeUppercase{#1}\theautorrozdzialu{}}
541 \renewcommand{\theautorrozdzialu}{}%
542 }
543
544 \newcommand{\naglowekosoba}[1]{%
545 \par{\textsc{#1}}\nopagebreak%
546 }
547 \newcommand{\naglowekpodrozdzial}[1]{%
548 \section{#1}\nopagebreak%
549 }
550
551 \newcommand{\miejsceczas}[1]{%
552 \par{\emph{#1}}%
553 }
554 \newcommand{\didaskalia}[1]{%
555 \par{\emph{#1}}%
556 }
557
558 \newcommand{\akap}[1]{%
559 #1
560
561 % newline here needed, we don't use \par cause it ignores \noindent before
562 }
563 \newcommand{\akapdialog}[1]{%
564 \par{#1}%
565 }
566 \newcommand{\akapcd}[1]{%
567 \par{#1}%
568 }
569
570 \newcommand{\mottopodpis}[1]{%
571 \begin{em}%
572 \begin{flushright}%
573 #1%
574 \end{flushright}%
575 \end{em}%
576 }
577
578 \newcommand{\strofa}[1]{%
579 \par{\noindent{\ignorespaces#1\vspace{1em}}}%
580 }
581
582 \newcommand{\wers}[1]{#1}
583
584 \newcommand{\wersakap}[1]{%
585 \hspace*{1em}#1%
586 }
587 \newcommand{\werscd}[1]{%
588 \hspace*{8em}#1%
589 }
590 \newcommand{\werswciety}[2][1em]{%
591 \hspace*{#1}#2%
592 }
593
594 \ifshowfootnotes
595   \newcommand{\pa}[1]{\NoCaseChange{\footnote{#1 [przypis autorski]}}}
596   \newcommand{\pe}[1]{\NoCaseChange{\footnote{#1}}}
597   \newcommand{\pr}[1]{\NoCaseChange{\footnote{#1}}}
598   \newcommand{\pt}[1]{\NoCaseChange{\footnote{#1}}}
599 \else
600   \newcommand{\pa}[1]{}
601   \newcommand{\pe}[1]{}
602   \newcommand{\pr}[1]{}
603   \newcommand{\pt}[1]{}
604 \fi
605
606 \newcommand{\mat}[1]{$#1$}
607
608 \newcommand{\didasktekst}[1]{%
609 \emph{#1}%
610 }
611 \newcommand{\slowoobce}[1]{%
612 \emph{#1}%
613 }
614 \newcommand{\tytuldziela}[1]{%
615 \emph{#1}%
616 }
617 \newcommand{\wyroznienie}[1]{%
618 \emph{#1}%
619 }
620
621 \newcommand{\osoba}[1]{%
622 #1%
623 }
624
625 \newcommand{\sekcjaswiatlo}{%
626 \vspace{\baselineskip}%
627 }
628
629 \newcommand{\sekcjaasterysk}{%
630 \vspace{10pt}%
631 \begin{center}%
632 \par{*}%
633 \end{center}%
634 }
635
636 \newcommand{\separatorlinia}{%
637 \vspace{10pt}%
638 \hrule{}%
639 \vspace{10pt}%
640 }
641
642 \newcommand{\ilustrscale}[0]{1}
643 \newcommand{\setilustrscale}[1]{\renewcomand{\ilustrscale}{#1}}
644
645 \newcommand{\ilustr}[3][]{
646   \vspace{2\baselineskip}%
647   \begin{center}%
648     \ifthenelse{\isempty{#1}}%
649     {\par{\includegraphics{\trimspace{#2}}\\#3}}%
650     {\par{\includegraphics[#1]{\trimspace{#2}}\\#3}}%
651   \end{center}%
652   \vspace{2\baselineskip}%
653 }
654
655
656 \newcommand{\motyw}[2][0]{%
657 \ifshowthemes
658 \mbox{}%
659 \marginpar{%
660 \vspace{-8pt}%
661 \vspace{-#1\baselineskip}%
662 \raggedright{\hspace{0pt}%
663 \footnotesize{\color{theme}{#2}}}%
664 \vspace{\baselineskip}%
665 }%
666 \fi
667 }
668
669 \newcommand{\lista}[1]{%
670 \begin{compactitem}
671 \setlength{\parskip}{\parindent}
672 #1
673 \end{compactitem}
674 }
675
676 \newcommand{\punkt}[1]{%
677 \item #1
678 }
679 \newcommand{\link}[2]{\href{#1}{\uline{#2}\footnote{#1}}}
680
681 \newcommand{\www}[1]{{\normalfont\small\href{#1}{#1}}}