X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/ac6f4dfb3c4e7ac8b22ab56390e61634a8152df6..1b45c9a8c92e6ecc21e083dd6ed96ffe01e8728d:/librarian/pdf/wl.cls?ds=sidebyside diff --git a/librarian/pdf/wl.cls b/librarian/pdf/wl.cls index a9ace8e..82098ec 100644 --- a/librarian/pdf/wl.cls +++ b/librarian/pdf/wl.cls @@ -73,10 +73,22 @@ \usepackage{xunicode} \usepackage{xltxtra} +\usepackage{longtable} +\usepackage{tabu} +\usepackage{unicode-math} +\setmathfont{Latin Modern Math} + \usepackage[overload]{textcase} \usepackage{scalefnt} \usepackage[colorlinks=true,linkcolor=black,setpagesize=false,urlcolor=black,xetex]{hyperref} +\newfontfamily\alien[ +SmallCapsFeatures = {Letters={SmallCaps,UppercaseSmallCaps}}, +Numbers=OldStyle, +Scale=0.85, +LetterSpace=-1.0 +] {DejaVu Serif} + \ifenablewlfont \setmainfont [ %ExternalLocation, @@ -91,14 +103,6 @@ Scale=1.04, LetterSpace=-1.0 ] {JunicodeWL} -\newfontfamily\alien[ -SmallCapsFeatures = {Letters={SmallCaps,UppercaseSmallCaps}}, -Numbers=OldStyle, -Scale=0.85, -LetterSpace=-1.0 -] {DejaVu Serif} - - \defaultfontfeatures{ SizeFeatures={ {Size={-10.5}, FakeStretch=1.02, LetterSpace=2.0 }, @@ -126,6 +130,8 @@ Letters={SmallCaps,UppercaseSmallCaps} \pagestyle{plain} \usepackage{fancyhdr} +\usepackage{marginnote} + \makeatletter @@ -238,6 +244,13 @@ Letters={SmallCaps,UppercaseSmallCaps} \color{theme} \noindent \rule{\linewidth}{0.4pt} + \ifdefined\sponsors + \marginnote{% + \centering% + \sponsors% + } + \fi + \rightsinfo \vspace{.6em} @@ -246,6 +259,8 @@ Letters={SmallCaps,UppercaseSmallCaps} \vspace{.6em} \sourceinfo + \publisherinfo + \description \vspace{.6em} @@ -419,7 +434,7 @@ Letters={Uppercase} \par{\textsc{#1}}\nopagebreak% } \newcommand{\naglowekpodrozdzial}[1]{% -\par{#1}\nopagebreak% +\vspace{5ex}\par{#1}\nopagebreak% } \newcommand{\miejsceczas}[1]{% @@ -429,14 +444,32 @@ Letters={Uppercase} \par{\emph{#1}}% } +\usepackage{intcalc} +\usepackage{color} +\definecolor{gray}{RGB}{200,200,200} +%\newcounter{parnum} +\newlength{\parnumwidth} +\setlength{\parnumwidth}{3em} +\newcommand{\N}{% + \leavevmode\refstepcounter{parnum}\reversemarginpar% + \marginnote{\textcolor{gray}{\small{\theparnum}}}% + \reversemarginpar} +\newcommand{\Nw}{% + \leavevmode\refstepcounter{parnum}\reversemarginpar% + \ifnum\intcalcMod{\value{parnum}}{5}=0% + \marginnote{\textcolor{gray}{\small{\theparnum}}}% + \fi\reversemarginpar} +\renewcommand{\N}{} +\renewcommand{\Nw}{} + \newcommand{\akap}[1]{% -\par{#1}% +\par{\N#1}% } \newcommand{\akapdialog}[1]{% -\par{#1}% +\par{\N#1}% } \newcommand{\akapcd}[1]{% -\par{#1}% +\par{\N#1}% } \newcommand{\mottopodpis}[1]{% @@ -451,23 +484,23 @@ Letters={Uppercase} \par{\noindent{\ignorespaces#1\vspace{1em}}}% } -\newcommand{\wers}[1]{#1} +\newcommand{\wers}[1]{\Nw#1} \newcommand{\wersakap}[1]{% -\hspace*{1em}#1% +\Nw\hspace*{1em}#1% } \newcommand{\werscd}[1]{% -\hspace*{8em}#1% +\Nw\hspace*{8em}#1% } \newcommand{\werswciety}[2][1em]{% -\hspace*{#1}#2% +\Nw\hspace*{#1}#2% } \ifshowfootnotes \newcommand{\pa}[1]{\NoCaseChange{\footnote{#1 [przypis autorski]}}} - \newcommand{\pe}[1]{\NoCaseChange{\footnote{#1}}} - \newcommand{\pr}[1]{\NoCaseChange{\footnote{#1}}} - \newcommand{\pt}[1]{\NoCaseChange{\footnote{#1}}} + \newcommand{\pe}[1]{\NoCaseChange{\footnote{#1 [przypis edytorski]}}} + \newcommand{\pr}[1]{\NoCaseChange{\footnote{#1 [przypis redakcyjny]}}} + \newcommand{\pt}[1]{\NoCaseChange{\footnote{#1 [przypis tłumacza]}}} \else \newcommand{\pa}[1]{} \newcommand{\pe}[1]{} @@ -524,3 +557,8 @@ Letters={Uppercase} \fi } +\newcommand{\ilustr}[2]{% +\vspace{1em}% +\par{\noindent\includegraphics[width=\linewidth]{#1}}% +\vspace{1em} +}