是否可以使用 latexmk 将 (aux log out toc bbl bib blg) 文件放在另一个目录中?
答案1
auxdir
是所有辅助文件的目录但不是 PDF文件。
latexmk -auxdir=/tmp test.tex
应该可以工作。你可以扩展它来自动编译latexmk -auxdir=/tmp -pdf -pvc test.tex
手册man latexmk
/texdoc latexmk
对该auxdir
参数进行更多解释:
-auxdir=FOO or -aux-directory=FOO Sets the directory for auxiliary output files of (pdf)latex (.aux, .log etc). This achieves its effect by the -aux-direc‐ tory option of (pdf)latex, which currently is only implemented on the MiKTeX version of (pdf)latex. See also the -outdir/-output-directory options, and the $aux_dir, $out_dir, and $search_path_separator configuration variables of latexmk. In particular, see the documentation of $out_dir for some complications on what directory names are suitable.
auxdir 参数是在版本 4.39。
答案2
我想这latexmk
也可以处理选项output-directory=...