1 % -*- coding: utf-8 -*-
3 \usepackage[MeX]{polski}
5 \usepackage[xetex]{graphicx}
10 \usepackage[overload]{textcase}
12 \usepackage[colorlinks=true,linkcolor=black,urlcolor=black]{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}},
29 {Size={-10}, FakeStretch=1.02, LetterSpace=2.0 },
30 {Size={10.5-12}, FakeStretch=2.00, LetterSpace=0.0 },
31 {Size={12-}, FakeStretch=0.98, LetterSpace=-2.0 }
35 \renewcommand{\textsc}[1]{%
38 {Size={-10}, Scale=1.2, FakeStretch=1.02, LetterSpace=8.0 },
39 {Size={10.5-12}, Scale=1.2, FakeStretch=1.02, LetterSpace=8.0 },
40 {Size={12-}, FakeStretch=1.0, LetterSpace=8.0 }
42 Letters={SmallCaps,UppercaseSmallCaps}
47 %{\itshape JunicodeWL-Italic.ttf }
48 %{\bfseries Junicode-Bold.ttf }
49 %{\bfseries\itshape Junicode-BoldItalic.ttf }
56 % bottom figure below footnotes
61 \definecolor{theme}{gray}{.3}
63 \setlength{\marginparsep}{2em}
64 \setlength{\marginparwidth}{8.5em}
65 \setlength{\oddsidemargin}{0pt}
66 \setlength{\voffset}{0pt}
67 \setlength{\topmargin}{0pt}
68 \setlength{\headheight}{0pt}
69 \setlength{\headsep}{0pt}
70 \setlength{\textheight}{24cm}
74 \renewcommand{\headrulewidth}{0pt}
75 \renewcommand{\footrulewidth}{0pt}
76 \lfoot{{\footnotesize \textsc{\@author} \emph{\@title}}}
78 \rfoot{{\footnotesize \thepage}}
84 % see http://osdir.com/ml/tex.xetex/2005-10/msg00003.html
85 \newsavebox{\ximagebox}\newlength{\ximageheight}
86 \newsavebox{\xglyphbox}\newlength{\xglyphheight}
88 {\savebox{\ximagebox}{#1}\settoheight{\ximageheight}{\usebox {\ximagebox}}%
89 \savebox{\xglyphbox}{\char32}\settoheight{\xglyphheight}{\usebox {\xglyphbox}}%
90 \raisebox{\ximageheight}[0pt][0pt]{%\raisebox{-\xglyphheight}[0pt] [0pt]{%
91 \makebox[0pt][l]{\usebox{\xglyphbox}}}%}%
93 \raisebox{0pt}[0pt][0pt]{\makebox[0pt][r]{\usebox{\xglyphbox}}}}
96 \renewcommand{\maketitle}{
102 \noindent \begin{minipage}[t]{.35\textwidth}\vspace{0pt}
103 \href{http://www.wolnelektury.pl}{\xbox{\includegraphics[width=\textwidth]{wl-logo.png}}}
105 \begin{minipage}[t]{.65\textwidth}\vspace{0pt}
110 Wersja lektury w opracowaniu merytorycznym i krytycznym (przypisy i motywy)
111 dostępna jest \href{\bookurl}{na stronie Wolnych Lektur}.
119 \noindent \rule{\linewidth}{0.4pt}
127 % \noindent \rule{\linewidth}{0.4pt}
129 % Szkolna biblioteka internetowa Wolne Lektury tworzona jest dzięki pracy Wolontariuszy, ale to osoby
130 % zatrudnione w~FNP będą musiały wymyślić, co powinno zostać napisane w~tym miejscu. Można zupełnie usunąć
131 % tę sekcję, ale autor konwertera chciał się popisać, że umie coś takiego zrobić.
137 \newcommand{\typosubsubsection}[1]{%
141 \newcommand{\typosubsection}[1]{%
144 {Size={-10}, Scale=1.2, FakeStretch=1.00, LetterSpace=8.0 },
145 {Size={10.5-12}, Scale=1.2, FakeStretch=1.00, LetterSpace=8.0 },
146 {Size={12-}, FakeStretch=1.0, LetterSpace=8.0 }
153 \newcommand{\typosection}[1]{%
154 {\addfontfeature{FakeStretch=0.96, LetterSpace=-4.0}\emph{\scalefont{2}#1}}
155 %{\addfontfeature{Scale=2.0, FakeStretch=0.98, LetterSpace=-2.0}\emph{#1}}
158 \newcommand{\nazwapodutworu}[1]{%
159 \section*{\typosection{#1}}%
162 \newcommand{\autorutworu}[1]{%
163 \subsection*{\typosubsection{#1}}%
166 \newcommand{\nazwautworu}[1]{%
167 \section*{\typosection{#1}}%
170 \newcommand{\powiesc}[1]{#1}
171 \newcommand{\opowiadanie}[1]{#1}
172 \newcommand{\lirykal}[1]{#1}
173 \newcommand{\lirykalp}[1]{#1}
174 \newcommand{\dramatwierszowanyl}[1]{#1}
175 \newcommand{\dramatwierszowanylp}[1]{#1}
176 \newcommand{\dramatwspolczesny}[1]{#1}
178 \newcommand{\nota}[1]{%
182 \newcommand{\dedykacja}[1]{%
190 \newcommand{\dlugicytat}[1]{%
196 \newcommand{\poezjacyt}[1]{%
201 \newcommand{\motto}[1]{%
206 \newcommand{\listaosob}[2]{%
213 \newcommand{\nagloweklisty}[1]{%
214 \typosubsubsection{#1}%
217 \newcommand{\listaosoba}[1]{%
221 \newcommand{\kwestia}[1]{%
225 \newcommand{\naglowekakt}[1]{%
227 \subsection*{\typosubsection{#1}}%
229 \newcommand{\naglowekczesc}[1]{%
231 \subsection*{\typosubsection{#1}}%
233 \newcommand{\srodtytul}[1]{%
234 \subsection*{\typosubsection{#1}}%
237 \newcommand{\naglowekscena}[1]{%
238 \subsubsection*{\typosubsubsection{#1}}%
240 \newcommand{\naglowekrozdzial}[1]{%
241 \subsubsection*{\typosubsubsection{#1}}%
244 \newcommand{\naglowekosoba}[1]{%
245 \par{\textsc{#1}}\nopagebreak%
247 \newcommand{\naglowekpodrozdzial}[1]{%
248 \par{#1}\nopagebreak%
251 \newcommand{\miejsceczas}[1]{%
254 \newcommand{\didaskalia}[1]{%
258 \newcommand{\akap}[1]{%
261 \newcommand{\akapdialog}[1]{%
264 \newcommand{\akapcd}[1]{%
268 \newcommand{\mottopodpis}[1]{%
276 \newcommand{\strofa}[1]{%
277 \par{\noindent{\ignorespaces#1\vspace{1em}}}%
280 \newcommand{\wers}[1]{#1}
282 \newcommand{\wersakap}[1]{%
285 \newcommand{\werscd}[1]{%
288 \newcommand{\werswciety}[2][1em]{%
293 \newcommand{\pa}[1]{\NoCaseChange{\footnote{#1}}}
294 \newcommand{\pe}[1]{\NoCaseChange{\footnote{#1}}}
295 \newcommand{\pr}[1]{\NoCaseChange{\footnote{#1}}}
296 \newcommand{\pt}[1]{\NoCaseChange{\footnote{#1}}}
298 \newcommand{\mat}[1]{$#1$}
300 \newcommand{\didasktekst}[1]{%
303 \newcommand{\slowoobce}[1]{%
306 \newcommand{\tytuldziela}[1]{%
309 \newcommand{\wyroznienie}[1]{%
313 \newcommand{\osoba}[1]{%
317 \newcommand{\sekcjaswiatlo}{%
321 \newcommand{\sekcjaasterysk}{%
325 \newcommand{\separatorlinia}{%
329 \newcommand{\motyw}[2][0]{%
333 \vspace{-#1\baselineskip}%
334 \raggedright{\hspace{0pt}%
335 \footnotesize{\color{theme}{#2}}}%
336 \vspace{\baselineskip}%