]> pere.pagekite.me Git - text-destroy-surveillance.git/blob - pdf.xsl
Set licence to CC-BY-ND.
[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
6 <!-- insert a few latex tricks at the top of the .tex document -->
7 <xsl:param name="latex.begindocument">
8 <xsl:text>% start of latex.begindocument
9
10 % Trick to avoid many words sticking out of the right margin of the text.
11 \sloppy
12
13 % The microtype package provides the ability to micromanage your
14 % typography. When invoked without any options it does some nice things
15 % like protruding punctuation over the edge of the right margin to make
16 % the margin appear smoother. Basically it makes your book look more
17 % professional with very little effort. It also has a ton of options if
18 % you want to micromanage even more.
19 \usepackage{microtype}
20
21 % Make URLs in footnotes smaller to fit the long URLs
22 \usepackage{relsize}
23 \usepackage{hyperref}
24 \renewcommand*{\UrlFont}{\ttfamily\relsize{-2}}
25
26 \begin{document}
27 % end of latex.begindocument
28 </xsl:text>
29 </xsl:param>
30 <xsl:param name="local.l10n.xml" select="document('')"/>
31 <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
32 <l:l10n language="nb">
33 <!-- Fix bugs in default nb locale -->
34 <l:dingbat key="startquote" text="«"/>
35 <l:dingbat key="endquote" text="»"/>
36 <l:dingbat key="nestedstartquote" text="‘"/>
37 <l:dingbat key="nestedendquote" text="’"/>
38 </l:l10n>
39 </l:i18n>
40
41 </xsl:stylesheet>