X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/d7ba2c607dacf7a6136b83a1588b5adf2278ad46..25d4f6d349acfd3dc8bebd2469dd84cde3b5927d:/librarian/pdf/wl.cls diff --git a/librarian/pdf/wl.cls b/librarian/pdf/wl.cls index 37d1d24..76f8530 100644 --- a/librarian/pdf/wl.cls +++ b/librarian/pdf/wl.cls @@ -6,6 +6,7 @@ % % nofootnotes - disable generation of footnotes % nothemes - disable generation of themes +% defaultleading - default leading % onehalfleading - leading of 1.5 (interlinia) % doubleleading - double leading (interlinia) % a4paper,... - paper size as required by LaTeX @@ -39,6 +40,7 @@ %% \DeclareOption{14pt}{\renewcommand{\normalsize}{\AtEndOfClass{\fontsize{14}{17}\selectfont}}} +\DeclareOption{defaultleading}{} \DeclareOption{doubleleading}{\AtBeginDocument{\doublespacing}}%\setlength{\leading}{1em plus 0.5ex minus 0.2ex}} \DeclareOption{onehalfleading}{\AtBeginDocument{\onehalfspacing}}%\setlength{\leading}{1em plus 0.5ex minus 0.2ex}} @@ -59,11 +61,14 @@ \DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}} \ProcessOptions\relax -\LoadClass[a4paper,oneside]{book} +%\LoadClass[a4paper,oneside]{book} +\LoadClass[a4paper]{book} \usepackage{trace} +\usepackage{longtable} +\usepackage{tabu} \usepackage[MeX]{polski} \usepackage[xetex]{graphicx} @@ -73,7 +78,9 @@ \usepackage[overload]{textcase} \usepackage{scalefnt} -\usepackage[colorlinks=true,linkcolor=black,setpagesize=false,urlcolor=black,xetex]{hyperref} +\usepackage[hyphens]{url} +%\usepackage[colorlinks=true,linkcolor=black,setpagesize=false,urlcolor=black,xetex,unicode]{hyperref} +\usepackage[colorlinks=true,linkcolor=black,setpagesize=false,urlcolor=blue,xetex,unicode]{hyperref} \ifenablewlfont \setmainfont [ @@ -84,7 +91,7 @@ BoldFont = JunicodeWL-Regular, BoldItalicFont = JunicodeWL-Italic, SmallCapsFont = JunicodeWL-Regular, SmallCapsFeatures = {Letters={SmallCaps,UppercaseSmallCaps}}, -Numbers=OldStyle, +%Numbers=OldStyle, Scale=1.04, LetterSpace=-1.0 ] {JunicodeWL} @@ -136,7 +143,9 @@ Letters={SmallCaps,UppercaseSmallCaps} \setlength{\marginparsep}{2em} \setlength{\marginparwidth}{8.5em} -\setlength{\oddsidemargin}{0pt} +%\setlength{\oddsidemargin}{0pt} +\setlength{\oddsidemargin}{\evensidemargin} +\setlength{\evensidemargin}{18pt} \setlength{\voffset}{0pt} \setlength{\topmargin}{0pt} \setlength{\headheight}{0pt} @@ -147,9 +156,14 @@ Letters={SmallCaps,UppercaseSmallCaps} \fancyhf{} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} -\lfoot{{\footnotesize \textsc{\@author} \emph{\@title}}} +%\lfoot{{\footnotesize \textsc{\@author} \emph{\@title}}} +%\rfoot[{\footnotesize \thepage}]{{\footnotesize \textsc{\@author} \emph{\@title}}} +\lfoot[{\footnotesize \thepage}]{} \cfoot{} -\rfoot{{\footnotesize \thepage}} +%\rfoot{{\footnotesize \thepage}} +%\lfoot[{\footnotesize \textsc{\@author} \emph{\@title}}]{{\footnotesize \thepage}} +\rfoot[]{{\footnotesize \thepage}} + \clubpenalty=100000 \widowpenalty=100000 @@ -197,26 +211,36 @@ Letters={SmallCaps,UppercaseSmallCaps} \renewcommand{\maketitle}{ { - \thispagestyle{empty} + % \thispagestyle{empty} + \setcounter{page}{1} + \footnotesize \color{theme} + \noindent \begin{minipage}[t]{.65\textwidth}\vspace{0pt} + %\href{http://prawokultury.pl}{\xbox{\includegraphics[width=1in]{prawokultury-logo.png}}} + \href{http://koed.org.pl}{\xbox{\includegraphics[height=.55in]{koed-logo.eps}}} + \end{minipage} \noindent \begin{minipage}[t]{.35\textwidth}\vspace{0pt} - \href{http://www.wolnelektury.pl}{\xbox{\includegraphics[width=\textwidth]{wl-logo.png}}} + \raggedright + %\xbox{\includegraphics[width=1.6in]{trust-logo.eps}} + \href{http://nowoczesnapolska.org.pl}{\xbox{\includegraphics[height=.55in]{fnp-logo.eps}}} + \vspace{.5em} \end{minipage} - \begin{minipage}[t]{.65\textwidth}\vspace{0pt} + +% \begin{minipage}[t]{.45\textwidth}\vspace{0pt} \ifflaglessadvertising \else - \href{\bookurl}{Ta lektura}, podobnie jak tysiące innych, jest dostępna on-line na stronie - \href{http://www.wolnelektury.pl/}{wolnelektury.pl}. + %\noindent Ten rozdział pochodzi z książki \emph{\@title}, która zostanie opublikowana w portalu + %\href{http://prawokultury.pl/}{prawokultury.pl}. \vspace{.5em} \fi - Utwór opracowany został w ramach projektu \href{http://www.wolnelektury.pl/}{Wolne Lektury} - przez \href{http://nowoczesnapolska.org.pl}{fundację Nowoczesna Polska}. + % Utwór opracowany został w ramach projektu \href{http://www.wolnelektury.pl/}{Wolne Lektury} + % przez \href{http://nowoczesnapolska.org.pl}{fundację Nowoczesna Polska}. - \end{minipage} + % \end{minipage} \noindent \rule{\linewidth}{0.4pt} \vspace{.6em} @@ -234,9 +258,9 @@ Letters={SmallCaps,UppercaseSmallCaps} \rightsinfo \vspace{.6em} - Źródło: \href{\bookurl}{\bookurl} + %Źródło: \href{\bookurl}{\bookurl} - \vspace{.6em} + %\vspace{.6em} \sourceinfo \description @@ -244,6 +268,9 @@ Letters={SmallCaps,UppercaseSmallCaps} \editors + \vspace{.6em} + \coverby + \color{black} } \end{figure} @@ -267,7 +294,8 @@ Letters={Uppercase} } \newcommand{\typosection}[1]{% -{\addfontfeature{FakeStretch=0.96, LetterSpace=-4.0}\emph{\scalefont{2}#1}} +%{\addfontfeature{FakeStretch=0.96, LetterSpace=-4.0}\emph{\scalefont{2}#1}} +{\addfontfeature{FakeStretch=0.96, LetterSpace=-4.0}\emph{\scalefont{1.7}#1}} %{\addfontfeature{Scale=2.0, FakeStretch=0.98, LetterSpace=-2.0}\emph{#1}} } @@ -290,7 +318,7 @@ Letters={Uppercase} } \newcommand{\nazwautworu}[1]{% -\section*{\typosection{#1}}% +\section*{\raggedright{\typosection{#1}}}% } \newcommand{\podtytul}[1]{% @@ -324,6 +352,7 @@ Letters={Uppercase} \newcommand{\dlugicytat}[1]{% \begin{quotation}% +%\raggedright% #1% \end{quotation}% } @@ -342,7 +371,8 @@ Letters={Uppercase} \par{#1}% \begin{itemize}% #2% -\end{itemize}% +\end{itemize} + } \newcommand{\nagloweklisty}[1]{% @@ -358,29 +388,32 @@ Letters={Uppercase} } \newcommand{\naglowekakt}[1]{% -\pagebreak +\newpage \subsection*{\typosubsection{#1}}% } \newcommand{\naglowekczesc}[1]{% -\pagebreak +\newpage \subsection*{\typosubsection{#1}}% } \newcommand{\srodtytul}[1]{% -\subsection*{\typosubsection{#1}}% +\par{\typosubsubsection{#1}}% +%\subsection*{\typosubsection{#1}}% } \newcommand{\naglowekscena}[1]{% \subsubsection*{\typosubsubsection{#1}}% } \newcommand{\naglowekrozdzial}[1]{% -\subsubsection*{\typosubsubsection{#1}}% +\subsection*{\raggedright \typosubsection{#1}}% +%\subsubsection*{\typosubsubsection{#1}}% } \newcommand{\naglowekosoba}[1]{% \par{\textsc{#1}}\nopagebreak% } \newcommand{\naglowekpodrozdzial}[1]{% -\par{#1}\nopagebreak% +\subsubsection*{\typosubsubsection{#1}}% +%\par{#1}\nopagebreak% } \newcommand{\miejsceczas}[1]{% @@ -425,7 +458,8 @@ Letters={Uppercase} } \ifshowfootnotes - \newcommand{\pa}[1]{\NoCaseChange{\footnote{#1 [przypis autorski]}}} + %\newcommand{\pa}[1]{\NoCaseChange{\footnote{#1 [przypis autorski]}}} + \newcommand{\pa}[1]{\NoCaseChange{\footnote{#1}}} \newcommand{\pe}[1]{\NoCaseChange{\footnote{#1}}} \newcommand{\pr}[1]{\NoCaseChange{\footnote{#1}}} \newcommand{\pt}[1]{\NoCaseChange{\footnote{#1}}} @@ -485,3 +519,26 @@ Letters={Uppercase} \fi } + +\newcommand{\www}[1]{% +%\href{#1}{#1}% +\url{#1}% +} +\newcommand{\listanum}[1]{% +\begin{enumerate}% +#1% +\end{enumerate}% +} +\newcommand{\listapunkt}[1]{% +\begin{itemize}% +#1% +\end{itemize}% +} +\newcommand{\punkt}[1]{% +\item #1% +} +\newcommand{\ilustr}[2]{% +\vspace{1em}% +\par{\noindent\includegraphics[width=\linewidth]{#1}}% +\vspace{1em} +}