Debian Codegraph @

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

raw
1 %<*package>
2
3 % Automatic List
4
5 \int_new:N \l_@@_list_num_int
6 \int_new:N \g_@@_Automatic_List_beta_int
7 \int_set:Nn \g_@@_Automatic_List_beta_int {0}
8 \NewDocumentCommand \AutomaticListon {} {
9 \int_gset:Nn \g_@@_Automatic_List_beta_int {1}
10 }
11 \NewDocumentCommand \AutomaticListoff {} {
12 \int_gset:Nn \g_@@_Automatic_List_beta_int {0}
13 }
14
15 \cs_new_protected:Nn \_@@_trans_auto_list:N {
16 \int_set:Nn \l_@@_list_num_int {0}
17 \tl_replace_all:Nnn #1 {~+~} {
18 \int_incr:N \l_@@_list_num_int
19 \par \noindent \textbf {\int_use:N \l_@@_list_num_int.}~
20 }
21 \tl_replace_all:Nnn #1 {~-~-~} {
22 \par $\circ$ \
23 }
24 \tl_replace_all:Nnn #1 {~-~} {
25 \par \noindent \textbullet \,
26 }
27 }
28
29 %</package>