1 <?xml version="1.0" encoding="iso-8859-1"?>
3 dblatex(1) XSL user stylesheet for asciidoc(1).
4 See dblatex(1) -p option.
6 modified for Proxmox VE documenation.
8 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
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>
25 <!-- This doesn't work, don't know why, see:
26 http://dblatex.sourceforge.net/html/manual/apas03.html
27 ./docbook-xsl/common.xsl
30 <xsl:param name="doc.toc.show">
32 <xsl:when test="/processing-instruction('asciidoc-toc')">
40 <xsl:param name="doc.lot.show">
42 <xsl:when test="/book">
43 figure,table,equation,example
48 <xsl:param name="doc.toc.show">1</xsl:param>
51 Override default literallayout template.
52 See `./dblatex/dblatex-readme.txt`.
54 <xsl:template match="address|literallayout[@class!='monospaced']">
55 <xsl:text>\begin{alltt}</xsl:text>
56 <xsl:text> \normalfont{} </xsl:text>
57 <xsl:apply-templates/>
58 <xsl:text> \end{alltt}</xsl:text>
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> </xsl:text>
68 <xsl:template match="processing-instruction('asciidoc-br')">
69 <xsl:text>\newline </xsl:text>
72 <xsl:template match="processing-instruction('asciidoc-hr')">
73 <!-- draw a 444 pt line (centered) -->
74 <xsl:text>\begin{center} </xsl:text>
75 <xsl:text>\line(1,0){444} </xsl:text>
76 <xsl:text>\end{center} </xsl:text>
79 <xsl:template match="formalpara">
80 <xsl:text> \paragraph*{</xsl:text>
81 <xsl:call-template name="normalize-scape">
82 <xsl:with-param name="string" select="title"/>
84 <xsl:text>} </xsl:text>
85 <xsl:call-template name="label.id"/>
86 <xsl:apply-templates/>
87 <xsl:text> </xsl:text>
88 <xsl:text> </xsl:text>