Debian Codegraph @

texmf-dist/doc/latex/simplesystemtex/sec/Text/GeneratingBlockIndexes.tex

raw
1
2 The primary advantage of encapsulating content components within blocks is the ability to use the \cs{MakeBlockIndex} command anywhere in the document body to rapidly generate an index of all blocks of the same type in a specific group. Furthermore, block indices are equipped with cross-reference anchors, allowing you to \blclink{Add Block Index Link-U}(add block index links) elsewhere in the document to help readers navigate directly to the index.
3
4 Thanks to the hierarchical tree structure of groups, an index generated for a specific group will automatically encompass the block entries from all its descendant subgroups. Cross-reference anchors for these subgroup indices are also generated simultaneously.
5
6 \UserCommand{Generate Block Index}<\cs{MakeBlockIndex}>{
7 \cs{MakeBlockIndex}
8 \{\meta{scope path}\}
9 [\meta{block type list}]
10 <\meta{custom parameter}>
11 }[
12 - \meta{scope path} : Specifies the group path for the blocks to be included in the index.
13 ][
14 - \meta{block type list} : Specifies the list of regular block types to be included in the index, separated by \texttt{,} . If this argument is empty, the index will include all block types by default.
15 - \meta{custom parameter} : Used in \seclink{Preamble/StyleConfiguration} to achieve various complex typesetting logic.
16 ]
17
18 The scope path serves as the unique identifier for cross-referencing a group index. So you \textcolor{red}{cannot generate two block indices with overlapping scopes}, even if they specify different block type lists. If generating overlapping block indices is strictly necessary, you can use the following command to create a temporary block index that does not generate anchors:
19
20 \UserCommand{Generate Temporary Block Index}<\cs{MakeBlockIndex*}>{
21 \cs{MakeBlockIndex*}
22 \{\meta{scope path}\}
23 [\meta{block type list}]
24 <\meta{custom parameter}>
25 }
26
27 \textcolor{red}{Please do not use block index generation commands within the arguments of blocks or other commands}.
28
29 \newpage