Contents | Previous | Next | navigate |
$navigate%type 1%label 1% ... %type n%label n%$$
$navigate
command
determines which navigation links are included,
the order of the links,
and label for each of the links.
type
, and meaning, for the navigation links are
specified below.
In addition, each
type
has a
default
label that is used
when the label is empty.
Content
.
Prev
.
Next
.
Index
.
Top
.
Up
.
Down_up_1
; i.e.,
down one and then up one.
The default label for this type is _up_1
.
Down_up_0
; i.e.,
down one and then up zero.
The default label for this type is _up_0
.
i
between 0
and 9
,
the type
Down_up_i
is the group of sections
directly below the section
i
levels
up from the current section.
The default label for this type is
_up_i
.
label
is _jump_table
,
a table at the top of the current section is used to link
to the headings and sub-headings for this section.
The default label for this type is _jump_table
.
A
B N R W
C F OPQ STUV XYZ
DE G J
HI KLM
The corresponding read order is A
, B
, ..., Z
.
For this example, if the current section is F
current section |
F |
previous section |
E |
next section |
G |
section above |
B |
section two levels up |
A |
sections up from this one |
A , B , F |
siblings |
C , F |
children |
G , J
|
label 1
is the label that the user will see
for the navigation links corresponding to
type 1
.
The value
label 2
is the label that the user will see
for the navigation links corresponding to
type 2
and so on.
The labels cannot begin with the special character _
with the following exception below:
type_i%%type_i+1 ...
uses the default value for the i
-th label.
_up_i
,
where
i
is a number between 0
and 9
,
is a special case.
In this case,
the cross reference tag
for the section
i
levels up from the current section
is used for the label.
In the case where
type
is
Down_up_i
and
label
is
_up_i
, the same cross reference link
table can be used by many sections.
This results in smaller file sizes and less changes when sections
are added or moved.
(Change result in differences when the output of OMhelp is checked into
a source code control system for viewing on the web.)
type
is Current
,
the label _jump_table
is a special case.
In this case,
a table at the top of the current section is used to link
to the headings and sub-headings for this section.
_up_i
will change from section to section.
Hence the position of subsequent labels in the navigation command will change.
Because the user will often repeatedly select Prev
or Next
,
it is desirable to have their positions the same for all sections.
This requires placing them before any labels that will change
size between sections.
Down_up_i
is the specified type,
and there is no section
i
levels up,
neither the label nor its links will be present on the current section.
If
_up_i
is specified label,
and there is not section
i
levels up,
neither the label nor its links will be present on the current section.
$navigate%
Prev%%
Next%%
Across%%
Up%%
Down_up_4%%
Down_up_3%%
Down_up_2%%
Down_up_1%%
Down_up_0%%
Current
%%$$
Note that, this is equivalent to
$navigate%
Prev%Prev%
Next%Next%
Across%Index%
Up%Up%
Down_up_4%_up_4%
Down_up_3%_up_3%
Down_up_2%_up_2%
Down_up_1%_up_1%
Down_up_0%_up_0%
Current%_jump_table
%$$
$navigate%
Content%Contents%
Prev%Previous%
Next%Next%
Across%Across%
Up%Location%
Down_up_2%Parents%
Down_up_1%Siblings%
Down_up_0%_up_0%
Current%Headings
%$$
$navigate
command appears in the
root section
section,
and does not appear in the current section,
the value specified in the root section is used for the current section; i.e.,
it replaces the default
command above.