X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/a2f8ee881d66601e9cb714069dc88d3ed9703db6..84ec0eba63d0933b3f22a7884c46be6b796ee165:/librarian/pdf/wl.sty?ds=inline

diff --git a/librarian/pdf/wl.sty b/librarian/pdf/wl.sty
index 3a8016f..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}{
     {
@@ -112,12 +140,15 @@ Letters={SmallCaps,UppercaseSmallCaps}
     \end{minipage}
     \begin{minipage}[t]{.65\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}.
         \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}
     \noindent \rule{\linewidth}{0.4pt}
@@ -137,12 +168,15 @@ Letters={SmallCaps,UppercaseSmallCaps}
     \rightsinfo
     \vspace{.6em}
 
+    Å¹rÃ³dÅo: \href{\bookurl}{\bookurl}
+
+    \vspace{.6em}
     \sourceinfo
 
     \description
     \vspace{.6em}
 
-    Opracowanie redakcyjne i przypisy: \editors.
+    \editors
 
     \color{black}
   }
@@ -325,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}}}
