问题描述
在 tikzpicture (pgf-pie) 中使用 \directlua
命令会导致图像不呈现:
\documentclass[margin=5mm,preview]{standalone}
\usepackage{pgf-pie}
\begin{document}
\begin{tikzpicture} % works
\pie[radius=2,rotate=100,sum=auto]
{
3/test,2/two,3/three,4/four
}
\end{tikzpicture}
\begin{tikzpicture} % does not work
\pie[radius=2,sum=auto]
{
\directlua{tex.sprint("3/test,4/four")}
}
\end{tikzpicture}
\end{document}
结果可以查看here
如何扩展 \directlua
?我需要更改什么才能使用 lua 中的变量创建 tikzpicture 饼图?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)