]> pere.pagekite.me Git - text-mekanikerord.git/blob - pdf.xsl
Adjust frontmatter a bit.
[text-mekanikerord.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
4 <!-- xsl:param name="paper.type">a4</xsl:param -->
5 <xsl:param name="double.sided">1</xsl:param>
6 <xsl:param name="page.width">6in</xsl:param>
7 <xsl:param name="page.height">9in</xsl:param>
8 <xsl:param name="page.margin.inner">0.8in</xsl:param>
9 <xsl:param name="page.margin.outer">0.55in</xsl:param>
10 <xsl:param name="page.margin.top">0.55in</xsl:param>
11 <xsl:param name="page.margin.bottom">0.55in</xsl:param>
12 <xsl:param name="latex.class.book">book</xsl:param>
13 <xsl:param name="latex.class.options">a4paper,openright,twoside</xsl:param>
14
15 <!-- No use showing table of content, it is empty -->
16 <xsl:param name="doc.toc.show">0</xsl:param>
17
18 <!-- no need for a separate author list -->
19 <xsl:param name="doc.collab.show">0</xsl:param>
20
21 <!-- disable revision history until there is a history to display -->
22 <xsl:param name="latex.output.revhistory">0</xsl:param>
23
24 <!-- enable draft mode until ready to publish -->
25 <xsl:param name="draft.mode">yes</xsl:param>
26 <xsl:param name="draft.watermark">1</xsl:param>
27
28 <!-- insert a few latex tricks at the top of the .tex document -->
29 <xsl:param name="latex.begindocument">
30 <xsl:text>% start of latex.begindocument
31 \usepackage{multicol}
32
33 % unboxed = wrap glossary term
34 % multicols = get two columns only in mainpart
35 \setlist[description]{%
36 style=unboxed,
37 before*=\begin{multicols}{2},
38 after*=\end{multicols}
39 % first*=
40 % topsep=30pt, % space before start / after end of list
41 % itemsep=5pt, % space between items
42 % font=\normalfont,
43 }
44
45 % Trick to avoid many words sticking out of the right margin of the text.
46 \sloppy
47
48 % The microtype package provides the ability to micromanage your
49 % typography. When invoked without any options it does some nice things
50 % like protruding punctuation over the edge of the right margin to make
51 % the margin appear smoother. Basically it makes your book look more
52 % professional with very little effort. It also has a ton of options if
53 % you want to micromanage even more.
54 \usepackage{microtype}
55
56 \begin{document}
57 % end of latex.begindocument
58 </xsl:text>
59 </xsl:param>
60
61 <!-- disable chapter numbering for glossary -->
62 <xsl:param name="glossary.numbered">0</xsl:param>
63
64 </xsl:stylesheet>