獨立:從輸出檔名中刪除數字

獨立:從輸出檔名中刪除數字

我正在使用以下文件將單頁 tikz 圖形轉換為 png:

\documentclass[tikz, convert={ghostscript}]{standalone}

\begin{document}%
\begin{tikz}
    \node {Test};
\end{tikz}%
\end{document}

這是在pdflatex --shell-escape --interaction=nonstopmode tempMikTeX 下編譯的。

然而,我注意到輸出檔案的命名temp-1.png不是temp.png我在獨立文件中閱讀表 1 時所期望的。從那裡我知道全名應該是\outname\outext

我的問題:temp.png有沒有辦法讓轉換後的 png 檔案在不加入的情況下命名-1

答案1

雖然文件在這方面有些稀疏,但我找到了multi控制它的選項。只需將其設為 false,輸出檔案將停止編號。

\documentclass[tikz, multi=false, convert={ghostscript}]{standalone}

\begin{document}%
\begin{tikz}
    \node {Test};
\end{tikz}%
\end{document}

相關內容