无法制作“/tmp/interview-question.xdv”

无法制作“/tmp/interview-question.xdv”

当我添加 latexmk Latexmk, John Collins, 29 September 2020. Version 4.70bauxdir 参数时,日志输出如下,并且无法触发打开编译后的 pdf:

(/usr/local/texlive/2021/texmf-dist/tex/latex/lm/t1lmtt.fd)
    Underfull \hbox (badness 10000) in paragraph at lines 581--582
    
    
    Underfull \hbox (badness 10000) in paragraph at lines 583--584
    
    [3] [4] (./output/interview-question.toc) [5] [6] [7] [8]
    (./output/interview-question.ptc) [1] [2] [3] [4]
    (./output/interview-question.ind) (./output/interview-question.aux) )
    (see the transcript file for additional information)
    Output written on ./output/interview-question.xdv (12 pages, 23248 bytes).
    Transcript written on ./output/interview-question.log.
    Latexmk: Examining 'output/interview-question.log'
    === TeX engine is 'XeTeX'
    Latexmk: Index file 'output/interview-question.idx' was written
    Latexmk: Log file says output to 'output/interview-question.xdv'
    Failure to make 'tmp/interview-question.xdv'
    Latexmk: Errors, so I did not complete making targets
    Latexmk: Failure to make the files correctly
        ==> You will need to change a source file before I do another run <==
    Collected error summary (may duplicate other messages):
      xelatex: failed to create output file
    
    === Watching for updated files. Use ctrl/C to stop ...

当我删除该auxdir参数时,它工作正常。为什么会发生这种情况?我应该怎么做才能让它工作?这是编译命令:

/Library/TeX/texbin/latexmk -auxdir=./tmp -pdfxe -pvc -xelatex -interaction=nonstopmode -output-directory="./output" "interview-question.tex"

latexmk 真的支持吗auxdir?这是 tex 版本:

➜  ~ tex -v
TeX 3.141592653 (TeX Live 2021)
kpathsea version 6.3.3
Copyright 2021 D.E. Knuth.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.

答案1

auxdir与 miktex 实现的 TeX 的命令行选项有关,但 texlive 不支持该选项。在 texlive 中只需使用output-directory(我个人建议永远不要使用这两个选项,因为它们会增加处理的复杂性,最多只能获得美观效果)

答案2

更新您的 TeX Live 2021,使其具有 latexmk 的当前版本 4.77。

此外,您还应--emulate-aux-dir在命令行中添加该选项(或$emulate_aux=1;在 latexmkrc 文件中设置)。否则,latexmk 将首先尝试使用-aux-directory*latex 程序的选项,然后发现它不适用于 TeX Live,并更改其行为。它还会在运行结束时给出有关此问题的消息。(我将省略 latexmk 的默认行为目前如此的原因。)

在 4.73 版本之前,latexmk 不支持 TeX Live 的 -auxdir 选项,而仅支持 MiKTeX 并使用其-aux-directory选项。

相关内容