X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/48acd2e1b4ad0a64661091dff97122b2a53e4685..5c58ac489d6f95b5790092edc65911cc839297ed:/librarian/pdf/wl.cls

diff --git a/librarian/pdf/wl.cls b/librarian/pdf/wl.cls
index c9305ca..cb53a3f 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,13 +64,14 @@
 
 \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}
@@ -136,7 +142,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 +154,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
@@ -190,8 +200,29 @@ Letters={SmallCaps,UppercaseSmallCaps}
             \includegraphics[height=\pdfpageheight,width=\pdfpagewidth]{cover.png}}}
         \clearpage
 
-        \setlength{\pdfpagewidth}{210mm}
-        \setlength{\pdfpageheight}{297mm}
+ 
+%% Strona tytuÅowa %% XXX
+       \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
+        }}
+        }
+
+       \setlength{\pdfpagewidth}{210mm}
+       \setlength{\pdfpageheight}{297mm}
 }
 
 
@@ -224,32 +255,157 @@ Letters={SmallCaps,UppercaseSmallCaps}
     }
 }
 
+\usepackage{printlen}
+
 \newcommand{\editorialsection}{
-  \begin{figure}[b!]
-  {
-    \footnotesize
-    \color{theme}
-    \noindent \rule{\linewidth}{0.4pt}
+%% XXX % sprawdzic czy czegos nie zgubilem z master
+%% szczegolnie jesli chodzi o makra wstawiajace dane z DC, jak np \editors
+\clearpage
+        \thispagestyle{empty}
 
-    \rightsinfo
-    \vspace{.6em}
+% Pusta strona 
+\clearpage
+        \thispagestyle{empty}
 
-    Å¹rÃ³dÅo: \href{\bookurl}{\bookurl}
+\vspace{2em}
+      \hspace{0mm}\parbox{16cm}{
+\centering
+      {\addfontfeature{LetterSpace=-4.0}{\scalefont{6}%
+           Dzielenie siÄ
+      }}
 
-    \vspace{.6em}
-    \sourceinfo
+  \vspace{2em}
+         {\addfontfeature{LetterSpace=-4.0}{\scalefont{3}%
+             Kultura i gospodarka epoki internetu
+         }}
+}
 
-    \description
-    \vspace{.6em}
+\clearpage
+        \thispagestyle{empty}
 
-    \editors
+\clearpage
+        \thispagestyle{empty}
 
-    \vspace{.6em}
-    \coverby
+%\parbox{10cm}{
+%  \centering
 
-    \color{black}
-  }
-  \end{figure}
+  \hspace{-36mm}\parbox{16cm}{
+\centering
+
+  {\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{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}
+}
+
+    PrzekaÅ¼ darowiznÄ na konto:
+    \href{http://nowoczesnapolska.org.pl/pomoz-nam/wesprzyj-nas/}{szczegÃ³Åy na stronie Fundacji}.
+
+\clearpage
+        \thispagestyle{empty}
+
+\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
 }
 
 
@@ -300,6 +456,10 @@ Letters={Uppercase}
 \subsection*{\typosubsubsection{#1}}%
 }
 
+\newcommand{\podtytulpodutworu}[1]{%
+\subsection*{\typosubsubsection{#1}}%
+}
+
 \newcommand{\translator}[1]{%
 \subsection*{\typosubsubsection{tÅum. #1}}%
 }
