/usr/share/doc/texinfo/html/Node-Menu-Illustration.html is in texinfo-doc-nonfree 4.13a-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | <html lang="en">
<head>
<title>Node Menu Illustration - GNU Texinfo 4.13</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="GNU Texinfo 4.13">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Nodes.html#Nodes" title="Nodes">
<link rel="prev" href="Two-Paths.html#Two-Paths" title="Two Paths">
<link rel="next" href="node.html#node" title="node">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
This manual is for GNU Texinfo (version 4.13, 18 September 2008),
a documentation system that can produce both online information and a
printed manual from a single source.
Copyright (C) 1988, 1990, 1991, 1992, 1993, 1995, 1996, 1997,
1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software
Foundation; with no Invariant Sections, with the Front-Cover Texts
being ``A GNU Manual'', and with the Back-Cover Texts as in (a)
below. A copy of the license is included in the section entitled
``GNU Free Documentation License.''
(a) The FSF's Back-Cover Text is: ``You are free to copy and modify
this GNU Manual. Buying copies from GNU Press supports the FSF in
developing GNU and promoting software freedom.''
-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<a name="Node-Menu-Illustration"></a>
<p>
Next: <a rel="next" accesskey="n" href="node.html#node">node</a>,
Previous: <a rel="previous" accesskey="p" href="Two-Paths.html#Two-Paths">Two Paths</a>,
Up: <a rel="up" accesskey="u" href="Nodes.html#Nodes">Nodes</a>
<hr>
</div>
<h3 class="section">6.2 Node and Menu Illustration</h3>
<p>Here is a copy of the diagram shown earlier that illustrates a Texinfo
file with three chapters, each of which contains two sections.
<p>The “root” is at the top of the diagram and the “leaves” are at the
bottom. This is how such a diagram is drawn conventionally; it
illustrates an upside-down tree. For this reason, the root node is
called the `Top' node, and `Up' node pointers carry you closer to the
root.
<pre class="example"> Top
|
-------------------------------------
| | |
Chapter 1 Chapter 2 Chapter 3
| | |
-------- -------- --------
| | | | | |
Section Section Section Section Section Section
1.1 1.2 2.1 2.2 3.1 3.2
</pre>
<p>The fully-written command to start Chapter 2 would be this:
<pre class="example"> @node Chapter 2, Chapter 3, Chapter 1, Top
@comment node-name, next, previous, up
</pre>
<p class="noindent">This <code>@node</code> line says that the name of this node is “Chapter
2”, the name of the `Next' node is “Chapter 3”, the name of the
`Previous' node is “Chapter 1”, and the name of the `Up' node is
“Top”. You can omit writing out these node names if your document is
hierarchically organized (see <a href="makeinfo-Pointer-Creation.html#makeinfo-Pointer-Creation">makeinfo Pointer Creation</a>), but the
pointer relationships still obtain.
<blockquote>
<b>Note:</b> <strong>Please Note:</strong> `Next' refers to the next node at the same
hierarchical level in the manual, not necessarily to the next node
within the Texinfo file. In the Texinfo file, the subsequent node may
be at a lower level—a section-level node most often follows a
chapter-level node, for example. `Next' and `Previous' refer to nodes
at the <em>same</em> hierarchical level. (The `Top' node contains the
exception to this rule. Since the `Top' node is the only node at that
level, `Next' refers to the first following node, which is almost always
a chapter or chapter-level node.)
</blockquote>
<p>To go to Sections 2.1 and 2.2 using Info, you need a menu inside Chapter
2. (See <a href="Menus.html#Menus">Menus</a>.) You would write the menu just
before the beginning of Section 2.1, like this:
<pre class="example"> @menu
* Sect. 2.1:: Description of this section.
* Sect. 2.2::
@end menu
</pre>
<p>Write the node for Sect. 2.1 like this:
<pre class="example"> @node Sect. 2.1, Sect. 2.2, Chapter 2, Chapter 2
@comment node-name, next, previous, up
</pre>
<p>In Info format, the `Next' and `Previous' pointers of a node usually
lead to other nodes at the same level—from chapter to chapter or from
section to section (sometimes, as shown, the `Previous' pointer points
up); an `Up' pointer usually leads to a node at the level above (closer
to the `Top' node); and a `Menu' leads to nodes at a level below (closer
to `leaves'). (A cross reference can point to a node at any level;
see <a href="Cross-References.html#Cross-References">Cross References</a>.)
<p>Usually, an <code>@node</code> command and a chapter structuring command are
used in sequence, along with indexing commands. (You may follow the
<code>@node</code> line with a comment line that reminds you which pointer is
which.)
<p>Here is the beginning of the chapter in this manual called “Ending a
Texinfo File”. This shows an <code>@node</code> line followed by a comment
line, an <code>@chapter</code> line, and then by indexing lines.
<pre class="example"> @node Ending a File, Structuring, Beginning a File, Top
@comment node-name, next, previous, up
@chapter Ending a Texinfo File
@cindex Ending a Texinfo file
@cindex Texinfo file ending
@cindex File ending
</pre>
</body></html>
|