new cover type
[librarian.git] / librarian / pdf / wl.cls
1 % -*- coding: utf-8 -*-
2 \NeedsTeXFormat{LaTeX2e}
3 \ProvidesClass{wl}[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{fixltx2e}
16 \RequirePackage{setspace}
17 \RequirePackage{type1cm}
18 \DeclareOption{13pt}{%
19 \AtEndOfClass{%
20 % font size definitions, similar to ones in /usr/share/texmf-texlive/tex/latex/base/
21 \renewcommand\normalsize{%
22    \@setfontsize\normalsize{13pt}{14.5pt}%
23    \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
24    \abovedisplayshortskip \z@ \@plus3\p@
25    \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
26    \belowdisplayskip \abovedisplayskip
27    \let\@listi\@listI}\normalsize%
28 \renewcommand\footnotesize{%
29    \@setfontsize\footnotesize\@xpt\@xiipt
30    \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
31    \abovedisplayshortskip \z@ \@plus3\p@
32    \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
33    \def\@listi{\leftmargin\leftmargini
34                \topsep 6\p@ \@plus2\p@ \@minus2\p@
35                \parsep 3\p@ \@plus2\p@ \@minus\p@
36                \itemsep \parsep}%
37    \belowdisplayskip \abovedisplayskip
38 }%
39 }%
40 }
41 \DeclareOption{16pt}{%
42 \AtEndOfClass{%
43 % font size definitions, similar to ones in /usr/share/texmf-texlive/tex/latex/base/
44 \renewcommand\normalsize{%
45    \@setfontsize\normalsize{16pt}{18pt}%
46    \abovedisplayskip 15\p@ \@plus3\p@ \@minus7\p@
47    \abovedisplayshortskip \z@ \@plus3.5\p@
48    \belowdisplayshortskip 8\p@ \@plus4\p@ \@minus3\p@
49    \belowdisplayskip \abovedisplayskip
50    \let\@listi\@listI}\normalsize%
51 \renewcommand\footnotesize{%
52    \@setfontsize\footnotesize\@xpt\@xiipt
53    \abovedisplayskip 12\p@ \@plus2\p@ \@minus5\p@
54    \abovedisplayshortskip \z@ \@plus3.5\p@
55    \belowdisplayshortskip 7\p@ \@plus3.5\p@ \@minus3\p@
56    \def\@listi{\leftmargin\leftmargini
57                \topsep 7\p@ \@plus2.5\p@ \@minus2.5\p@
58                \parsep 3.5\p@ \@plus2.5\p@ \@minus\p@
59                \itemsep \parsep}%
60    \belowdisplayskip \abovedisplayskip
61 }%
62 }%
63 }
64
65 %% \DeclareOption{14pt}{\renewcommand{\normalsize}{\AtEndOfClass{\fontsize{14}{17}\selectfont}}}
66
67 \DeclareOption{defaultleading}{}
68 \DeclareOption{doubleleading}{\AtBeginDocument{\doublespacing}}%\setlength{\leading}{1em plus 0.5ex minus 0.2ex}}
69 \DeclareOption{onehalfleading}{\AtBeginDocument{\onehalfspacing}}%\setlength{\leading}{1em plus 0.5ex minus 0.2ex}}
70
71 %% 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.
72 \DeclareOption{a5paper}{%
73       \setlength{\paperheight}{210mm}%
74       \setlength{\paperwidth}{148mm}}
75
76
77 \newif\ifshowfootnotes \showfootnotestrue
78 \DeclareOption{nofootnotes}{\showfootnotesfalse}
79
80 \newif\ifshowthemes \showthemestrue
81 \DeclareOption{nothemes}{\showthemesfalse}
82
83 \newif\ifenablewlfont \enablewlfonttrue
84 \DeclareOption{nowlfont}{\enablewlfontfalse}
85
86 \newif\ifshowtoc \showtoctrue
87 \DeclareOption{notoc}{\showtocfalse}
88
89 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
90 \ProcessOptions\relax
91 \LoadClass[a4paper,oneside]{book}
92
93
94 \usepackage{trace}
95
96 \usepackage[MeX]{polski}
97
98 \usepackage[xetex]{graphicx}
99 \usepackage{fontspec}
100 \usepackage{xunicode}
101 \usepackage{xltxtra}
102
103 \usepackage{longtable}
104 \usepackage{tabu}
105 \usepackage{unicode-math}
106 \setmathfont{Latin Modern Math}
107
108 \usepackage[overload]{textcase}
109 \usepackage{scalefnt}
110 \usepackage[colorlinks=true,linkcolor=black,setpagesize=false,urlcolor=black,xetex]{hyperref}
111
112 \newfontfamily\alien[
113 SmallCapsFeatures = {Letters={SmallCaps,UppercaseSmallCaps}},
114 Numbers=OldStyle,
115 Scale=0.85,
116 LetterSpace=-1.0
117 ] {DejaVu Serif}
118
119 \ifenablewlfont
120 \setmainfont [
121 %ExternalLocation,
122 UprightFont = JunicodeWL-Regular,
123 ItalicFont = JunicodeWL-Italic,
124 BoldFont = JunicodeWL-Regular,
125 BoldItalicFont = JunicodeWL-Italic,
126 SmallCapsFont = JunicodeWL-Regular,
127 SmallCapsFeatures = {Letters={SmallCaps,UppercaseSmallCaps}},
128 Numbers=OldStyle,
129 Scale=1.04,
130 LetterSpace=-1.0
131 ] {JunicodeWL}
132
133 \defaultfontfeatures{
134 SizeFeatures={
135   {Size={-10.5}, FakeStretch=1.02, LetterSpace=2.0 },
136   {Size={10.5-12}, FakeStretch=2.00, LetterSpace=0.0 },
137   {Size={12-}, FakeStretch=0.98, LetterSpace=-2.0 }
138 }
139 }
140
141 \renewcommand{\textsc}[1]{%
142 {\addfontfeature{
143 SizeFeatures={
144   {Size={-10.5}, Scale=1.2, FakeStretch=1.02, LetterSpace=8.0 },
145   {Size={10.5-12}, Scale=1.2, FakeStretch=1.02, LetterSpace=8.0 },
146   {Size={12-}, FakeStretch=1.0, LetterSpace=8.0 }
147 },
148 Letters={SmallCaps,UppercaseSmallCaps}
149 }
150 #1}
151 }
152 \fi% enablewlfont
153
154 %{\Itshape JunicodeWL-Italic.ttf }
155 %{\bfseries Junicode-Bold.ttf }
156 %{\bfseries\itshape Junicode-BoldItalic.ttf }
157
158 \pagestyle{plain}
159 \usepackage{fancyhdr}
160 \usepackage{marginnote}
161
162
163 \makeatletter
164
165 % bottom figure below footnotes
166 \usepackage{fnpos}
167 \makeFNabove
168
169 \usepackage{color}
170 \definecolor{theme}{gray}{.3}
171
172 \setlength{\marginparsep}{2em}
173 \setlength{\marginparwidth}{8.5em}
174 \setlength{\oddsidemargin}{0pt}
175 \setlength{\voffset}{0pt}
176 \setlength{\topmargin}{0pt}
177 \setlength{\headheight}{0pt}
178 \setlength{\headsep}{0pt}
179 \setlength{\textheight}{24cm}
180
181 \pagestyle{fancy}
182 \fancyhf{}
183 \renewcommand{\headrulewidth}{0pt}
184 \renewcommand{\footrulewidth}{0pt}
185 \lfoot{{\footnotesize \textsc{\@author} \emph{\@title}}}
186 \cfoot{}
187 \rfoot{{\footnotesize \thepage}}
188
189 \clubpenalty=100000
190 \widowpenalty=100000
191
192
193 % see http://osdir.com/ml/tex.xetex/2005-10/msg00003.html
194 \newsavebox{\ximagebox}\newlength{\ximageheight}
195 \newsavebox{\xglyphbox}\newlength{\xglyphheight}
196 \newcommand{\xbox}[1]
197 {\savebox{\ximagebox}{#1}\settoheight{\ximageheight}{\usebox {\ximagebox}}%
198 \savebox{\xglyphbox}{\char32}\settoheight{\xglyphheight}{\usebox {\xglyphbox}}%
199 \raisebox{\ximageheight}[0pt][0pt]{%\raisebox{-\xglyphheight}[0pt] [0pt]{%
200 \makebox[0pt][l]{\usebox{\xglyphbox}}}%}%
201 \usebox{\ximagebox}%
202 \raisebox{0pt}[0pt][0pt]{\makebox[0pt][r]{\usebox{\xglyphbox}}}}
203
204 \newcommand{\makecover}[2]{
205         \pdfpagewidth=#1
206         \pdfpageheight=#2
207
208         \thispagestyle{empty}
209         \newlength{\PictHOffset}
210         \newlength{\PictVOffset}
211         \setlength{\PictHOffset}{1in}
212         \addtolength{\PictHOffset}{\hoffset}
213         \addtolength{\PictHOffset}{\oddsidemargin}
214
215         \setlength{\PictVOffset}{1in}
216         \addtolength{\PictVOffset}{\voffset}
217         \addtolength{\PictVOffset}{\topmargin}
218         \addtolength{\PictVOffset}{\headheight}
219         \addtolength{\PictVOffset}{\headsep}
220         \addtolength{\PictVOffset}{\topskip}
221         \addtolength{\PictVOffset}{-\pdfpageheight}
222
223         \noindent\hspace*{-\PictHOffset}%
224         \raisebox{\PictVOffset}[0pt][0pt]{\makebox[0pt][l]{%
225             \includegraphics[height=\pdfpageheight,width=\pdfpagewidth]{cover.png}}}
226         \clearpage
227
228         \setlength{\pdfpagewidth}{210mm}
229         \setlength{\pdfpageheight}{297mm}
230 }
231
232
233 \renewcommand{\maketitle}{
234     {
235     \thispagestyle{empty}
236     \footnotesize
237     \color{theme}
238
239     \noindent \begin{minipage}[t]{.35\textwidth}\vspace{0pt}
240         \href{http://www.wolnelektury.pl}{\xbox{\includegraphics[width=\textwidth]{wl-logo.png}}}
241     \end{minipage}
242     \begin{minipage}[t]{.65\textwidth}\vspace{0pt}
243
244     \ifflaglessadvertising
245     \else
246         \href{\bookurl}{Ta lektura}, podobnie jak tysiące innych, jest dostępna on-line na stronie
247         \href{http://www.wolnelektury.pl/}{wolnelektury.pl}.
248         \vspace{.5em}
249     \fi
250
251     \ifdefined\thanknote
252         \thanknote
253         \vspace{.5em}
254     \fi
255
256     Utwór opracowany został w ramach projektu \href{http://www.wolnelektury.pl/}{Wolne Lektury}
257     przez \href{http://nowoczesnapolska.org.pl}{fundację Nowoczesna Polska}.
258
259     \end{minipage}
260     \noindent \rule{\linewidth}{0.4pt}
261
262     \vspace{.6em}
263     \color{black}
264     }
265 }
266
267 \newcommand{\editorialsection}{
268   \begin{figure}[b!]
269   {
270     \footnotesize
271     \color{theme}
272     \noindent \rule{\linewidth}{0.4pt}
273
274     \ifdefined\sponsors
275         \marginnote{%
276             \centering%
277             \sponsors%
278         }
279     \fi
280
281     \rightsinfo
282     \vspace{.6em}
283
284     Źródło: \href{\bookurl}{\bookurl}
285
286     \vspace{.6em}
287     \sourceinfo
288
289     \publisherinfo
290
291     \description
292     \vspace{.6em}
293
294     \editors
295
296     \ifdefined\funders
297         \vspace{.6em}
298         \funders
299     \fi
300
301     \ifdefined\coverby
302         \vspace{.6em}
303         \coverby
304     \fi
305
306     \ifdefined\isbn
307         \vspace{.6em}
308         \isbn
309     \fi
310
311     \vspace{.6em}
312     \emph{Wesprzyj Wolne Lektury!}
313
314     Wolne Lektury to projekt fundacji Nowoczesna Polska – organizacji
315     pożytku publicznego działającej na rzecz wolności korzystania
316     z dóbr kultury.
317
318     Co roku do domeny publicznej przechodzi twórczość kolejnych autorów.
319     Dzięki Twojemu wsparciu będziemy je mogli udostępnić wszystkim bezpłatnie.
320
321     \vspace{.6em}
322     \emph{Jak możesz pomóc?}
323
324     Przekaż 1\% podatku na rozwój Wolnych Lektur:
325     Fundacja Nowoczesna Polska, KRS 0000070056.
326
327     Pomóż uwolnić konkretną książkę, wspierając
328     \href{http://www.wolnelektury.pl/wesprzyj/}{zbiórkę na stronie wolnelektury.pl}.
329
330     Przekaż darowiznę na konto:
331     \href{http://nowoczesnapolska.org.pl/pomoz-nam/wesprzyj-nas/}{szczegóły na stronie Fundacji}.
332
333     \color{black}
334   }
335   \end{figure}
336 }
337
338
339 \newcommand{\typosubsubsection}[1]{%
340 {\textsc{#1}}
341 }
342
343 \newcommand{\typosubsection}[1]{%
344 {\addfontfeature{
345 SizeFeatures={
346   {Size={-10}, Scale=1.2, FakeStretch=1.00, LetterSpace=8.0 },
347   {Size={10.5-12}, Scale=1.2, FakeStretch=1.00, LetterSpace=8.0 },
348   {Size={12-}, FakeStretch=1.0, LetterSpace=8.0 }
349 },
350 Letters={Uppercase}
351 }
352 \MakeUppercase{#1}}
353 }
354
355 \newcommand{\typosection}[1]{%
356 {\addfontfeature{FakeStretch=0.96, LetterSpace=-4.0}\emph{\scalefont{2}#1}}
357 %{\addfontfeature{Scale=2.0, FakeStretch=0.98, LetterSpace=-2.0}\emph{#1}}
358 }
359
360
361 \DeclareRobustCommand\authortoctext[1]{%
362 {\addvspace{10pt}\nopagebreak\leftskip0em\relax
363 \rightskip \@tocrmarg\relax
364 \noindent\itshape#1\par}}
365
366 \newcommand\authortoc[1]{%
367   \gdef\chapterauthor{#1}%
368   \addtocontents{toc}{\authortoctext{#1}}}
369
370
371 \newcommand{\tytul}[1]{%
372 #1%
373 \vspace{1em}%
374 }
375
376 \newcommand{\nazwapodutworu}[2]{%
377 \vspace{5ex}%
378 \section*{\typosection{#1}}%
379 \addcontentsline{toc}{section}{#2}%
380 }
381
382 \newcommand{\nazwanadpodutworu}[2]{%
383 \authortoc{}%
384 \nazwapodutworu{#1}{#2}%
385 \authortoc{}%
386 }
387
388 \newcommand{\autorutworu}[1]{%
389 \subsection*{\typosubsection{#1}}%
390 }
391
392 \newcommand{\autorpodutworu}[1]{%
393 \vspace{5ex}%
394 \subsection*{\typosubsection{#1}}%
395 \authortoc{#1}%
396 }
397
398 \newcommand{\dzielonadrzedne}[1]{%
399 \subsection*{\typosubsubsection{#1}}%
400 }
401
402 \newcommand{\nazwautworu}[1]{%
403 \vspace{5ex}%
404 \section*{\typosection{#1}}%
405 }
406
407 \newcommand{\podtytul}[1]{%
408 \subsection*{\typosubsubsection{#1}}%
409 }
410
411 \newcommand{\translator}[1]{%
412 \subsection*{\typosubsubsection{tłum. #1}}%
413 }
414
415
416 \newcommand{\powiesc}[1]{#1}
417 \newcommand{\opowiadanie}[1]{#1}
418 \newcommand{\lirykal}[1]{#1}
419 \newcommand{\lirykalp}[1]{#1}
420 \newcommand{\dramatwierszowanyl}[1]{#1}
421 \newcommand{\dramatwierszowanylp}[1]{#1}
422 \newcommand{\dramatwspolczesny}[1]{#1}
423
424 \newcommand{\nota}[1]{%
425 \par{\raggedleft \emph{#1}}%
426 \vspace{5ex}%
427 }
428
429 \newcommand{\dedykacja}[1]{%
430 \begin{em}%
431 \begin{flushright}%
432 #1%
433 \end{flushright}%
434 \end{em}%
435 }
436
437 \newlength{\fboxhsep}
438 \newlength{\fboxvsep}
439
440 \newlength{\fboxtoprule}
441 \newlength{\fboxbottomrule}
442 \newlength{\fboxleftrule}
443 \newlength{\fboxrightrule}
444
445 \setlength{\fboxhsep}{5\fboxsep}
446 \setlength{\fboxvsep}{20\fboxsep}
447
448 \setlength{\fboxtoprule}{\fboxrule}
449 \setlength{\fboxleftrule}{\fboxrule}
450 \setlength{\fboxrightrule}{\fboxrule}
451 \setlength{\fboxbottomrule}{\fboxrule}
452
453
454
455 \def\@frameb@xother#1{%
456   \@tempdima\fboxtoprule
457   \advance\@tempdima\fboxvsep
458   \advance\@tempdima\dp\@tempboxa
459   \hbox{%
460     \lower\@tempdima\hbox{%
461       \vbox{%
462         \hrule\@height\fboxtoprule
463         \hbox{%
464           \vrule\@width\fboxleftrule
465           #1%
466           \vbox{%
467             \vskip\fboxvsep
468             \box\@tempboxa
469             \vskip\fboxvsep}%
470           #1%
471           \vrule\@width\fboxrightrule}%
472         \hrule\@height\fboxbottomrule}%
473     }%
474   }%
475 }
476
477
478 \long\def\fboxother#1{%
479   \leavevmode
480   \setbox\@tempboxa\hbox{%
481     \color@begingroup
482     \kern\fboxhsep{#1}\kern\fboxhsep
483     \color@endgroup}%
484   \@frameb@xother\relax}
485
486 \newcommand{\myfbox}[3]{%
487   \begingroup
488   \setlength{\fboxhsep}{#1}
489   \setlength{\fboxvsep}{#2}
490   \fboxother{#3}
491
492   \endgroup
493 }
494
495 \newcommand{\ramka}[1]{%
496 \par\vspace{1em}%
497 \edef\myindent{\the\parindent}%
498 \noindent\myfbox{1em}{1em}{%
499 \parbox{\dimexpr \textwidth - 2\fboxhsep - 2\fboxrule\relax}{%
500 \setlength{\parindent}{\myindent}%
501 #1%
502 }}%
503 \vspace{1em}%
504 }
505
506 \newcommand{\dlugicytat}[1]{%
507 \begin{quotation}%
508 #1%
509 \end{quotation}%
510 }
511
512 \newcommand{\poezjacyt}[1]{%
513 \begin{verse}%
514 #1%
515 \end{verse}%
516 }
517 \newcommand{\motto}[1]{%
518 \begin{em}%
519 #1%
520 \end{em}%
521 }
522 \newcommand{\listaosob}[2]{%
523 \par{#1}%
524 \begin{itemize}%
525 #2%
526 \end{itemize}%
527 }
528
529 \newcommand{\nagloweklisty}[1]{%
530 \typosubsubsection{#1}%
531 }
532
533 \newcommand{\listaosoba}[1]{%
534 \item[]{#1}%
535 }
536
537 \newcommand{\kwestia}[1]{%
538 \par{#1}%
539 }
540
541 \newcommand{\naglowekakt}[2]{%
542 \pagebreak
543 \subsection*{\typosubsection{\huge #1}}%
544 \addcontentsline{toc}{subsection}{#2}%
545 \vspace{5ex}%
546 }
547 \newcommand{\naglowekczesc}[2]{%
548 \pagebreak
549 \subsection*{\typosubsection{\huge #1}}%
550 \addcontentsline{toc}{subsection}{#2}%
551 \vspace{5ex}%
552 }
553 \newcommand{\srodtytul}[1]{%
554 \subsection*{\typosubsection{#1}}%
555 }
556
557 \newcommand{\naglowekscena}[2]{%
558 \subsubsection*{\typosubsubsection{\LARGE #1}}%
559 \addcontentsline{toc}{subsubsection}{#2}%
560 \vspace{5ex}%
561 }
562 \newcommand{\naglowekrozdzial}[2]{%
563 \subsubsection*{\typosubsubsection{\LARGE #1}}%
564 \addcontentsline{toc}{subsubsection}{#2}%
565 \vspace{5ex}%
566 }
567
568 \newcommand{\naglowekosoba}[1]{%
569 \medskip%
570 \par{\textsc{\MakeLowercase{#1}}}\nopagebreak%
571 }
572 \newcommand{\naglowekpodrozdzial}[1]{%
573 \vspace{5ex}\par{#1}\nopagebreak%
574 }
575
576 \newcommand{\miejsceczas}[1]{%
577 \par{\emph{#1}}%
578 }
579 \newcommand{\didaskalia}[1]{%
580 \par{\emph{#1}}%
581 }
582
583 \usepackage{intcalc}
584 \usepackage{color}
585 \definecolor{gray}{RGB}{200,200,200}
586 %\newcounter{parnum}
587 \newlength{\parnumwidth}
588 \setlength{\parnumwidth}{3em}
589 \newcommand{\N}{%
590   \leavevmode\refstepcounter{parnum}\reversemarginpar%
591   \marginnote{\textcolor{gray}{\small{\theparnum}}}%
592   \reversemarginpar}
593 \newcommand{\Nw}{%
594   \leavevmode\refstepcounter{parnum}\reversemarginpar%
595   \ifnum\intcalcMod{\value{parnum}}{5}=0%
596   \marginnote{\textcolor{gray}{\small{\theparnum}}}%
597   \fi\reversemarginpar}
598 \renewcommand{\N}{}
599 \renewcommand{\Nw}{}
600
601 \newcommand{\akap}[1]{%
602 \par{\N#1}%
603 }
604 \newcommand{\akapdialog}[1]{%
605 \par{\N#1}%
606 }
607 \newcommand{\akapcd}[1]{%
608 \par{\N#1}%
609 }
610
611 \newcommand{\mottopodpis}[1]{%
612 \begin{em}%
613 \begin{flushright}%
614 #1%
615 \end{flushright}%
616 \end{em}%
617 }
618
619 \newcommand{\strofa}[1]{%
620 \par{\noindent{\ignorespaces#1\vspace{1em}}}%
621 }
622
623 \newcommand{\wers}[1]{\Nw#1}
624
625 \newcommand{\wersakap}[1]{%
626 \Nw\hspace*{1em}#1%
627 }
628 \newcommand{\werscd}[1]{%
629 \Nw\hspace*{8em}#1%
630 }
631 \newcommand{\werswciety}[2][1em]{%
632 \Nw\hspace*{#1}#2%
633 }
634 \newcommand{\wersdoprawej}[1]{%
635 \Nw\hspace*{\fill}#1%
636 }
637
638 \ifshowfootnotes
639   \newcommand{\pa}[1]{\NoCaseChange{\footnote{#1 [przypis autorski]}}}
640   \newcommand{\pe}[1]{\NoCaseChange{\footnote{#1 [przypis edytorski]}}}
641   \newcommand{\pr}[1]{\NoCaseChange{\footnote{#1 [przypis redakcyjny]}}}
642   \newcommand{\pt}[1]{\NoCaseChange{\footnote{#1 [przypis tłumacza]}}}
643 \else
644   \newcommand{\pa}[1]{}
645   \newcommand{\pe}[1]{}
646   \newcommand{\pr}[1]{}
647   \newcommand{\pt}[1]{}
648 \fi
649
650 \newcommand{\mat}[1]{$#1$}
651
652 \newcommand{\didasktekst}[1]{%
653 \emph{#1}%
654 }
655 \newcommand{\slowoobce}[1]{%
656 \emph{#1}%
657 }
658 \newcommand{\tytuldziela}[1]{%
659 \emph{#1}%
660 }
661 \newcommand{\wyroznienie}[1]{%
662 \emph{#1}%
663 }
664 \newcommand{\indeksdolny}[1]{%
665 \textsubscript{#1}%
666 }
667 \newcommand{\wiekszeodstepy}[1]{%
668 \spaceskip 3\fontdimen2\font plus 3\fontdimen3\font minus 3\fontdimen4\font \relax%
669 #1%
670 \spaceskip \fontdimen2\font plus \fontdimen3\font minus \fontdimen4\font \relax%
671 }
672
673 \newcommand{\osoba}[1]{%
674 {\scshape \MakeLowercase{#1}}%
675 }
676
677 \newcommand{\sekcjaswiatlo}{%
678 \vspace{30pt}%
679 }
680
681 \newcommand{\sekcjaasterysk}{%
682 \vspace{10pt}%
683 \begin{center}%
684 \par{*}%
685 \end{center}%
686 }
687
688 \newcommand{\separatorlinia}{%
689 \vspace{10pt}%
690 \hrule{}%
691 \vspace{10pt}%
692 }
693
694 \newcommand{\motyw}[2][0]{%
695 \ifshowthemes
696 \mbox{}%
697 \marginpar{%
698 \vspace{-8pt}%
699 \vspace{-#1\baselineskip}%
700 \raggedright{\hspace{0pt}%
701 \footnotesize{\color{theme}{#2}}}%
702 \vspace{\baselineskip}%
703 }%
704 \fi
705 }
706
707 \newcommand{\ilustr}[2]{%
708 \vspace{1em}%
709 \par{\noindent\includegraphics[width=\linewidth]{#1}}%
710 \vspace{1em}
711 }