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 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
---|
7 | |
---|
8 | <!-- TOC links in the titles, and in blue. --> |
---|
9 | <xsl:param name="latex.hyperparam">colorlinks,linkcolor=blue,pdfstartview=FitH</xsl:param> |
---|
10 | <xsl:param name="doc.publisher.show">1</xsl:param> |
---|
11 | <xsl:param name="doc.lot.show"></xsl:param> |
---|
12 | <xsl:param name="term.breakline">1</xsl:param> |
---|
13 | <xsl:param name="doc.collab.show">0</xsl:param> |
---|
14 | <xsl:param name="doc.section.depth">3</xsl:param> |
---|
15 | <xsl:param name="table.in.float">0</xsl:param> |
---|
16 | <xsl:param name="monoseq.hyphenation">0</xsl:param> |
---|
17 | <xsl:param name="latex.output.revhistory">1</xsl:param> |
---|
18 | |
---|
19 | <!-- This doesn't work, don't know why, see: |
---|
20 | http://dblatex.sourceforge.net/html/manual/apas03.html |
---|
21 | ./docbook-xsl/common.xsl |
---|
22 | --> |
---|
23 | <!-- |
---|
24 | <xsl:param name="doc.toc.show"> |
---|
25 | <xsl:choose> |
---|
26 | <xsl:when test="/processing-instruction('asciidoc-toc')"> |
---|
27 | 1 |
---|
28 | </xsl:when> |
---|
29 | <xsl:otherwise> |
---|
30 | 0 |
---|
31 | </xsl:otherwise> |
---|
32 | </xsl:choose> |
---|
33 | </xsl:param> |
---|
34 | <xsl:param name="doc.lot.show"> |
---|
35 | <xsl:choose> |
---|
36 | <xsl:when test="/book"> |
---|
37 | figure,table,equation,example |
---|
38 | </xsl:when> |
---|
39 | </xsl:choose> |
---|
40 | </xsl:param> |
---|
41 | --> |
---|
42 | <xsl:param name="doc.toc.show">1</xsl:param> |
---|
43 | |
---|
44 | <!-- |
---|
45 | Override default literallayout template. |
---|
46 | See `./dblatex/dblatex-readme.txt`. |
---|
47 | --> |
---|
48 | <xsl:template match="address|literallayout[@class!='monospaced']"> |
---|
49 | <xsl:text>\begin{alltt}</xsl:text> |
---|
50 | <xsl:text> \normalfont{} </xsl:text> |
---|
51 | <xsl:apply-templates/> |
---|
52 | <xsl:text> \end{alltt}</xsl:text> |
---|
53 | </xsl:template> |
---|
54 | |
---|
55 | <xsl:template match="processing-instruction('asciidoc-pagebreak')"> |
---|
56 | <!-- force hard pagebreak, varies from 0(low) to 4(high) --> |
---|
57 | <xsl:text>\pagebreak[4] </xsl:text> |
---|
58 | <xsl:apply-templates /> |
---|
59 | <xsl:text> </xsl:text> |
---|
60 | </xsl:template> |
---|
61 | |
---|
62 | <xsl:template match="processing-instruction('asciidoc-br')"> |
---|
63 | <xsl:text>\newline </xsl:text> |
---|
64 | </xsl:template> |
---|
65 | |
---|
66 | <xsl:template match="processing-instruction('asciidoc-hr')"> |
---|
67 | <!-- draw a 444 pt line (centered) --> |
---|
68 | <xsl:text>\begin{center} </xsl:text> |
---|
69 | <xsl:text>\line(1,0){444} </xsl:text> |
---|
70 | <xsl:text>\end{center} </xsl:text> |
---|
71 | </xsl:template> |
---|
72 | |
---|
73 | </xsl:stylesheet> |
---|
74 | |
---|