我想用LaTeX3给node设置一些参数,但是出错了,mwe如下
\documentclass{article}
\usepackage{tikz,xparse,expl3}
\begin{document}
\ExplSyntaxOn
\NewDocumentCommand{\test}{m}
{
\group_begin:
\keys_set:nn{test}{#1}
\begin{tikzpicture}
\node[\tl_use:N \l_node_argument_tl]{test~text};
\end{tikzpicture}
\group_end:
}
\keys_define:nn{test}
{
node.tl_set:N = \l_node_argument_tl,
}
\test{node=draw}
\test{node={draw,circle}}
\ExplSyntaxOff
\end{document}
我的终端中显示以下信息
Package pgfkeys: I do not know the key '/tikz/draw,circle' and I am going to ignore it. Perhaps you misspelled it.
我理解 tikz 将“draw,circle”视为一个整体,但我不想这样,我该怎么做,谢谢!