1 % -*- coding: utf-8 -*-
2 \NeedsTeXFormat{LaTeX2e}
3 \ProvidesClass{wl}[2011/11/28 wolnelektury.pl book style]
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
15 \RequirePackage{setspace}
16 \RequirePackage{type1cm}
17 \RequirePackage{amssymb}
18 \RequirePackage{amsmath}
19 \DeclareOption{13pt}{%
21 % font size definitions, similar to ones in /usr/share/texmf-texlive/tex/latex/base/
22 \renewcommand\normalsize{%
23 \@setfontsize\normalsize{13pt}{14.5pt}%
24 \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
25 \abovedisplayshortskip \z@ \@plus3\p@
26 \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
27 \belowdisplayskip \abovedisplayskip
28 \let\@listi\@listI}\normalsize%
29 \renewcommand\footnotesize{%
30 \@setfontsize\footnotesize\@xpt\@xiipt
31 \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
32 \abovedisplayshortskip \z@ \@plus3\p@
33 \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
34 \def\@listi{\leftmargin\leftmargini
35 \topsep 6\p@ \@plus2\p@ \@minus2\p@
36 \parsep 3\p@ \@plus2\p@ \@minus\p@
38 \belowdisplayskip \abovedisplayskip
43 %% \DeclareOption{14pt}{\renewcommand{\normalsize}{\AtEndOfClass{\fontsize{14}{17}\selectfont}}}
45 \DeclareOption{defaultleading}{}
46 \DeclareOption{doubleleading}{\AtBeginDocument{\doublespacing}}%\setlength{\leading}{1em plus 0.5ex minus 0.2ex}}
47 \DeclareOption{onehalfleading}{\AtBeginDocument{\onehalfspacing}}%\setlength{\leading}{1em plus 0.5ex minus 0.2ex}}
49 %% 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.
50 \DeclareOption{a5paper}{%
51 \setlength{\paperheight}{210mm}%
52 \setlength{\paperwidth}{148mm}}
55 \newif\ifshowfootnotes \showfootnotestrue
56 \DeclareOption{nofootnotes}{\showfootnotesfalse}
58 \newif\ifshowthemes \showthemestrue
59 \DeclareOption{nothemes}{\showthemesfalse}
61 \newif\ifenablewlfont \enablewlfonttrue
62 \DeclareOption{nowlfont}{\enablewlfontfalse}
64 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
66 \LoadClass[a4paper]{book}
72 \usepackage[MeX]{polski}
74 \usepackage[xetex]{graphicx}
80 \usepackage[overload]{textcase}
82 \usepackage[colorlinks=true,linkcolor=black,setpagesize=false,urlcolor=black,xetex]{hyperref}
87 UprightFont = JunicodeWL-Regular,
88 ItalicFont = JunicodeWL-Italic,
89 BoldFont = JunicodeWL-Regular,
90 BoldItalicFont = JunicodeWL-Italic,
91 SmallCapsFont = JunicodeWL-Regular,
92 SmallCapsFeatures = {Letters={SmallCaps,UppercaseSmallCaps}},
99 SmallCapsFeatures = {Letters={SmallCaps,UppercaseSmallCaps}},
106 \defaultfontfeatures{
108 {Size={-10.5}, FakeStretch=1.02, LetterSpace=2.0 },
109 {Size={10.5-12}, FakeStretch=2.00, LetterSpace=0.0 },
110 {Size={12-}, FakeStretch=0.98, LetterSpace=-2.0 }
114 \renewcommand{\textsc}[1]{%
117 {Size={-10.5}, Scale=1.2, FakeStretch=1.02, LetterSpace=8.0 },
118 {Size={10.5-12}, Scale=1.2, FakeStretch=1.02, LetterSpace=8.0 },
119 {Size={12-}, FakeStretch=1.0, LetterSpace=8.0 }
121 Letters={SmallCaps,UppercaseSmallCaps}
127 %{\Itshape JunicodeWL-Italic.ttf }
128 %{\bfseries Junicode-Bold.ttf }
129 %{\bfseries\itshape Junicode-BoldItalic.ttf }
132 \usepackage{fancyhdr}
136 % bottom figure below footnotes
141 \definecolor{theme}{gray}{.3}
143 \setlength{\marginparsep}{2em}
144 \setlength{\marginparwidth}{8.5em}
145 \setlength{\oddsidemargin}{36mm}
146 \setlength{\evensidemargin}{0pt}
147 \setlength{\voffset}{0pt}
148 \setlength{\topmargin}{0pt}
149 \setlength{\headheight}{0pt}
150 \setlength{\headsep}{0pt}
151 \setlength{\textheight}{24cm}
155 \renewcommand{\headrulewidth}{0pt}
156 \renewcommand{\footrulewidth}{0pt}
158 %\lfoot{{\footnotesize \textsc{\@author} \emph{\@title}}}
160 %\rfoot{{\footnotesize \thepage}}
161 \fancyfoot[LO,RE]{{\footnotesize \textsc{\@author} \emph{\@title}}}
162 \fancyfoot[LE,RO]{{\footnotesize \thepage}}
164 %\lfoot{{\footnotesize \textsc{\@author} \emph{\@title}}} %1
166 %\rfoot{{\footnotesize \thepage}} %1
167 \fancyfoot[LO,RE]{{\footnotesize \textsc{\@author} \emph{\@title}}}
168 \fancyfoot[LE,RO]{{\footnotesize \thepage}}
170 >>>>>>> 4531d8a... nicer tables
176 % see http://osdir.com/ml/tex.xetex/2005-10/msg00003.html
177 \newsavebox{\ximagebox}\newlength{\ximageheight}
178 \newsavebox{\xglyphbox}\newlength{\xglyphheight}
179 \newcommand{\xbox}[1]
180 {\savebox{\ximagebox}{#1}\settoheight{\ximageheight}{\usebox {\ximagebox}}%
181 \savebox{\xglyphbox}{\char32}\settoheight{\xglyphheight}{\usebox {\xglyphbox}}%
182 \raisebox{\ximageheight}[0pt][0pt]{%\raisebox{-\xglyphheight}[0pt] [0pt]{%
183 \makebox[0pt][l]{\usebox{\xglyphbox}}}%}%
185 \raisebox{0pt}[0pt][0pt]{\makebox[0pt][r]{\usebox{\xglyphbox}}}}
187 \newcommand{\makecover}[2]{
195 >>>>>>> 4531d8a... nicer tables
197 \thispagestyle{empty}
198 \newlength{\PictHOffset}
199 \newlength{\PictVOffset}
200 \setlength{\PictHOffset}{1in}
201 \addtolength{\PictHOffset}{\hoffset}
202 \addtolength{\PictHOffset}{\oddsidemargin}
204 \setlength{\PictVOffset}{1in}
205 \addtolength{\PictVOffset}{\voffset}
206 \addtolength{\PictVOffset}{\topmargin}
207 \addtolength{\PictVOffset}{\headheight}
208 \addtolength{\PictVOffset}{\headsep}
209 \addtolength{\PictVOffset}{\topskip}
211 \addtolength{\PictVOffset}{-#2}
213 \noindent\hspace*{-\PictHOffset}%
214 \raisebox{\PictVOffset}[0pt][0pt]{\makebox[0pt][l]{%
215 \includegraphics[height=#2,width=#1]{cover.jpg}}}
218 \addtolength{\PictVOffset}{-#2} %1 \pdfpageheight}
220 \noindent\hspace*{-\PictHOffset}%
221 \raisebox{\PictVOffset}[0pt][0pt]{\makebox[0pt][l]{%
222 \includegraphics[height=#2,width=#1]{cover.png}}}
224 >>>>>>> 4531d8a... nicer tables
227 \hspace{-36mm}\parbox{16cm}{
228 {\addfontfeature{LetterSpace=-4.0}\emph{\scalefont{4}%
229 \noindent Future of Copyright Anthology
233 {\addfontfeature{LetterSpace=-4.0}{\scalefont{1.5}%
234 A collection of texts from a crowd-funded contest.
242 \indent\emph{You made this book possible.}
246 %\setlength{\pdfpagewidth}{210mm}
247 %\setlength{\pdfpageheight}{297mm}
253 \indent\emph{You made this book possible.}
257 % \setlength{\pdfpagewidth}{210mm}
258 % \setlength{\pdfpageheight}{297mm}
259 >>>>>>> 4531d8a... nicer tables
263 \renewcommand{\maketitle}{
265 \thispagestyle{empty}
269 \noindent \begin{minipage}[t]{.35\textwidth}\vspace{0pt}
270 \href{http://www.wolnelektury.pl}{\xbox{\includegraphics[width=\textwidth]{wl-logo.png}}}
272 \begin{minipage}[t]{.65\textwidth}\vspace{0pt}
274 \ifflaglessadvertising
276 \href{\bookurl}{Ta lektura}, podobnie jak tysiące innych, jest dostępna on-line na stronie
277 \href{http://www.wolnelektury.pl/}{wolnelektury.pl}.
281 Utwór opracowany został w ramach projektu \href{http://www.wolnelektury.pl/}{Wolne Lektury}
282 przez \href{http://nowoczesnapolska.org.pl}{fundację Nowoczesna Polska}.
285 \noindent \rule{\linewidth}{0.4pt}
298 >>>>>>> 4531d8a... nicer tables
299 \usepackage{printlen}
301 \newcommand{\editorialsection}{
304 %\set\textwidth=450pt
305 %\printlength\textwidth
308 {\scalefont{1.5}Dear readers!}
313 It is our great pleasure to present you the “Future of Copyright
314 Anthology”, a collection of 10 best short stories sent in for the “Future
315 of Copyright” contest organized by Modern Poland Foundation. These works
316 have been selected by our jury – Prof. Michael Geist, Piotr Czerski and
319 The main prize in this contest was founded by you, the readers, on the
320 Indiegogo crowdfunding platform. We are proud to announce that this
321 prize goes to Aymeric Mansoux, author of “Morphology of a copyright
322 tale”, in appreciation of the originality, power and the strong message
323 of this work. Moreover, the jury decided to grant an honorable mention
324 to Togi, author of the work “Give”.
326 We would like to thank you for your crowdfunding support and a high
327 standard of the submitted works. We were pleasantly surprised by the
328 interest shown in the competition, and we have decided to hold
329 its second edition next
330 year. We hope that with your help it will be even more successful and
331 the collected works will provide a strong voice in the debate on the future
332 of copyright law and system.
335 Modern Poland Foundation Team
338 \includegraphics[scale=.2]{logo.eps}
341 \href{http://nowoczesnapolska.org.pl/}{http://nowoczesnapolska.org.pl/}
345 %\box{\tableofcontents}
348 >>>>>>> 4531d8a... nicer tables
353 \noindent \rule{\linewidth}{0.4pt}
358 %Źródło: \href{\bookurl}{\bookurl}
366 Published by \href{http://nowoczesnapolska.org.pl}{Modern Poland Foundation}, 2012.
379 \newcommand{\typosubsubsection}[1]{%
383 \newcommand{\typosubsection}[1]{%
386 {Size={-10}, Scale=1.2, FakeStretch=1.00, LetterSpace=8.0 },
387 {Size={10.5-12}, Scale=1.2, FakeStretch=1.00, LetterSpace=8.0 },
388 {Size={12-}, FakeStretch=1.0, LetterSpace=8.0 }
395 \newcommand{\typosection}[1]{%
396 {\addfontfeature{FakeStretch=0.96, LetterSpace=-4.0}\emph{\scalefont{2}#1}}
397 %{\addfontfeature{Scale=2.0, FakeStretch=0.98, LetterSpace=-2.0}\emph{#1}}
400 \newcommand{\tytul}[1]{%
405 \newcommand{\autorpodutworu}[1]{%
406 \section*{\typosection{#1}}%
409 \newcommand{\nazwapodutworu}[1]{%
410 \section*{\typosection{#1}}%
413 \newcommand{\autorutworu}[1]{%
414 \addcontentsline{toc}{part}{???}
415 \subsection*{\typosubsection{#1}}%
418 \newcommand{\dzielonadrzedne}[1]{%
419 \subsection*{\typosubsubsection{#1}}%
422 \newcommand{\nazwautworu}[1]{%
423 \section*{\typosection{#1}}%
426 \newcommand{\podtytul}[1]{%
427 \subsection*{\typosubsubsection{#1}}%
430 \newcommand{\podtytulpodutworu}[1]{%
431 \subsection*{\typosubsubsection{#1}}%
434 \newcommand{\translator}[1]{%
435 \subsection*{\typosubsubsection{tłum. #1}}%
438 \newcommand{\powiesc}[1]{#1}
439 \newcommand{\opowiadanie}[1]{#1}
440 \newcommand{\lirykal}[1]{#1}
441 \newcommand{\lirykalp}[1]{#1}
442 \newcommand{\dramatwierszowanyl}[1]{#1}
443 \newcommand{\dramatwierszowanylp}[1]{#1}
444 \newcommand{\dramatwspolczesny}[1]{#1}
446 \newcommand{\nota}[1]{%
452 \newcommand{\dedykacja}[1]{%
460 \newcommand{\dlugicytat}[1]{%
466 \newcommand{\poezjacyt}[1]{%
471 \newcommand{\motto}[1]{%
476 \newcommand{\listaosob}[2]{%
483 \newcommand{\nagloweklisty}[1]{%
484 \typosubsubsection{#1}%
487 \newcommand{\listaosoba}[1]{%
491 \newcommand{\kwestia}[1]{%
495 \newcommand{\naglowekakt}[1]{%
497 \subsection*{\typosubsection{#1}}%
499 \newcommand{\naglowekczesc}[1]{%
501 \subsection*{\typosubsection{#1}}%
503 \newcommand{\srodtytul}[1]{%
504 \subsection*{\typosubsection{#1}}%
507 \newcommand{\naglowekscena}[1]{%
508 \subsubsection*{\typosubsubsection{#1}}%
510 \newcommand{\naglowekrozdzial}[1]{%
511 \subsubsection*{\typosubsubsection{#1}}%
514 \newcommand{\naglowekosoba}[1]{%
515 \par{\textsc{#1}}\nopagebreak%
517 \newcommand{\naglowekpodrozdzial}[1]{%
518 \par{#1}\nopagebreak%
521 \newcommand{\miejsceczas}[1]{%
524 \newcommand{\didaskalia}[1]{%
528 \newcommand{\akap}[1]{%
531 \newcommand{\akapdialog}[1]{%
534 \newcommand{\akapcd}[1]{%
538 \newcommand{\mottopodpis}[1]{%
546 \newcommand{\strofa}[1]{%
547 \par{\noindent{\ignorespaces#1\vspace{1em}}}%
550 \newcommand{\wers}[1]{#1}
552 \newcommand{\wersakap}[1]{%
555 \newcommand{\werscd}[1]{%
558 \newcommand{\werswciety}[2][1em]{%
563 \newcommand{\pa}[1]{\NoCaseChange{\footnote{#1 [przypis autorski]}}}
564 \newcommand{\pe}[1]{\NoCaseChange{\footnote{#1}}}
565 \newcommand{\pr}[1]{\NoCaseChange{\footnote{#1}}}
566 \newcommand{\pt}[1]{\NoCaseChange{\footnote{#1}}}
568 \newcommand{\pa}[1]{}
569 \newcommand{\pe}[1]{}
570 \newcommand{\pr}[1]{}
571 \newcommand{\pt}[1]{}
574 \newcommand{\mat}[1]{$#1$}
576 \newcommand{\didasktekst}[1]{%
579 \newcommand{\slowoobce}[1]{%
582 \newcommand{\tytuldziela}[1]{%
585 \newcommand{\wyroznienie}[1]{%
589 \newcommand{\osoba}[1]{%
593 \newcommand{\sekcjaswiatlo}{%
597 \newcommand{\sekcjaasterysk}{%
605 \newcommand{\separatorlinia}{%
611 \newcommand{\motyw}[2][0]{%
616 \vspace{-#1\baselineskip}%
617 \raggedright{\hspace{0pt}%
618 \footnotesize{\color{theme}{#2}}}%
619 \vspace{\baselineskip}%
624 \newcommand{\ilustr}[2]{
628 \par{\includegraphics[width=\textwidth]{#1}\\#2}%