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