<!-- * this "bold everything in function synopsis" rule. -->
<!-- * -->
<!-- * Users who don't want the bold output can choose to adjust the -->
- <!-- * man.funcsynopsisinfo.font parameter on their own. So even if you -->
+ <!-- * man.font.funcsynopsisinfo parameter on their own. So even if you -->
<!-- * don't personally like the way it looks, please don't change the -->
<!-- * default to be non-bold - because it's a convention that's -->
<!-- * followed is the vast majority of existing man pages that document -->
<!-- * functions, and we need to follow it by default, like it or no. -->
<xsl:text>.ft </xsl:text>
- <xsl:value-of select="$man.funcsynopsisinfo.font"/>
+ <xsl:value-of select="$man.font.funcsynopsisinfo"/>
<xsl:text> </xsl:text>
<xsl:text>.nf </xsl:text>
<xsl:apply-templates/>
<xsl:param name="man.indent.lists" select="1"/>
<xsl:param name="man.indent.verbatims" select="1"/>
<xsl:param name="man.indent.width">3n</xsl:param>
- <xsl:param name="man.funcprototype.font">BI</xsl:param>
- <xsl:param name="man.funcsynopsisinfo.font">B</xsl:param>
- <xsl:param name="man.table.headings.font">B</xsl:param>
- <xsl:param name="man.table.title.font">B</xsl:param>
<xsl:param name="man.table.footnotes.separator.line">----</xsl:param>
<xsl:param name="man.output.in.separate.dir" select="0"/>
<xsl:param name="man.output.base.dir">man/</xsl:param>
<xsl:param name="man.output.subdirs.enabled" select="1"/>
+ <xsl:param name="tbl.font.headings" select="man.font.table.headings">B</xsl:param>
+ <xsl:param name="tbl.font.title" select="man.font.table.title">B</xsl:param>
+
<!-- ==================================================================== -->
<xsl:template match="/">
<!ENTITY man.subheading.divider SYSTEM "../params/man.subheading.divider.xml">
<!ENTITY man.subheading.divider.enabled SYSTEM "../params/man.subheading.divider.enabled.xml">
<!ENTITY man.segtitle.suppress SYSTEM "../params/man.segtitle.suppress.xml">
+<!ENTITY man.font.funcprototype SYSTEM "../params/man.font.funcprototype.xml">
+<!ENTITY man.font.funcsynopsisinfo SYSTEM "../params/man.font.funcsynopsisinfo.xml">
&man.hyphenate.computer.inlines;
&man.justify;
&man.break.after.slash;
+ </reference>
+ <reference id="fonts">
+ <title>Fonts</title>
+&man.font.funcprototype;
+&man.font.funcsynopsisinfo;
</reference>
<reference id="links">
<title>Link handling</title>
<src:fragref linkend="man.hyphenate.filenames.frag"/>
<src:fragref linkend="man.hyphenate.computer.inlines.frag"/>
<src:fragref linkend="man.justify.frag"/>
+<src:fragref linkend="man.font.funcprototype.frag"/>
+<src:fragref linkend="man.font.funcsynopsisinfo.frag"/>
<src:fragref linkend="man.output.manifest.enabled.frag"/>
<src:fragref linkend="man.output.manifest.filename.frag"/>
<src:fragref linkend="man.output.quietly.frag"/>
<!-- * this "bold everything in function synopsis" rule. -->
<!-- * -->
<!-- * Users who don't want the bold output can choose to adjust the -->
-<!-- * man.funcprototype.font parameter on their own. So even if you -->
+<!-- * man.font.funcprototype parameter on their own. So even if you -->
<!-- * don't personally like the way it looks, please don't change the -->
<!-- * default to be non-bold - because it's a convention that's -->
<!-- * followed is the vast majority of existing man pages that document -->
<xsl:value-of select="string-length (normalize-space ($funcprototype.string.value)) + 1"/>
<xsl:text> </xsl:text>
<xsl:text>.</xsl:text>
- <xsl:value-of select="$man.funcprototype.font"/>
+ <xsl:value-of select="$man.font.funcprototype"/>
<xsl:text> </xsl:text>
<!-- * The following quotation mark (and the one further below) are -->
<!-- * needed to properly delimit the parts of the Funcprototype that -->
******************************************************************** -->
<!--
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/>
+ <xsl:param name="tbl.font.title">B</xsl:param>
+ <xsl:param name="tbl.font.headings">B</xsl:param>
-->
<xsl:param name="tbl.running.header.from.thead" select="0"/>
<xsl:param name="tbl.column.separator.char">:</xsl:param>
- <xsl:param name="tbl.title.font">B</xsl:param>
- <xsl:param name="tbl.headings.font">B</xsl:param>
<!-- ==================================================================== -->
<xsl:if test="$title != '' or parent::td">
<xsl:text>.PP </xsl:text>
<xsl:text>.</xsl:text>
- <xsl:value-of select="$tbl.title.font"/>
+ <xsl:value-of select="$tbl.font.title"/>
<xsl:text> </xsl:text>
<xsl:if test="parent::td">
<xsl:text>*[nested table]</xsl:text>
</xsl:if>
<xsl:if test="@class = 'th'">
<!-- * If this is a heading row, generate a font indicator (B or I), -->
- <!-- * or if the value of $man.table.headings.font is empty, nothing. -->
- <xsl:value-of select="$tbl.headings.font"/>
+ <!-- * or if the value of $tbl.font.headings is empty, nothing. -->
+ <xsl:value-of select="$tbl.font.headings"/>
</xsl:if>
<!-- * We only need to deal with colspans whose value is greater -->
<!-- * than one (a colspan="1" is the same as having no colspan -->
--- /dev/null
+<refentry id="man.font.funcprototype">
+<refmeta>
+<refentrytitle>man.font.funcprototype</refentrytitle>
+
+</refmeta>
+<refnamediv>
+<refname>man.font.funcprototype</refname>
+<refpurpose>Specifies font for funcprototype output</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment id='man.font.funcprototype.frag'>
+ <xsl:param name="man.font.funcprototype">BI</xsl:param>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsect1><title>Description</title>
+
+<para>The <parameter>man.font.funcprototype</parameter> parameter
+specifies the font for <sgmltag>funcprototype</sgmltag> output. It
+should be a valid roff font name, such as <literal>BI</literal> or
+<literal>B</literal>.</para>
+
+</refsect1>
+</refentry>
--- /dev/null
+<refentry id="man.font.funcsynopsisinfo">
+<refmeta>
+<refentrytitle>man.font.funcsynopsisinfo</refentrytitle>
+
+</refmeta>
+<refnamediv>
+<refname>man.font.funcsynopsisinfo</refname>
+<refpurpose>Specifies font for funcsynopsisinfo output</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment id='man.font.funcsynopsisinfo.frag'>
+ <xsl:param name="man.font.funcsynopsisinfo">B</xsl:param>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsect1><title>Description</title>
+
+<para>The <parameter>man.font.funcsynopsisinfo</parameter> parameter
+specifies the font for <sgmltag>funcsynopsisinfo</sgmltag> output. It
+should be a valid roff font name, such as <literal>B</literal> or
+<literal>I</literal>.</para>
+
+</refsect1>
+</refentry>