2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5 <xsl:template match="*[local-name() = 'co']">
6 <xsl:value-of select="concat('\','fB(',substring-after(@id,'-'),')','\','fR')"/>
8 <xsl:template match="*[local-name() = 'calloutlist']">
9 <xsl:value-of select="."/>
10 <xsl:text>sp </xsl:text>
11 <xsl:apply-templates/>
12 <xsl:text> </xsl:text>
14 <xsl:template match="*[local-name() = 'callout']">
15 <xsl:value-of select="concat('\','fB',substring-after(@arearefs,'-'),'. ','\','fR')"/>
16 <xsl:apply-templates/>
17 <xsl:value-of select="."/>
18 <xsl:text>br </xsl:text>
22 <xsl:template match="*[local-name() = 'ulink']">
23 <xsl:apply-templates/><xsl:text> <</xsl:text><xsl:value-of select="@url"/><xsl:text>></xsl:text>
27 <xsl:template match="*[local-name() = 'literal']">
28 <xsl:text>\fB</xsl:text>
29 <xsl:value-of select="." />
30 <xsl:text>\fR</xsl:text>
34 Make admonitions look like this:
39 Sit sed culpa elit dolore esse irure dolor amet magna
42 Duis adipisicing magna quis in in in reprehenderit
43 proident minim cupidatat dolore sit minim deserunt duis dolore ex ea.
52 Sit sed culpa elit dolore esse irure dolor amet magna
55 Duis adipisicing magna quis in in in reprehenderit
56 proident minim cupidatat dolore sit minim deserunt duis
61 This looks better when, for example, you put a note immediately
67 • Some other list item.
70 Does this note apply to the last list item or to the
76 • Some other list item.
79 This note applies to the previous block.
81 <xsl:template match="caution|important|note|tip|warning">
82 <xsl:call-template name="roff-if-start">
83 <xsl:with-param name="condition">n</xsl:with-param>
85 <xsl:text>.sp </xsl:text>
86 <xsl:call-template name="roff-if-end"/>
87 <xsl:if test="not($man.output.better.ps.enabled = 0)">
88 <xsl:text>.BM yellow </xsl:text>
90 <xsl:call-template name="pinch.together"/>
91 <xsl:text>.ps +1 </xsl:text>
92 <xsl:call-template name="make.bold.title"/>
93 <xsl:text>.ps -1 </xsl:text>
94 <xsl:text>.br </xsl:text>
95 <xsl:text>.RS 4 </xsl:text>
96 <xsl:apply-templates/>
97 <xsl:text>.sp .5v </xsl:text>
98 <xsl:if test="not($man.output.better.ps.enabled = 0)">
99 <xsl:text>.EM yellow </xsl:text>
101 <xsl:text>.RE </xsl:text>
104 <!-- Disable end notes -->
105 <xsl:param name="man.endnotes.are.numbered">0</xsl:param>
107 <!-- Disable hyphenation, except for URLs -->
108 <xsl:param name="man.hyphenate">0</xsl:param>
111 Mainly for example blocks: indent the whole example after
112 the title, like this:
114 Example 1. Do something
116 Amet consectetur adipisicing minim sunt ad dolore culpa
117 enim labore incididunt cillum exercitation non non
118 deserunt veniam consectetur sint.
126 Example 1. Do something
128 Amet consectetur adipisicing minim sunt ad dolore culpa
129 enim labore incididunt cillum exercitation non non
130 deserunt veniam consectetur sint.
136 <xsl:template name="formal.object">
137 <xsl:param name="placement" select="'before'"/>
138 <xsl:param name="class" select="local-name(.)"/>
141 <xsl:when test="$placement = 'before'">
142 <xsl:call-template name="formal.object.heading"/>
143 <xsl:text>.RS 4 </xsl:text>
144 <xsl:apply-templates/>
145 <xsl:text>.RE </xsl:text>
148 <xsl:text>.RS 4 </xsl:text>
149 <xsl:apply-templates/>
150 <xsl:text>.RE </xsl:text>
151 <xsl:call-template name="formal.object.heading"/>