source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/man.endnotes.are.numbered.xml@ 67f507c

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 67f507c was 15c7d39, checked in by Matthew Burgess <matthew@…>, 11 years ago

Update stylesheets to docbook-xsl-1.78.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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