Blame params/man.th.title.max.length.xml

Packit 6d14d2
Packit 6d14d2
          xmlns:xlink="http://www.w3.org/1999/xlink"
Packit 6d14d2
          xmlns:xi="http://www.w3.org/2001/XInclude"
Packit 6d14d2
          xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
Packit 6d14d2
          xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
Packit 6d14d2
          version="5.0" xml:id="man.th.title.max.length">
Packit 6d14d2
<refmeta>
Packit 6d14d2
<refentrytitle>man.th.title.max.length</refentrytitle>
Packit 6d14d2
<refmiscinfo class="other" otherclass="datatype">integer</refmiscinfo>
Packit 6d14d2
</refmeta>
Packit 6d14d2
<refnamediv>
Packit 6d14d2
<refname>man.th.title.max.length</refname>
Packit 6d14d2
<refpurpose>Maximum length of title in header/footer</refpurpose>
Packit 6d14d2
</refnamediv>
Packit 6d14d2
Packit 6d14d2
<refsynopsisdiv>
Packit 6d14d2
<src:fragment xml:id="man.th.title.max.length.frag">
Packit 6d14d2
<xsl:param name="man.th.title.max.length">20</xsl:param>
Packit 6d14d2
</src:fragment>
Packit 6d14d2
</refsynopsisdiv>
Packit 6d14d2
Packit 6d14d2
<refsection><info><title>Description</title></info>
Packit 6d14d2
Packit 6d14d2
<para>Specifies the maximum permitted length of the title part of the
Packit 6d14d2
man-page <literal>.TH</literal> title line header/footer. If the title
Packit 6d14d2
exceeds the maxiumum specified, it is truncated down to the maximum
Packit 6d14d2
permitted length.</para>
Packit 6d14d2
Packit 6d14d2
<refsection><info><title>Details</title></info>
Packit 6d14d2
  
Packit 6d14d2
Packit 6d14d2
<para>Every man page generated using the DocBook stylesheets has a
Packit 6d14d2
title line, specified using the <literal>TH</literal> roff
Packit 6d14d2
macro. Within that title line, there is always, at a minimum, a title,
Packit 6d14d2
followed by a section value (representing a man "section" -- usually
Packit 6d14d2
just a number).</para>
Packit 6d14d2
Packit 6d14d2
<para>The title and section are displayed, together, in the visible
Packit 6d14d2
header of each page. Where in the header they are displayed depends on
Packit 6d14d2
OS the man page is viewed on, and on what version of nroff/groff/man
Packit 6d14d2
is used for viewing the page. But, at a minimum and across all
Packit 6d14d2
systems, the title and section are displayed on the right-hand column
Packit 6d14d2
of the header. On many systems -- those with a modern groff, including
Packit 6d14d2
Linux systems -- they are displayed twice: both in the left and right
Packit 6d14d2
columns of the header.</para>
Packit 6d14d2
Packit 6d14d2
<para>So if the length of the title exceeds a certain percentage of
Packit 6d14d2
the column width in which the page is viewed, the left and right
Packit 6d14d2
titles can end up overlapping, making them unreadable, or breaking to
Packit 6d14d2
another line, which doesn't look particularly good.</para>
Packit 6d14d2
Packit 6d14d2
<para>So the stylesheets provide the
Packit 6d14d2
<parameter>man.th.title.max.length</parameter> parameter as a means
Packit 6d14d2
for truncating titles that exceed the maximum length that can be
Packit 6d14d2
viewing properly in a page header.</para>
Packit 6d14d2
Packit 6d14d2
<para>The default value is reasonable but somewhat arbitrary. If you
Packit 6d14d2
have pages with long titles, you may want to experiment with changing
Packit 6d14d2
the value in order to achieve the correct aesthetic results.</para>
Packit 6d14d2
</refsection>
Packit 6d14d2
Packit 6d14d2
</refsection>
Packit 6d14d2
</refentry>