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>
25 <xsl:template match="*[local-name() = 'link']">
26 <xsl:text>\fI</xsl:text><xsl:apply-templates/><xsl:text>\fR</xsl:text>
30 <xsl:template match="*[local-name() = 'literal']">
31 <xsl:text>\fB</xsl:text>
32 <xsl:value-of select="." />
33 <xsl:text>\fR</xsl:text>
37 Make admonitions look like this:
42 Sit sed culpa elit dolore esse irure dolor amet magna
45 Duis adipisicing magna quis in in in reprehenderit
46 proident minim cupidatat dolore sit minim deserunt duis dolore ex ea.
55 Sit sed culpa elit dolore esse irure dolor amet magna
58 Duis adipisicing magna quis in in in reprehenderit
59 proident minim cupidatat dolore sit minim deserunt duis
64 This looks better when, for example, you put a note immediately
70 • Some other list item.
73 Does this note apply to the last list item or to the
79 • Some other list item.
82 This note applies to the previous block.
84 <xsl:template match="caution|important|note|tip|warning">
85 <xsl:call-template name="roff-if-start">
86 <xsl:with-param name="condition">n</xsl:with-param>
88 <xsl:text>.sp </xsl:text>
89 <xsl:call-template name="roff-if-end"/>
90 <xsl:if test="not($man.output.better.ps.enabled = 0)">
91 <xsl:text>.BM yellow </xsl:text>
93 <xsl:call-template name="pinch.together"/>
94 <xsl:text>.ps +1 </xsl:text>
95 <xsl:call-template name="make.bold.title"/>
96 <xsl:text>.ps -1 </xsl:text>
97 <xsl:text>.br </xsl:text>
98 <xsl:text>.RS 4 </xsl:text>
99 <xsl:apply-templates/>
100 <xsl:text>.sp .5v </xsl:text>
101 <xsl:if test="not($man.output.better.ps.enabled = 0)">
102 <xsl:text>.EM yellow </xsl:text>
104 <xsl:text>.RE </xsl:text>
107 <!-- Disable end notes -->
108 <xsl:param name="man.endnotes.are.numbered">0</xsl:param>
110 <!-- Disable hyphenation, except for URLs -->
111 <xsl:param name="man.hyphenate">0</xsl:param>
114 Mainly for example blocks: indent the whole example after
115 the title, like this:
117 Example 1. Do something
119 Amet consectetur adipisicing minim sunt ad dolore culpa
120 enim labore incididunt cillum exercitation non non
121 deserunt veniam consectetur sint.
129 Example 1. Do something
131 Amet consectetur adipisicing minim sunt ad dolore culpa
132 enim labore incididunt cillum exercitation non non
133 deserunt veniam consectetur sint.
139 <xsl:template name="formal.object">
140 <xsl:param name="placement" select="'before'"/>
141 <xsl:param name="class" select="local-name(.)"/>
144 <xsl:when test="$placement = 'before'">
145 <xsl:call-template name="formal.object.heading"/>
146 <xsl:text>.RS 4 </xsl:text>
147 <xsl:apply-templates/>
148 <xsl:text>.RE </xsl:text>
151 <xsl:text>.RS 4 </xsl:text>
152 <xsl:apply-templates/>
153 <xsl:text>.RE </xsl:text>
154 <xsl:call-template name="formal.object.heading"/>