將 TiKz 圖片保存在父目錄的資料夾中

將 TiKz 圖片保存在父目錄的資料夾中

有沒有一種簡單的方法可以將帶有「tikz 外部庫」的圖片保存在父根目錄中的不同資料夾中。

%File C:/project/tikz/main.tex
\documentclass{article}
   \usetikzlibrary{external}
   \tikzexternalize[prefix = ../figs/]% Should refer to C:/project/figs

\begin{document}
    \begin{center}
      \tikzsetnextfilename{picture1}
      \begin{tikzpicture}
        \draw (0,0) rectangle (4,4);
      \end{tikzpicture}  
    \end{center}
\end{document}

tikzexternalize[prefix = ./figs]當我在程式碼中使用該選項時,tikz在當前資料夾中建立了一個新資料夾,但沒有按照我的預期進行導航。

相關內容