]> pere.pagekite.me Git - text-destroy-surveillance.git/blob - pdf.xsl
Improve book layout and set up for translation.
[text-destroy-surveillance.git] / pdf.xsl
1 <?xml version='1.0' encoding="iso-8859-1"?>
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:stylesheet>