
我正在編譯
\documentclass{article}
\begin{document}
\immediate\write18{pdfcrop PT1-matlab.pdf}
\end{document}
和
lualatex.exe -synctex=1 -interaction=nonstopmode --shell-escape %.tex
在 Windows 上,但它會默默地失敗,並且不會創建 PT1-matlab-crop.pdf。
pdfcrop PT1-matlab.pdf (./document.aux))
Here is how much of LuaTeX's memory you used:
它曾經與 TeX Live 2015 一起使用並運行
pdfcrop PT1-matlab.pdf
在 TeX Live 命令列中輸入會產生裁切後的 PDF。
答案1
在新的 luatex 中 \write18 不再特殊。若要恢復功能:載入套件shellesc
並閱讀其文件。