man.th.title.max.length.xml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <refentry xmlns="http://docbook.org/ns/docbook"
  2. xmlns:xlink="http://www.w3.org/1999/xlink"
  3. xmlns:xi="http://www.w3.org/2001/XInclude"
  4. xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
  5. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  6. version="5.0" xml:id="man.th.title.max.length">
  7. <refmeta>
  8. <refentrytitle>man.th.title.max.length</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">integer</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>man.th.title.max.length</refname>
  13. <refpurpose>Maximum length of title in header/footer</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="man.th.title.max.length.frag">
  17. <xsl:param name="man.th.title.max.length">20</xsl:param>
  18. </src:fragment>
  19. </refsynopsisdiv>
  20. <refsection><info><title>Description</title></info>
  21. <para>Specifies the maximum permitted length of the title part of the
  22. man-page <literal>.TH</literal> title line header/footer. If the title
  23. exceeds the maxiumum specified, it is truncated down to the maximum
  24. permitted length.</para>
  25. <refsection><info><title>Details</title></info>
  26. <para>Every man page generated using the DocBook stylesheets has a
  27. title line, specified using the <literal>TH</literal> roff
  28. macro. Within that title line, there is always, at a minimum, a title,
  29. followed by a section value (representing a man "section" -- usually
  30. just a number).</para>
  31. <para>The title and section are displayed, together, in the visible
  32. header of each page. Where in the header they are displayed depends on
  33. OS the man page is viewed on, and on what version of nroff/groff/man
  34. is used for viewing the page. But, at a minimum and across all
  35. systems, the title and section are displayed on the right-hand column
  36. of the header. On many systems -- those with a modern groff, including
  37. Linux systems -- they are displayed twice: both in the left and right
  38. columns of the header.</para>
  39. <para>So if the length of the title exceeds a certain percentage of
  40. the column width in which the page is viewed, the left and right
  41. titles can end up overlapping, making them unreadable, or breaking to
  42. another line, which doesn't look particularly good.</para>
  43. <para>So the stylesheets provide the
  44. <parameter>man.th.title.max.length</parameter> parameter as a means
  45. for truncating titles that exceed the maximum length that can be
  46. viewing properly in a page header.</para>
  47. <para>The default value is reasonable but somewhat arbitrary. If you
  48. have pages with long titles, you may want to experiment with changing
  49. the value in order to achieve the correct aesthetic results.</para>
  50. </refsection>
  51. </refsection>
  52. </refentry>