blob: e13db856932567d62cf1cb87ab36a7278581fa0d [file] [log] [blame]
Chris Johnsen5121a6d2009-03-27 01:44:05 -05001<!-- manpage-bold-literal.xsl:
2 special formatting for manpages rendered from asciidoc+docbook -->
3<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
Martin Ågren55aca512019-10-31 07:22:27 +01004 xmlns:d="http://docbook.org/ns/docbook"
Chris Johnsen5121a6d2009-03-27 01:44:05 -05005 version="1.0">
6
7<!-- render literal text as bold (instead of plain or monospace);
8 this makes literal text easier to distinguish in manpages
9 viewed on a tty -->
Martin Ågren55aca512019-10-31 07:22:27 +010010<xsl:template match="literal|d:literal">
Martin Ågren4344be02020-03-29 15:18:08 +020011 <xsl:text>\fB</xsl:text>
Chris Johnsen5121a6d2009-03-27 01:44:05 -050012 <xsl:apply-templates/>
Martin Ågren4344be02020-03-29 15:18:08 +020013 <xsl:text>\fR</xsl:text>
Chris Johnsen5121a6d2009-03-27 01:44:05 -050014</xsl:template>
15
16</xsl:stylesheet>