]> pere.pagekite.me Git - text-destroy-surveillance.git/blob - pdf.xsl
Fix title page, include author and publisher.
[text-destroy-surveillance.git] / pdf.xsl
1 <?xml version='1.0' encoding="UTF-8"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
3 <xsl:param name="latex.class.book">book</xsl:param>
4 <xsl:param name="latex.class.options">a4paper,openright,twoside</xsl:param>
5 <xsl:param name="page.width">6in</xsl:param>
6 <xsl:param name="page.height">9in</xsl:param>
7 <xsl:param name="page.margin.inner">0.8in</xsl:param>
8 <xsl:param name="page.margin.outer">0.55in</xsl:param>
9 <xsl:param name="page.margin.top">0.55in</xsl:param>
10 <xsl:param name="page.margin.bottom">0.55in</xsl:param>
11 <xsl:param name="ulink.show">1</xsl:param>
12 <xsl:param name="ulink.footnotes">1</xsl:param>
13 <xsl:param name="double.sided">1</xsl:param>
14 <xsl:param name="doc.collab.show">0</xsl:param>
15 <xsl:param name="latex.output.revhistory">0</xsl:param>
16 <xsl:param name="doc.publisher.show">0</xsl:param>
17 <xsl:param name="draft.mode">yes</xsl:param>
18 <xsl:param name="draft.watermark">1</xsl:param>
19
20 <!-- insert a few latex tricks at the top of the .tex document -->
21 <xsl:param name="latex.begindocument">
22 <xsl:text>% start of latex.begindocument
23
24 % Trick to avoid many words sticking out of the right margin of the text.
25 \sloppy
26
27 % The microtype package provides the ability to micromanage your
28 % typography. When invoked without any options it does some nice things
29 % like protruding punctuation over the edge of the right margin to make
30 % the margin appear smoother. Basically it makes your book look more
31 % professional with very little effort. It also has a ton of options if
32 % you want to micromanage even more.
33 \usepackage{microtype}
34
35 % Make URLs in footnotes smaller to fit the long URLs
36 \usepackage{relsize}
37 \usepackage{hyperref}
38 \renewcommand*{\UrlFont}{\ttfamily\relsize{-2}}
39
40 % Disable headers and footer texts
41 \pagestyle{myheadings}
42
43 \def\DBKpublisher{Petter Reinholdtsen \\ Oslo}
44
45 % Cludge to replace DBKcover \def in
46 % /usr/share/texmf/tex/latex/dblatex/style/dbk_title.sty where author
47 % and publisher is missing
48 \def\DBKcover{
49 \ifthenelse{\equal{\DBKedition}{}}{\def\edhead{}}{\def\edhead{Ed. \DBKedition}}
50 % interligne double
51 \setlength{\oldbaselineskip}{\baselineskip}
52 \setlength{\baselineskip}{2\oldbaselineskip}
53 \textsf{
54 \vfill
55 \vspace{2.5cm}
56 \begin{center}
57 \huge{\textbf{\DBKtitle}}\\ %
58 \ifx\DBKsubtitle\relax\else%
59 \underline{\ \ \ \ \ \ \ \ \ \ \ }\\ %
60 \ \\ %
61 \huge{\textbf{\DBKsubtitle}}\\ %
62 \fi
63 \ \\ %
64 \huge{\DBKauthor} \\%
65 \end{center}
66 \vfill
67 \setlength{\baselineskip}{\oldbaselineskip}
68 \hspace{1cm}
69 \vspace{1cm}
70 \begin{center}
71 \Large{\DBKpublisher} \\
72 \end{center}
73 }
74
75 % Format for the other pages
76 \newpage
77 \setlength{\baselineskip}{\oldbaselineskip}
78 \lfoot[]{}
79 }
80
81 \begin{document}
82 % end of latex.begindocument
83 </xsl:text>
84 </xsl:param>
85 <xsl:param name="local.l10n.xml" select="document('')"/>
86 <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
87 <l:l10n language="nb">
88 <!-- Fix bugs in default nb locale -->
89 <l:dingbat key="startquote" text="«"/>
90 <l:dingbat key="endquote" text="»"/>
91 <l:dingbat key="nestedstartquote" text="‘"/>
92 <l:dingbat key="nestedendquote" text="’"/>
93 </l:l10n>
94 </l:i18n>
95
96 </xsl:stylesheet>