1 % -*- coding: utf-8 -*-
3 \usepackage[MeX]{polski}
5 \usepackage[xetex]{graphicx}
10 \usepackage[overload]{textcase}
12 \usepackage[colorlinks=true,linkcolor=black,setpagesize=false,urlcolor=black,xetex]{hyperref}
16 UprightFont = JunicodeWL-Regular,
17 ItalicFont = JunicodeWL-Italic,
18 BoldFont = JunicodeWL-Regular,
19 BoldItalicFont = JunicodeWL-Italic,
20 SmallCapsFont = JunicodeWL-Regular,
21 SmallCapsFeatures = {Letters={SmallCaps,UppercaseSmallCaps}},
28 SmallCapsFeatures = {Letters={SmallCaps,UppercaseSmallCaps}},
37 {Size={-10}, FakeStretch=1.02, LetterSpace=2.0 },
38 {Size={10.5-12}, FakeStretch=2.00, LetterSpace=0.0 },
39 {Size={12-}, FakeStretch=0.98, LetterSpace=-2.0 }
43 \renewcommand{\textsc}[1]{%
46 {Size={-10}, Scale=1.2, FakeStretch=1.02, LetterSpace=8.0 },
47 {Size={10.5-12}, Scale=1.2, FakeStretch=1.02, LetterSpace=8.0 },
48 {Size={12-}, FakeStretch=1.0, LetterSpace=8.0 }
50 Letters={SmallCaps,UppercaseSmallCaps}
55 %{\itshape JunicodeWL-Italic.ttf }
56 %{\bfseries Junicode-Bold.ttf }
57 %{\bfseries\itshape Junicode-BoldItalic.ttf }
64 % bottom figure below footnotes
69 \definecolor{theme}{gray}{.3}
71 \setlength{\marginparsep}{2em}
72 \setlength{\marginparwidth}{8.5em}
73 \setlength{\oddsidemargin}{0pt}
74 \setlength{\voffset}{0pt}
75 \setlength{\topmargin}{0pt}
76 \setlength{\headheight}{0pt}
77 \setlength{\headsep}{0pt}
78 \setlength{\textheight}{24cm}
82 \renewcommand{\headrulewidth}{0pt}
83 \renewcommand{\footrulewidth}{0pt}
84 \lfoot{{\footnotesize \textsc{\@author} \emph{\@title}}}
86 \rfoot{{\footnotesize \thepage}}
92 % see http://osdir.com/ml/tex.xetex/2005-10/msg00003.html
93 \newsavebox{\ximagebox}\newlength{\ximageheight}
94 \newsavebox{\xglyphbox}\newlength{\xglyphheight}
96 {\savebox{\ximagebox}{#1}\settoheight{\ximageheight}{\usebox {\ximagebox}}%
97 \savebox{\xglyphbox}{\char32}\settoheight{\xglyphheight}{\usebox {\xglyphbox}}%
98 \raisebox{\ximageheight}[0pt][0pt]{%\raisebox{-\xglyphheight}[0pt] [0pt]{%
99 \makebox[0pt][l]{\usebox{\xglyphbox}}}%}%
101 \raisebox{0pt}[0pt][0pt]{\makebox[0pt][r]{\usebox{\xglyphbox}}}}
103 \newcommand{\makecover}[2]{
107 \thispagestyle{empty}
108 \newlength{\PictHOffset}
109 \newlength{\PictVOffset}
110 \setlength{\PictHOffset}{1in}
111 \addtolength{\PictHOffset}{\hoffset}
112 \addtolength{\PictHOffset}{\oddsidemargin}
114 \setlength{\PictVOffset}{1in}
115 \addtolength{\PictVOffset}{\voffset}
116 \addtolength{\PictVOffset}{\topmargin}
117 \addtolength{\PictVOffset}{\headheight}
118 \addtolength{\PictVOffset}{\headsep}
119 \addtolength{\PictVOffset}{\topskip}
120 \addtolength{\PictVOffset}{-\pdfpageheight}
122 \noindent\hspace*{-\PictHOffset}%
123 \raisebox{\PictVOffset}[0pt][0pt]{\makebox[0pt][l]{%
124 \includegraphics[height=\pdfpageheight,width=\pdfpagewidth]{cover.png}}}
127 \setlength{\pdfpagewidth}{210mm}
128 \setlength{\pdfpageheight}{297mm}
132 \renewcommand{\maketitle}{
134 \thispagestyle{empty}
138 \noindent \begin{minipage}[t]{.35\textwidth}\vspace{0pt}
139 \href{http://www.wolnelektury.pl}{\xbox{\includegraphics[width=\textwidth]{wl-logo.png}}}
141 \begin{minipage}[t]{.65\textwidth}\vspace{0pt}
143 \ifflaglessadvertising
145 \href{\bookurl}{Ta lektura}, podobnie jak tysiące innych, jest dostępna on-line na stronie
146 \href{http://www.wolnelektury.pl/}{wolnelektury.pl}.
150 Utwór opracowany został w ramach projektu \href{http://www.wolnelektury.pl/}{Wolne Lektury}
151 przez \href{http://nowoczesnapolska.org.pl}{fundację Nowoczesna Polska}.
154 \noindent \rule{\linewidth}{0.4pt}
161 \newcommand{\editorialsection}{
166 \noindent \rule{\linewidth}{0.4pt}
171 Źródło: \href{\bookurl}{\bookurl}
187 \newcommand{\typosubsubsection}[1]{%
191 \newcommand{\typosubsection}[1]{%
194 {Size={-10}, Scale=1.2, FakeStretch=1.00, LetterSpace=8.0 },
195 {Size={10.5-12}, Scale=1.2, FakeStretch=1.00, LetterSpace=8.0 },
196 {Size={12-}, FakeStretch=1.0, LetterSpace=8.0 }
203 \newcommand{\typosection}[1]{%
204 {\addfontfeature{FakeStretch=0.96, LetterSpace=-4.0}\emph{\scalefont{2}#1}}
205 %{\addfontfeature{Scale=2.0, FakeStretch=0.98, LetterSpace=-2.0}\emph{#1}}
209 \newcommand{\tytul}[1]{%
214 \newcommand{\nazwapodutworu}[1]{%
215 \section*{\typosection{#1}}%
218 \newcommand{\autorutworu}[1]{%
219 \subsection*{\typosubsection{#1}}%
222 \newcommand{\dzielonadrzedne}[1]{%
223 \subsection*{\typosubsubsection{#1}}%
226 \newcommand{\nazwautworu}[1]{%
227 \section*{\typosection{#1}}%
230 \newcommand{\podtytul}[1]{%
231 \subsection*{\typosubsubsection{#1}}%
234 \newcommand{\translator}[1]{%
235 \subsection*{\typosubsubsection{tłum. #1}}%
239 \newcommand{\powiesc}[1]{#1}
240 \newcommand{\opowiadanie}[1]{#1}
241 \newcommand{\lirykal}[1]{#1}
242 \newcommand{\lirykalp}[1]{#1}
243 \newcommand{\dramatwierszowanyl}[1]{#1}
244 \newcommand{\dramatwierszowanylp}[1]{#1}
245 \newcommand{\dramatwspolczesny}[1]{#1}
247 \newcommand{\nota}[1]{%
251 \newcommand{\dedykacja}[1]{%
259 \newcommand{\dlugicytat}[1]{%
265 \newcommand{\poezjacyt}[1]{%
270 \newcommand{\motto}[1]{%
275 \newcommand{\listaosob}[2]{%
282 \newcommand{\nagloweklisty}[1]{%
283 \typosubsubsection{#1}%
286 \newcommand{\listaosoba}[1]{%
290 \newcommand{\kwestia}[1]{%
294 \newcommand{\naglowekakt}[1]{%
296 \subsection*{\typosubsection{#1}}%
298 \newcommand{\naglowekczesc}[1]{%
300 \subsection*{\typosubsection{#1}}%
302 \newcommand{\srodtytul}[1]{%
303 \subsection*{\typosubsection{#1}}%
306 \newcommand{\naglowekscena}[1]{%
307 \subsubsection*{\typosubsubsection{#1}}%
309 \newcommand{\naglowekrozdzial}[1]{%
310 \subsubsection*{\typosubsubsection{#1}}%
313 \newcommand{\naglowekosoba}[1]{%
314 \par{\textsc{#1}}\nopagebreak%
316 \newcommand{\naglowekpodrozdzial}[1]{%
317 \par{#1}\nopagebreak%
320 \newcommand{\miejsceczas}[1]{%
323 \newcommand{\didaskalia}[1]{%
327 \newcommand{\akap}[1]{%
330 \newcommand{\akapdialog}[1]{%
333 \newcommand{\akapcd}[1]{%
337 \newcommand{\mottopodpis}[1]{%
345 \newcommand{\strofa}[1]{%
346 \par{\noindent{\ignorespaces#1\vspace{1em}}}%
349 \newcommand{\wers}[1]{#1}
351 \newcommand{\wersakap}[1]{%
354 \newcommand{\werscd}[1]{%
357 \newcommand{\werswciety}[2][1em]{%
362 \newcommand{\pa}[1]{\NoCaseChange{\footnote{#1 [przypis autorski]}}}
363 \newcommand{\pe}[1]{\NoCaseChange{\footnote{#1}}}
364 \newcommand{\pr}[1]{\NoCaseChange{\footnote{#1}}}
365 \newcommand{\pt}[1]{\NoCaseChange{\footnote{#1}}}
367 \newcommand{\mat}[1]{$#1$}
369 \newcommand{\didasktekst}[1]{%
372 \newcommand{\slowoobce}[1]{%
375 \newcommand{\tytuldziela}[1]{%
378 \newcommand{\wyroznienie}[1]{%
382 \newcommand{\osoba}[1]{%
386 \newcommand{\sekcjaswiatlo}{%
390 \newcommand{\sekcjaasterysk}{%
397 \newcommand{\separatorlinia}{%
403 \newcommand{\motyw}[2][0]{%
407 \vspace{-#1\baselineskip}%
408 \raggedright{\hspace{0pt}%
409 \footnotesize{\color{theme}{#2}}}%
410 \vspace{\baselineskip}%