LuaTeX 访问 write18 与 pdftex 有何不同?

LuaTeX 访问 write18 与 pdftex 有何不同?

我正在尝试使用 md5 校验和为 gnuplottex 制作加速选项。这对 pdftex 来说很管用,但对 LuaTeX 却不行。校验和的比较有效,但差异发生在

\immediate\write18{mv "\subfolder\testname.gnuplot" "\subfolder\figname.gnuplot"}

发生。使用 pdftex 时,文件被正确覆盖,使用 LuaTeX 时,我收到消息

mv: cannot move `gnuplottex\\Main-gnuplottex-test1.gnuplot' to `gnuplottex\\Main-gnuplottex-fig1.gnuplot': Permission denied

关于 write18,Luatex 和 pdflatex 的工作方式可能有所不同吗?另一方面,由于我在 Windows 上,原因也可能是我使用了

\def\subfolder{gnuplottex\@backslashchar}

在 LuaTex 中,它显示为

mv: cannot move `gnuplottex\\Main-gnuplottex-test1.gnuplot' to `gnuplottex\\Main-gnuplottex-fig1.gnuplot': Permission denied

如果这是问题所在,我该如何去掉双反斜杠?据我所知,我不会再添加一个。提前感谢您的帮助,请原谅我对问题的糟糕描述。

相关内容