man.endnotes.are.numbered.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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.endnotes.are.numbered">
  7. <refmeta>
  8. <refentrytitle>man.endnotes.are.numbered</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>man.endnotes.are.numbered</refname>
  13. <refpurpose>Number endnotes?</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="man.endnotes.are.numbered.frag">
  17. <xsl:param name="man.endnotes.are.numbered">1</xsl:param>
  18. </src:fragment>
  19. </refsynopsisdiv>
  20. <refsection><info><title>Description</title></info>
  21. <para>If the value of <parameter>man.endnotes.are.numbered</parameter> is
  22. non-zero (the default), then for each non-empty<footnote>
  23. <para>A “non-empty” notesource is one that looks like
  24. this:<literallayout class="monospaced"> &lt;ulink url="http://docbook.sf.net/snapshot/xsl/doc/manpages/"&gt;manpages&lt;/ulink&gt;</literallayout>
  25. an “empty” notesource is on that looks like this:<literallayout class="monospaced"> &lt;ulink url="http://docbook.sf.net/snapshot/xsl/doc/manpages/"/&gt;</literallayout>
  26. </para></footnote> “notesource”:
  27. <itemizedlist>
  28. <listitem>
  29. <para>a number (in square brackets) is displayed inline after the
  30. rendered inline contents (if any) of the notesource</para>
  31. </listitem>
  32. <listitem>
  33. <para>the contents of the notesource are included in a
  34. numbered list of endnotes that is generated at the end of
  35. each man page; the number for each endnote corresponds to
  36. the inline number for the notesource with which it is
  37. associated</para>
  38. </listitem>
  39. </itemizedlist>
  40. The default heading for the list of endnotes is
  41. <literal>NOTES</literal>. To output a different heading, set a value
  42. for the <parameter>man.endnotes.section.heading</parameter>
  43. parameter.</para>
  44. <note>
  45. <para>The endnotes list is also displayed (but without
  46. numbers) if the value of
  47. <parameter>man.endnotes.list.enabled</parameter> is
  48. non-zero.</para>
  49. </note>
  50. <para>If the value of <parameter>man.endnotes.are.numbered</parameter> is
  51. zero, numbering of endnotess is suppressed; only inline
  52. contents (if any) of the notesource are displayed inline.
  53. <important>
  54. <para>If you are thinking about disabling endnote numbering by setting
  55. the value of <parameter>man.endnotes.are.numbered</parameter> to zero,
  56. before you do so, first take some time to carefully
  57. consider the information needs and experiences of your users. The
  58. square-bracketed numbers displayed inline after notesources may seem
  59. obstrusive and aesthetically unpleasing<footnote><para>As far as notesources that are links, ytou might
  60. think it would be better to just display URLs for non-empty
  61. links inline, after their content, rather than displaying
  62. square-bracketed numbers all over the place. But it's not better. In
  63. fact, it's not even practical, because many (most) URLs for links
  64. are too long to be displayed inline. They end up overflowing the
  65. right margin. You can set a non-zero value for
  66. <parameter>man.break.after.slash</parameter> parameter to deal with
  67. that, but it could be argued that what you end up with is at least
  68. as ugly, and definitely more obstrusive, then having short
  69. square-bracketed numbers displayed inline.</para></footnote>,
  70. but in a text-only output format, the
  71. numbered-notesources/endnotes-listing mechanism is the only
  72. practical way to handle this kind of content.</para>
  73. <para>Also, users of “text based” browsers such as
  74. <command>lynx</command> will already be accustomed to seeing inline
  75. numbers for links. And various "man to html" applications, such as
  76. the widely used <command><link xlink:href="http://users.actrix.gen.nz/michael/vhman2html.html">man2html</link></command> (<literal>VH-Man2html</literal>)
  77. application, can automatically turn URLs into "real" HTML hyperlinks
  78. in output. So leaving <parameter>man.endnotes.are.numbered</parameter>
  79. at its default (non-zero) value ensures that no information is
  80. lost in your man-page output. It just gets
  81. “rearranged”.</para>
  82. </important>
  83. </para>
  84. <para>The handling of empty links is not affected by this
  85. parameter. Empty links are handled simply by displaying their URLs
  86. inline. Empty links are never auto-numbered.</para>
  87. <para>If you disable endnotes numbering, you should probably also set
  88. <parameter>man.font.links</parameter> to an empty value (to
  89. disable font formatting for links.</para>
  90. </refsection>
  91. <refsection><info><title>Related Parameters</title></info>
  92. <para><parameter>man.endnotes.list.enabled</parameter>,
  93. <parameter>man.font.links</parameter></para>
  94. </refsection>
  95. </refentry>