Merge changes from master to Aigrain publishing code - that will be used for new...
[librarian.git] / librarian / pdf / wl.cls
index 247116c..cb53a3f 100644 (file)
@@ -16,6 +16,7 @@
 \RequirePackage{type1cm}
 \RequirePackage{amssymb}
 \RequirePackage{amsmath}
+
 \DeclareOption{13pt}{%
 \AtEndOfClass{%
 % font size definitions, similar to ones in /usr/share/texmf-texlive/tex/latex/base/
 
 
 \usepackage{trace}
-
-%\usepackage[MeX]{polski}
-
+\usepackage{caption}
+\usepackage{tabularx}
+\usepackage[MeX]{polski}
+\usepackage{icomma}
 \usepackage[xetex]{graphicx}
 \usepackage{fontspec}
 \usepackage{xunicode}
@@ -152,6 +154,7 @@ Letters={SmallCaps,UppercaseSmallCaps}
 \fancyhf{}
 \renewcommand{\headrulewidth}{0pt}
 \renewcommand{\footrulewidth}{0pt}
+
 %\lfoot{{\footnotesize \textsc{\@author} \emph{\@title}}}
 \cfoot{}
 %\rfoot{{\footnotesize \thepage}}
@@ -174,9 +177,8 @@ 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}
@@ -191,34 +193,36 @@ Letters={SmallCaps,UppercaseSmallCaps}
         \addtolength{\PictVOffset}{\headheight}
         \addtolength{\PictVOffset}{\headsep}
         \addtolength{\PictVOffset}{\topskip}
-        \addtolength{\PictVOffset}{-#2}
+        \addtolength{\PictVOffset}{-\pdfpageheight}
 
         \noindent\hspace*{-\PictHOffset}%
         \raisebox{\PictVOffset}[0pt][0pt]{\makebox[0pt][l]{%
-            \includegraphics[height=#2,width=#1]{cover.jpg}}}
-        %\clearpage
-        \vspace{#2}
+            \includegraphics[height=\pdfpageheight,width=\pdfpagewidth]{cover.png}}}
+        \clearpage
 
-        \hspace{-36mm}\parbox{16cm}{
-        {\addfontfeature{LetterSpace=-4.0}\emph{\scalefont{4}%
-            \noindent Future of Copyright Anthology
+%% 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{1.5}%
-            A collection of texts from a crowd-funded contest.
+        {\addfontfeature{LetterSpace=-4.0}{\scalefont{6}%
+            Dzielenie się
+        }}
+        
+        \vspace{2em}
+        {\addfontfeature{LetterSpace=-4.0}{\scalefont{3}%
+            Kultura i gospodarka epoki internetu
         }}
-
-
-        \vspace{8em}
-
-\emph{\thankyou}\\
-\indent\emph{You made this book possible.}
         }
 
-
-        %\setlength{\pdfpagewidth}{210mm}
-        %\setlength{\pdfpageheight}{297mm}
+       \setlength{\pdfpagewidth}{210mm}
+       \setlength{\pdfpageheight}{297mm}
 }
 
 
@@ -254,77 +258,154 @@ Letters={SmallCaps,UppercaseSmallCaps}
 \usepackage{printlen}
 
 \newcommand{\editorialsection}{
+%% XXX % sprawdzic czy czegos nie zgubilem z master
+%% szczegolnie jesli chodzi o makra wstawiajace dane z DC, jak np \editors
+\clearpage
+        \thispagestyle{empty}
+
+% Pusta strona 
+\clearpage
+        \thispagestyle{empty}
+
+\vspace{2em}
+      \hspace{0mm}\parbox{16cm}{
+\centering
+      {\addfontfeature{LetterSpace=-4.0}{\scalefont{6}%
+           Dzielenie się
+      }}
+
+  \vspace{2em}
+         {\addfontfeature{LetterSpace=-4.0}{\scalefont{3}%
+             Kultura i gospodarka epoki internetu
+         }}
+}
+
+\clearpage
+        \thispagestyle{empty}
+
+\clearpage
+        \thispagestyle{empty}
+
+%\parbox{10cm}{
+%  \centering
+
+  \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}Dear readers!}
+%% {\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}
-It is our great pleasure to present you the “Future of Copyright 
-Anthology”, a collection of 10 best short stories sent in for the “Future 
-of Copyright” contest organized by Modern Poland Foundation. These works 
-have been selected by our jury – Prof. Michael Geist, Piotr Czerski and 
-Jarosław Lipszyc.
-
-The main prize in this contest was founded by you, the readers, on the 
-Indiegogo crowdfunding platform. We are proud to announce that this 
-prize goes to Aymeric Mansoux, author of “Morphology of a copyright 
-tale”, in appreciation of the originality, power and the strong message 
-of this work. Moreover, the jury decided to grant an honorable mention 
-to Togi, author of the work “Give”.
-
-We would like to thank you for your crowdfunding support and a high
-standard of the submitted works. We were pleasantly surprised by the
-interest shown in the competition, and we have decided to hold
-its second edition next 
-year. We hope that with your help it will be even more successful and 
-the collected works will provide a strong voice in the debate on the future 
-of copyright law and system.
+
+\noindent \includegraphics[scale=.4]{cce_trust.eps}
 
 \vspace{1em}
-Modern Poland Foundation Team
 
-\vspace{4em}
+\noindent Wydawca: Fundacja Nowoczesna Polska, Warszawa 2012
+
+\vspace{1em}
 \includegraphics[scale=.2]{logo.eps}
 \vspace{1em}
 
-\href{http://nowoczesnapolska.org.pl/}{http://nowoczesnapolska.org.pl/}
+\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}
+%%   \begin{figure}[b!]
+%%   {
+%%     \footnotesize
+%%     \color{theme}
+%%     \noindent \rule{\linewidth}{0.4pt}
 
-    %Źródło: \href{\bookurl}{\bookurl}
+%%     \rightsinfo
+%% %    \vspace{.6em}
 
-    %\vspace{.6em}
-    %\sourceinfo
+%%     %Źródło: \href{\bookurl}{\bookurl}
 
-    %\description
-    %\vspace{.6em}
+%%     %\vspace{.6em}
+%%     %\sourceinfo
 
-    Published by \href{http://nowoczesnapolska.org.pl}{Modern Poland Foundation}, 2012.
+%%     %\description
+%%     %\vspace{.6em}
 
-    \editors
+%%     Opublikowano przez \href{http://nowoczesnapolska.org.pl}{Fundację Nowoczesna Polska}, 2012.
 
-    %\vspace{.6em}
-    \coverby
+%%     \editors
 
-    \color{black}
-  }
-  \end{figure}
+%%     %\vspace{.6em}
+%%     \coverby
+    
+%%     \color{black}
+%%   }
+%%   \end{figure}
+\clearpage
 }
 
 
@@ -349,13 +430,10 @@ Letters={Uppercase}
 %{\addfontfeature{Scale=2.0, FakeStretch=0.98, LetterSpace=-2.0}\emph{#1}}
 }
 
+
 \newcommand{\tytul}[1]{%
 #1%
-%\vspace{1em}%
-}
-
-\newcommand{\autorpodutworu}[1]{%
-\section*{\typosection{#1}}%
+\vspace{1em}%
 }
 
 \newcommand{\nazwapodutworu}[1]{%
@@ -363,7 +441,6 @@ Letters={Uppercase}
 }
 
 \newcommand{\autorutworu}[1]{%
-\addcontentsline{toc}{part}{???}
 \subsection*{\typosubsection{#1}}%
 }
 
@@ -387,6 +464,7 @@ Letters={Uppercase}
 \subsection*{\typosubsubsection{tłum. #1}}%
 }
 
+
 \newcommand{\powiesc}[1]{#1}
 \newcommand{\opowiadanie}[1]{#1}
 \newcommand{\lirykal}[1]{#1}
@@ -396,9 +474,7 @@ Letters={Uppercase}
 \newcommand{\dramatwspolczesny}[1]{#1}
 
 \newcommand{\nota}[1]{%
-\begin{quotation}%
-#1%
-\end{quotation}%
+\par{#1}%
 }
 
 \newcommand{\dedykacja}[1]{%
@@ -449,7 +525,7 @@ Letters={Uppercase}
 \subsection*{\typosubsection{#1}}%
 }
 \newcommand{\naglowekczesc}[1]{%
-%\pagebreak
+\pagebreak
 \subsection*{\typosubsection{#1}}%
 }
 \newcommand{\srodtytul}[1]{%
@@ -551,7 +627,6 @@ Letters={Uppercase}
 \begin{center}%
 \par{*}%
 \end{center}%
-\noindent%
 }
 
 \newcommand{\separatorlinia}{%
@@ -573,11 +648,3 @@ Letters={Uppercase}
 \fi
 }
 
-\newcommand{\ilustr}[2]{
-
-\vspace{1em}%
-\begin{center}%
-\par{\includegraphics[width=\textwidth]{#1}\\#2}%
-\end{center}%
-\vspace{1em}%
-}