tom-tan / auctex-latexmk

This library adds LatexMk support to AUCTeX.
93 stars 24 forks source link

latexmk with "nothing to do" overwrites `TeX-output-extension` to dvi #38

Open hexaeder opened 2 years ago

hexaeder commented 2 years ago

Hey! Thanks for providing this package, the only true way to compile latex documents :)

Recently I've discovered a weird problem. I am not entirely sure whether this has anything todo with auctex-latexmk.

I have a .latexmk file with luatex and pdf mode specification. If I compile the project everything works fine and TeX-output-extension is set to pdf. However if I invoke latexmk via TeX-command-run-all without any changes to the document, i.e. latexmk reports "there is nothing to do" the variable TeX-output-extension is set back to dvi and the next view command will fail. The tex-pdf-mode minormode is still active though.

Any idea whats happening there?