Replies: 1 comment 6 replies
-
关于展开两次我很好奇为什么展开两次会变成这个效果。我本来想用 \documentclass{ctexart}
\makeatletter
\@ifundefined{input@path}{\let\input@path\@empty}{}
\g@addto@macro\input@path{{./module}{./library}{./lt3ekeys}{./cus-doc}{./cus-doc-aux}}
\makeatother
\usepackage{cus}
\usepackage{unravel}
\begin{document}
\ExplSyntaxOn
\unravel{
\prg_replicate:nn {5}{\CusTeX}
}
\ExplSyntaxOff
\end{document} 展开过程有几十步,前几步是: |> \prg_replicate:nn {5}{\CusTeX }
[===== Step 1 =====] \prg_replicate:nn = \long macro:#1->\exp:w \exp...
||
|> \exp:w \exp_after:wN \__prg_replicate_first:N \int_value:w \int_eval:n
|> {5}\cs_end: {\CusTeX }
[===== Step 2 =====] \exp:w = \romannumeral
|| \exp:w
|> \exp_after:wN \__prg_replicate_first:N \int_value:w \int_eval:n {5}\cs_end:
|> {\CusTeX }
[===== Step 3 =====] \exp_after:wN \__prg_replicate_first:N
|| \exp:w
|| \exp_after:wN \__prg_replicate_first:N
|> \int_value:w \int_eval:n {5}\cs_end: {\CusTeX }
[===== Step 4 =====] \int_value:w = \number
|| \exp:w
|| \exp_after:wN \__prg_replicate_first:N
|| \int_value:w
|> \int_eval:n {5}\cs_end: {\CusTeX }
[===== Step 5 =====] \int_eval:n = \long macro:#1->\tex_the:D \__int...
|| \exp:w
|| \exp_after:wN \__prg_replicate_first:N
|| \int_value:w
|> \tex_the:D \__int_eval:w 5\__int_eval_end: \cs_end: {\CusTeX }
[===== Step 6 =====] \tex_the:D = \the
|| \exp:w
|| \exp_after:wN \__prg_replicate_first:N
|| \int_value:w
|| \tex_the:D
|> \__int_eval:w 5\__int_eval_end: \cs_end: {\CusTeX } 让我更迷惑了,这个“展开两次”的过程是怎么样的呢?能麻烦您解释一下吗 |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
主要想咨询一些关于编程接口的细节和疑问。
Beta Was this translation helpful? Give feedback.
All reactions