]> git.proxmox.com Git - pmg-docs.git/blob - asciidoc/pmg-dblatex.xsl
Update minimal and recommended system requirements
[pmg-docs.git] / asciidoc / pmg-dblatex.xsl
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!--
3 dblatex(1) XSL user stylesheet for asciidoc(1).
4 See dblatex(1) -p option.
5
6 modified for Proxmox VE documenation.
7 -->
8 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
9
10 <!-- TOC links in the titles, and in blue. -->
11 <xsl:param name="latex.hyperparam">colorlinks,linkcolor=blue,pdfstartview=FitH</xsl:param>
12 <xsl:param name="doc.publisher.show">0</xsl:param>
13 <xsl:param name="doc.lot.show"></xsl:param>
14 <xsl:param name="term.breakline">1</xsl:param>
15 <xsl:param name="doc.collab.show">0</xsl:param>
16 <xsl:param name="doc.publisher.show">0</xsl:param>
17 <xsl:param name="doc.section.depth">2</xsl:param>
18 <xsl:param name="toc.section.depth">2</xsl:param>
19 <xsl:param name="table.in.float">0</xsl:param>
20 <xsl:param name="monoseq.hyphenation">0</xsl:param>
21 <xsl:param name="latex.output.revhistory">0</xsl:param>
22 <xsl:param name="latex.class.options">12pt</xsl:param>
23
24
25 <!-- This doesn't work, don't know why, see:
26 http://dblatex.sourceforge.net/html/manual/apas03.html
27 ./docbook-xsl/common.xsl
28 -->
29 <!--
30 <xsl:param name="doc.toc.show">
31 <xsl:choose>
32 <xsl:when test="/processing-instruction('asciidoc-toc')">
33 1
34 </xsl:when>
35 <xsl:otherwise>
36 0
37 </xsl:otherwise>
38 </xsl:choose>
39 </xsl:param>
40 <xsl:param name="doc.lot.show">
41 <xsl:choose>
42 <xsl:when test="/book">
43 figure,table,equation,example
44 </xsl:when>
45 </xsl:choose>
46 </xsl:param>
47 -->
48 <xsl:param name="doc.toc.show">1</xsl:param>
49
50 <!--
51 Override default literallayout template.
52 See `./dblatex/dblatex-readme.txt`.
53 -->
54 <xsl:template match="address|literallayout[@class!='monospaced']">
55 <xsl:text>\begin{alltt}</xsl:text>
56 <xsl:text>&#10;\normalfont{}&#10;</xsl:text>
57 <xsl:apply-templates/>
58 <xsl:text>&#10;\end{alltt}</xsl:text>
59 </xsl:template>
60
61 <xsl:template match="processing-instruction('asciidoc-pagebreak')">
62 <!-- force hard pagebreak, varies from 0(low) to 4(high) -->
63 <xsl:text>\pagebreak[4] </xsl:text>
64 <xsl:apply-templates />
65 <xsl:text>&#10;</xsl:text>
66 </xsl:template>
67
68 <xsl:template match="processing-instruction('asciidoc-br')">
69 <xsl:text>\newline&#10;</xsl:text>
70 </xsl:template>
71
72 <xsl:template match="processing-instruction('asciidoc-hr')">
73 <!-- draw a 444 pt line (centered) -->
74 <xsl:text>\begin{center}&#10; </xsl:text>
75 <xsl:text>\line(1,0){444}&#10; </xsl:text>
76 <xsl:text>\end{center}&#10; </xsl:text>
77 </xsl:template>
78
79 <xsl:template match="formalpara">
80 <xsl:text>&#10;\paragraph*{</xsl:text>
81 <xsl:call-template name="normalize-scape">
82 <xsl:with-param name="string" select="title"/>
83 </xsl:call-template>
84 <xsl:text>} </xsl:text>
85 <xsl:call-template name="label.id"/>
86 <xsl:apply-templates/>
87 <xsl:text>&#10;</xsl:text>
88 <xsl:text>&#10;</xsl:text>
89 </xsl:template>
90
91 </xsl:stylesheet>
92