如何解决在 tikzpicture (pgf-pie) 中使用 directlua 命令导致图像不渲染
在 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 举报,一经查实,本站将立刻删除。