I don't want the .aux, .log and .synctex.gz files when using pdflatex

后端 未结 10 870
庸人自扰
庸人自扰 2020-12-23 16:58

I just want to have a .tex file which I compile with pdflatex and end up with a .pdf file. I don\'t want all the other .aux

10条回答
  •  情深已故
    2020-12-23 17:15

    A well crafted wrapper script seems to be the best answer. Something along these lines, which I've tested on Ubuntu using texlive-latex (pdftex 1.40.10) :

    #!/bin/bash
    TMPDIR=$(mktemp -d)
    trap "rm -fr $TMPDIR; exit 255;" SIGINT SIGTERM SIGKILL
    
    /usr/bin/latex -interaction=batchmode -output-directory=$TMPDIR $1
    cp $TMPDIR/$1.dvi .
    rm -fr $TMPDIR
    

提交回复
热议问题