Debian Codegraph @

texmf-dist/doc/latex/simplesystemtex/sources/toc.code.tex

raw
1 %<*package>
2
3 % [parameter] part's name
4 \cs_new_protected:Nn \_@@_process_toc_part:n {
5
6 % @part
7 \tl_set:Nn \l_@@_part_tl {#1}
8 {\g_@@_TOCPartTitle_style_tl}
9
10 }
11
12 % [parameter] path of entry section (verbatim)
13 \cs_new_protected:Nn \_@@_print_toc_section:n {
14 \group_begin:
15
16 % @section , @(...)group
17 \_@@_parse_path:nn {#1} {}
18 % @sectionpath
19 \tl_set:Nn \l_@@_sectionpath_tl {#1}
20 % @sectionpage
21 \tl_set:Nn \l_@@_sectionpage_tl {\pageref*{./#1}}
22 % @sectionname
23 \prop_get:NnN \g_@@_sectionname_prop {#1} \l_@@_sectionname_tl
24 % @sectionparameter
25 \prop_get:NnN \g_@@_sectionparameter_prop {#1} \l_@@_sectionparameter_tl
26
27 {\g_@@_TOCSection_style_tl}
28
29 \group_end:
30 }
31
32 \cs_new_protected:Nn \_@@_print_toc: {
33 \group_begin:
34
35 {\g_@@_TOCTitle_style_tl}
36
37 \_@@_execute_rule:Nn \g_@@_task_list_tl {
38 \Section \_@@_print_toc_section:n
39 \Part \_@@_process_toc_part:n
40 \TableCommand \use:n
41 }
42
43 \group_end:
44 }
45
46 %</package>