indexing elements in the LaTeX namespace #17
Replies: 2 comments 4 replies
-
More generally, for the huge scope of "index" presented here (which includes pretty much any structured, itemised, keyed listing), rather than: {index references} ::= ??? there is a needs for something less specific, such as: {information} ::= ??? And then indeed its structure, and the type of data it contains, will vary hugely for different "types of indexed material". For example, in an "extremely simple page index", its content model will be simply: {information} ::= Whereas in a sophisticated dictionary, thesaurus, glossary, handbook, manual, etc., it will have a very sophisticated/complex structure model with a lot of substructures and specialised data-types. |
Beta Was this translation helpful? Give feedback.
-
Ross Moore (@ozross) suggested to use |
Beta Was this translation helpful? Give feedback.
-
General disclaimer: all of the tag names and often also the underlying structures are still subject to discussion and are not meant to be final.
Indexing
There are 7 tags in the LaTeX namespace related to theindex environment
Examples
In dictionaries you often find a further structure looking something like this:
~
criminal.Neither is shown in the examples above.
Tags in the name space
The tags are (for now):
<index>
enclosing the overall structure<index-head>
heading for the whole index<index-subdivsion>
encloses a larger group of index entries (typically with a heading in front)<index-subdivision-head>
heading for group of related index entries, e.g., "Symbols" or starting with "A" or ...<index-entry>
single index entry<index-term>
enclosing each index term<index-group>
group of closely releated index entries (found in dictionary settings, see example above)This is more or less a minimal set in the sense that some parts in the index are determined by their order without adding an additional tag, e.g., while
<LI>
in lists contains two parts both tagged (<Lbl>
and<LBody>
) we only tag<index-term>
but not the reference(s) that are following, because an<index-term>
is required and all that can follow up to either</index-entry>
or another<index-entry>
(denoting a sub entry) are such references.This could be made explicit at the cost of more tags in the pdf.
Formal syntax
Notes
{index title}
probably needs more structure{index references}
could just be{general text}
but one could also describe its structure more formally{index group}
s but typical dictionaries do, which is why{index entries}
offers the alternative.Role-mapping
tbd
Beta Was this translation helpful? Give feedback.
All reactions