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