2 edited body
source | link

I set org-latex-pdf-process to something like:

latexmk -outdir=/tmp/latexmk -f -pdf %f;%F; mv %f /tmp/latexmk; mv /tmp/latexmk/%b.pdf %o

This way I keep all the intermediate files in a "hidden" place to accelerate successive compilations but only the pdf is kept at the original place.

I set org-latex-pdf-process to something like:

latexmk -outdir=/tmp/latexmk -f -pdf %f; mv %f /tmp/latexmk; mv /tmp/latexmk/%b.pdf %o

This way I keep all the intermediate files in a "hidden" place to accelerate successive compilations but only the pdf is kept at the original place.

I set org-latex-pdf-process to something like:

latexmk -outdir=/tmp/latexmk -f -pdf %F; mv %f /tmp/latexmk; mv /tmp/latexmk/%b.pdf %o

This way I keep all the intermediate files in a "hidden" place to accelerate successive compilations but only the pdf is kept at the original place.

1
source | link

I set org-latex-pdf-process to something like:

latexmk -outdir=/tmp/latexmk -f -pdf %f; mv %f /tmp/latexmk; mv /tmp/latexmk/%b.pdf %o

This way I keep all the intermediate files in a "hidden" place to accelerate successive compilations but only the pdf is kept at the original place.