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