X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/1ce2c1255aee01fab9940fc26d251767bbf8c960..1602c5e8bbd84ccda4cb89d8470a3cf652d2c684:/librarian/pdf/wl.sty?ds=inline

diff --git a/librarian/pdf/wl.sty b/librarian/pdf/wl.sty
index 687efde..28a23a5 100644
--- a/librarian/pdf/wl.sty
+++ b/librarian/pdf/wl.sty
@@ -9,7 +9,7 @@
 
 \usepackage[overload]{textcase}
 \usepackage{scalefnt}
-\usepackage[colorlinks=true,linkcolor=black,urlcolor=black]{hyperref}
+\usepackage[colorlinks=true,linkcolor=black,setpagesize=false,urlcolor=black,xetex]{hyperref}
 
 \setmainfont [
 %ExternalLocation,
@@ -100,6 +100,34 @@ Letters={SmallCaps,UppercaseSmallCaps}
 \usebox{\ximagebox}%
 \raisebox{0pt}[0pt][0pt]{\makebox[0pt][r]{\usebox{\xglyphbox}}}}
 
+\newcommand{\makecover}[2]{
+        \pdfpagewidth=#1
+        \pdfpageheight=#2
+
+        \thispagestyle{empty}
+        \newlength{\PictHOffset}
+        \newlength{\PictVOffset}
+        \setlength{\PictHOffset}{1in}
+        \addtolength{\PictHOffset}{\hoffset}
+        \addtolength{\PictHOffset}{\oddsidemargin}
+
+        \setlength{\PictVOffset}{1in}
+        \addtolength{\PictVOffset}{\voffset}
+        \addtolength{\PictVOffset}{\topmargin}
+        \addtolength{\PictVOffset}{\headheight}
+        \addtolength{\PictVOffset}{\headsep}
+        \addtolength{\PictVOffset}{\topskip}
+        \addtolength{\PictVOffset}{-\pdfpageheight}
+
+        \noindent\hspace*{-\PictHOffset}%
+        \raisebox{\PictVOffset}[0pt][0pt]{\makebox[0pt][l]{%
+            \includegraphics[height=\pdfpageheight,width=\pdfpagewidth]{cover.png}}}
+        \clearpage
+
+        \setlength{\pdfpagewidth}{210mm}
+        \setlength{\pdfpageheight}{297mm}
+}
+
 
 \renewcommand{\maketitle}{
     {
@@ -111,36 +139,51 @@ Letters={SmallCaps,UppercaseSmallCaps}
         \href{http://www.wolnelektury.pl}{\xbox{\includegraphics[width=\textwidth]{wl-logo.png}}}
     \end{minipage}
     \begin{minipage}[t]{.65\textwidth}\vspace{0pt}
-        Na podstawie: \sourceinfo
-
-        \vspace{.5em}
 
-        Wersja lektury on-line dostÄpna jest \href{\bookurl}{na stronie wolnelektury.pl}.
+    \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}.
         \vspace{.5em}
+    \fi
 
-        \rightsinfo
-
-        \vspace{.6em}
+    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}
     \noindent \rule{\linewidth}{0.4pt}
 
     \vspace{.6em}
     \color{black}
+    }
+}
 
-%    \begin{figure}[b!]
-%        \footnotesize
-%        \color{theme}
-%        \noindent \rule{\linewidth}{0.4pt}
+\newcommand{\editorialsection}{
+  \begin{figure}[b!]
+  {
+    \footnotesize
+    \color{theme}
+    \noindent \rule{\linewidth}{0.4pt}
 
-%        Szkolna biblioteka internetowa Wolne Lektury tworzona jest dziÄki pracy Wolontariuszy, ale to osoby
-%        zatrudnione w~FNP bÄdÄ musiaÅy wymyÅliÄ, co powinno zostaÄ napisane w~tym miejscu. MoÅ¼na zupeÅnie usunÄÄ
-%        tÄ sekcjÄ, ale autor konwertera chciaÅ siÄ popisaÄ, Å¼e umie coÅ takiego zrobiÄ.
-%        \color{black}
-%    \end{figure}
-    }
+    \rightsinfo
+    \vspace{.6em}
+
+    Å¹rÃ³dÅo: \href{\bookurl}{\bookurl}
+
+    \vspace{.6em}
+    \sourceinfo
+
+    \description
+    \vspace{.6em}
+
+    \editors
+
+    \color{black}
+  }
+  \end{figure}
 }
 
+
 \newcommand{\typosubsubsection}[1]{%
 {\textsc{#1}}
 }
@@ -162,6 +205,12 @@ Letters={Uppercase}
 %{\addfontfeature{Scale=2.0, FakeStretch=0.98, LetterSpace=-2.0}\emph{#1}}
 }
 
+
+\newcommand{\tytul}[1]{%
+#1%
+\vspace{1em}%
+}
+
 \newcommand{\nazwapodutworu}[1]{%
 \section*{\typosection{#1}}%
 }
@@ -170,14 +219,23 @@ Letters={Uppercase}
 \subsection*{\typosubsection{#1}}%
 }
 
+\newcommand{\dzielonadrzedne}[1]{%
+\subsection*{\typosubsubsection{#1}}%
+}
+
 \newcommand{\nazwautworu}[1]{%
 \section*{\typosection{#1}}%
 }
 
 \newcommand{\podtytul}[1]{%
-\subsection*{\typosubsection{#1}}%
+\subsection*{\typosubsubsection{#1}}%
+}
+
+\newcommand{\translator}[1]{%
+\subsection*{\typosubsubsection{tÅum. #1}}%
 }
 
+
 \newcommand{\powiesc}[1]{#1}
 \newcommand{\opowiadanie}[1]{#1}
 \newcommand{\lirykal}[1]{#1}
@@ -301,7 +359,7 @@ Letters={Uppercase}
 }
 
 
-\newcommand{\pa}[1]{\NoCaseChange{\footnote{#1}}}
+\newcommand{\pa}[1]{\NoCaseChange{\footnote{#1 [przypis autorski]}}}
 \newcommand{\pe}[1]{\NoCaseChange{\footnote{#1}}}
 \newcommand{\pr}[1]{\NoCaseChange{\footnote{#1}}}
 \newcommand{\pt}[1]{\NoCaseChange{\footnote{#1}}}
@@ -326,15 +384,20 @@ Letters={Uppercase}
 }
 
 \newcommand{\sekcjaswiatlo}{%
-\hspace{30pt}%
+\vspace{30pt}%
 }
 
 \newcommand{\sekcjaasterysk}{%
+\vspace{10pt}%
+\begin{center}%
 \par{*}%
+\end{center}%
 }
 
 \newcommand{\separatorlinia}{%
+\vspace{10pt}%
 \hrule{}%
+\vspace{10pt}%
 }
 
 \newcommand{\motyw}[2][0]{%
