X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/b8e34e0e6730ef76a353a15ff653faa9e8c88a77..927e24e2966e0e4a60414f4cf20770a19bc02f69:/librarian/pdf/wl.cls diff --git a/librarian/pdf/wl.cls b/librarian/pdf/wl.cls index c387b03..753a1b5 100644 --- a/librarian/pdf/wl.cls +++ b/librarian/pdf/wl.cls @@ -61,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} @@ -75,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 [ @@ -86,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} @@ -138,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} @@ -149,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 @@ -199,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} @@ -236,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 @@ -272,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}} } @@ -295,7 +318,7 @@ Letters={Uppercase} } \newcommand{\nazwautworu}[1]{% -\section*{\typosection{#1}}% +\section*{\raggedright{\typosection{#1}}}% } \newcommand{\podtytul}[1]{% @@ -327,8 +350,78 @@ Letters={Uppercase} \end{em}% } +\newlength{\fboxhsep} +\newlength{\fboxvsep} + +\newlength{\fboxtoprule} +\newlength{\fboxbottomrule} +\newlength{\fboxleftrule} +\newlength{\fboxrightrule} + +\setlength{\fboxhsep}{5\fboxsep} +\setlength{\fboxvsep}{20\fboxsep} + +\setlength{\fboxtoprule}{\fboxrule} +\setlength{\fboxleftrule}{\fboxrule} +\setlength{\fboxrightrule}{\fboxrule} +\setlength{\fboxbottomrule}{\fboxrule} + + + +\def\@frameb@xother#1{% + \@tempdima\fboxtoprule + \advance\@tempdima\fboxvsep + \advance\@tempdima\dp\@tempboxa + \hbox{% + \lower\@tempdima\hbox{% + \vbox{% + \hrule\@height\fboxtoprule + \hbox{% + \vrule\@width\fboxleftrule + #1% + \vbox{% + \vskip\fboxvsep + \box\@tempboxa + \vskip\fboxvsep}% + #1% + \vrule\@width\fboxrightrule}% + \hrule\@height\fboxbottomrule}% + }% + }% +} + + +\long\def\fboxother#1{% + \leavevmode + \setbox\@tempboxa\hbox{% + \color@begingroup + \kern\fboxhsep{#1}\kern\fboxhsep + \color@endgroup}% + \@frameb@xother\relax} + +\newcommand{\myfbox}[3]{% + \begingroup + \setlength{\fboxhsep}{#1} + \setlength{\fboxvsep}{#2} + \fboxother{#3} + + \endgroup +} + +\newcommand{\ramka}[1]{% +\par\vspace{1em}% +\edef\myindent{\the\parindent}% +\noindent\myfbox{1em}{1em}{% +\parbox{\textwidth}{% +\setlength{\parindent}{\myindent}% +#1% +}}% +\vspace{1em}% +} + \newcommand{\dlugicytat}[1]{% \begin{quotation}% +%\raggedright% #1% \end{quotation}% } @@ -347,7 +440,8 @@ Letters={Uppercase} \par{#1}% \begin{itemize}% #2% -\end{itemize}% +\end{itemize} + } \newcommand{\nagloweklisty}[1]{% @@ -363,29 +457,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]{% @@ -430,7 +527,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}}} @@ -490,3 +588,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} +}