X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/262c7082c23ab266254175438d1524470996c4d2..8a488c1221da01fd1848f680a844016743edf192:/librarian/pdf/wl.cls diff --git a/librarian/pdf/wl.cls b/librarian/pdf/wl.cls index c9305ca..5cc872f 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 @@ -13,6 +14,9 @@ \RequirePackage{setspace} \RequirePackage{type1cm} +\RequirePackage{amssymb} +\RequirePackage{amsmath} + \DeclareOption{13pt}{% \AtEndOfClass{% % font size definitions, similar to ones in /usr/share/texmf-texlive/tex/latex/base/ @@ -39,6 +43,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,18 +64,20 @@ \DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}} \ProcessOptions\relax -\LoadClass[a4paper,oneside]{book} +\LoadClass[a4paper]{book} \usepackage{trace} - +\usepackage{caption} +\usepackage{tabularx} \usepackage[MeX]{polski} - +\usepackage{icomma} \usepackage[xetex]{graphicx} \usepackage{fontspec} \usepackage{xunicode} \usepackage{xltxtra} + \usepackage[overload]{textcase} \usepackage{scalefnt} \usepackage[colorlinks=true,linkcolor=black,setpagesize=false,urlcolor=black,xetex]{hyperref} @@ -136,7 +143,8 @@ Letters={SmallCaps,UppercaseSmallCaps} \setlength{\marginparsep}{2em} \setlength{\marginparwidth}{8.5em} -\setlength{\oddsidemargin}{0pt} +\setlength{\oddsidemargin}{36mm} +\setlength{\evensidemargin}{0pt} \setlength{\voffset}{0pt} \setlength{\topmargin}{0pt} \setlength{\headheight}{0pt} @@ -147,9 +155,12 @@ Letters={SmallCaps,UppercaseSmallCaps} \fancyhf{} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} -\lfoot{{\footnotesize \textsc{\@author} \emph{\@title}}} + +%\lfoot{{\footnotesize \textsc{\@author} \emph{\@title}}} \cfoot{} -\rfoot{{\footnotesize \thepage}} +%\rfoot{{\footnotesize \thepage}} +\fancyfoot[LO,RE]{{\footnotesize \textsc{\@author} \emph{\@title}}} +\fancyfoot[LE,RO]{{\footnotesize \thepage}} \clubpenalty=100000 \widowpenalty=100000 @@ -167,8 +178,10 @@ Letters={SmallCaps,UppercaseSmallCaps} \raisebox{0pt}[0pt][0pt]{\makebox[0pt][r]{\usebox{\xglyphbox}}}} \newcommand{\makecover}[2]{ - \pdfpagewidth=#1 - \pdfpageheight=#2 + + + %\pdfpagewidth=#1 + %\pdfpageheight=#2 \thispagestyle{empty} \newlength{\PictHOffset} @@ -183,15 +196,41 @@ Letters={SmallCaps,UppercaseSmallCaps} \addtolength{\PictVOffset}{\headheight} \addtolength{\PictVOffset}{\headsep} \addtolength{\PictVOffset}{\topskip} - \addtolength{\PictVOffset}{-\pdfpageheight} + + \addtolength{\PictVOffset}{-#2} \noindent\hspace*{-\PictHOffset}% \raisebox{\PictVOffset}[0pt][0pt]{\makebox[0pt][l]{% - \includegraphics[height=\pdfpageheight,width=\pdfpagewidth]{cover.png}}} - \clearpage + \includegraphics[height=#2,width=#1]{cover.jpg}}} + %\clearpage + \vspace{#2} + + \hspace{-36mm}\parbox{16cm}{ + {\addfontfeature{LetterSpace=-4.0}{\scalefont{4}% + \noindent Philippe Aigrain}} + + {\addfontfeature{LetterSpace=-4.0}{\scalefont{2.5}% + przy współpracy Suzanne Aigrain + }} + + \vspace{2em} + {\addfontfeature{LetterSpace=-4.0}{\scalefont{6}% + Dzielenie się + }} + + \vspace{2em} + {\addfontfeature{LetterSpace=-4.0}{\scalefont{3}% + Kultura i gospodarka epoki internetu + }} + + +%\emph{\thankyou}\\ +%\indent\emph{You made this book possible.} + } - \setlength{\pdfpagewidth}{210mm} - \setlength{\pdfpageheight}{297mm} + + %\setlength{\pdfpagewidth}{210mm} + %\setlength{\pdfpageheight}{297mm} } @@ -221,35 +260,150 @@ Letters={SmallCaps,UppercaseSmallCaps} \vspace{.6em} \color{black} + } } +\usepackage{printlen} + \newcommand{\editorialsection}{ - \begin{figure}[b!] - { - \footnotesize - \color{theme} - \noindent \rule{\linewidth}{0.4pt} +\clearpage +% Pusta strona +\clearpage - \rightsinfo - \vspace{.6em} +\vspace{2em} + \hspace{0mm}\parbox{16cm}{ +\centering + {\addfontfeature{LetterSpace=-4.0}{\scalefont{6}% + Dzielenie się + }} - Źródło: \href{\bookurl}{\bookurl} + \vspace{2em} + {\addfontfeature{LetterSpace=-4.0}{\scalefont{3}% + Kultura i gospodarka epoki internetu + }} +} - \vspace{.6em} - \sourceinfo +\clearpage +\clearpage - \description - \vspace{.6em} +%\parbox{10cm}{ +% \centering - \editors + \hspace{-36mm}\parbox{16cm}{ +\centering - \vspace{.6em} - \coverby + {\addfontfeature{LetterSpace=-4.0}{\scalefont{4}% + \noindent Philippe Aigrain + }} - \color{black} - } - \end{figure} + {\addfontfeature{LetterSpace=-4.0}{\scalefont{2.5}% + przy współpracy Suzanne Aigrain + }} + + \vspace{2em} + {\addfontfeature{LetterSpace=-4.0}{\scalefont{6}% + Dzielenie się + }} + + \vspace{2em} + {\addfontfeature{LetterSpace=-4.0}{\scalefont{4}% + Kultura i gospodarka epoki internetu + }} + + \vspace{2em} + {\addfontfeature{LetterSpace=-4.0}{\scalefont{2}% + Z języka angielskiego przełożył \\ + \emph{Wojciech Pędzich} + }} + +\vspace{22em} + +\includegraphics[scale=.2]{logo.eps} +} + + +\clearpage + +\noindent Tytuł oryginału + +\noindent \emph{Sharing. Culture and the Economy in the Internet Age} + +\vspace{1em} + +\noindent \editors + +\vspace{1em} + + +\noindent \rightsinfo + +\vspace{1em} + +\noindent \coverby + + +%\set\textwidth=450pt +%\printlength\textwidth + + +%% {\scalefont{1.5}Drogi czytelniku!} + + + +%% \vspace{1em} + +\vspace{1em} + +\noindent Tłumaczenie książki powstało w ramach projektu "Przyszłość prawa autorskiego" finansowanego przez {\it Trust for Civil Society in Central and Eastern Europe}. + +\vspace{1em} + +\noindent \includegraphics[scale=.4]{cce_trust.eps} + +\vspace{1em} + +\noindent Wydawca: Fundacja Nowoczesna Polska, Warszawa 2012 + +\vspace{1em} +\includegraphics[scale=.2]{logo.eps} +\vspace{1em} + +\noindent \href{http://nowoczesnapolska.org.pl/}{http://nowoczesnapolska.org.pl/} + + + +%\vspace{4em} +%\box{\tableofcontents} + +%% \begin{figure}[b!] +%% { +%% \footnotesize +%% \color{theme} +%% \noindent \rule{\linewidth}{0.4pt} + +%% \rightsinfo +%% % \vspace{.6em} + +%% %Źródło: \href{\bookurl}{\bookurl} + +%% %\vspace{.6em} +%% %\sourceinfo + +%% %\description +%% %\vspace{.6em} + +%% Opublikowano przez \href{http://nowoczesnapolska.org.pl}{Fundację Nowoczesna Polska}, 2012. + +%% \editors + +%% %\vspace{.6em} +%% \coverby + +%% \color{black} +%% } +%% \end{figure} +\clearpage } @@ -274,10 +428,13 @@ Letters={Uppercase} %{\addfontfeature{Scale=2.0, FakeStretch=0.98, LetterSpace=-2.0}\emph{#1}} } - \newcommand{\tytul}[1]{% #1% -\vspace{1em}% +%\vspace{1em}% +} + +\newcommand{\autorpodutworu}[1]{% +\section*{\typosection{#1}}% } \newcommand{\nazwapodutworu}[1]{% @@ -285,6 +442,7 @@ Letters={Uppercase} } \newcommand{\autorutworu}[1]{% +\addcontentsline{toc}{part}{???} \subsection*{\typosubsection{#1}}% } @@ -300,11 +458,14 @@ Letters={Uppercase} \subsection*{\typosubsubsection{#1}}% } +\newcommand{\podtytulpodutworu}[1]{% +\subsection*{\typosubsubsection{#1}}% +} + \newcommand{\translator}[1]{% \subsection*{\typosubsubsection{tłum. #1}}% } - \newcommand{\powiesc}[1]{#1} \newcommand{\opowiadanie}[1]{#1} \newcommand{\lirykal}[1]{#1} @@ -314,7 +475,9 @@ Letters={Uppercase} \newcommand{\dramatwspolczesny}[1]{#1} \newcommand{\nota}[1]{% -\par{#1}% +\begin{quotation}% +#1% +\end{quotation}% } \newcommand{\dedykacja}[1]{% @@ -365,25 +528,25 @@ Letters={Uppercase} \subsection*{\typosubsection{#1}}% } \newcommand{\naglowekczesc}[1]{% -\pagebreak +%\pagebreak \subsection*{\typosubsection{#1}}% } -\newcommand{\srodtytul}[1]{% +\newcommand{\naglowekrozdzial}[1]{% \subsection*{\typosubsection{#1}}% } \newcommand{\naglowekscena}[1]{% \subsubsection*{\typosubsubsection{#1}}% } -\newcommand{\naglowekrozdzial}[1]{% +\newcommand{\naglowekpodrozdzial}[1]{% \subsubsection*{\typosubsubsection{#1}}% } \newcommand{\naglowekosoba}[1]{% \par{\textsc{#1}}\nopagebreak% } -\newcommand{\naglowekpodrozdzial}[1]{% -\par{#1}\nopagebreak% +\newcommand{\srodtytul}[1]{% +\vskip 1em \par{\large \it \noindent #1}\vskip .5em\nopagebreak% } \newcommand{\miejsceczas}[1]{% @@ -467,6 +630,7 @@ Letters={Uppercase} \begin{center}% \par{*}% \end{center}% +\noindent% } \newcommand{\separatorlinia}{% @@ -488,3 +652,11 @@ Letters={Uppercase} \fi } +\newcommand{\ilustr}[2]{ + +\vspace{1em}% +\begin{center}% +\par{\includegraphics[width=\textwidth]{#1}\\#2}% +\end{center}% +\vspace{1em}% +}