2

I'm using latexmk in Visual Studio Code and I'd like to output the .pdf file to the current directory (same directory as the .tex file), while outputting all auxiliary files to a different directory.

I've tried messing with -outdir and -auxdir, but those options didn't seem to work.

First line of .log file: This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Arch Linux) (preloaded format=pdflatex 2020.1.31) 12 FEB 2020 16:44

Is this possible?

  • Which distribution of TeX are you using? Setting -auxdir and -outdir to different values only works for MiKTeX, as is stated in the latexmk documentation. If instead you are using TeXLive, the auxdir has to be the same as outdir, because that is all the underlying programs support. – John Collins Feb 11 at 16:33
  • I think I'm using TeXLive, but where can I see which distribution I'm using? – zjeffer Feb 12 at 11:24
  • 1
    Look at the the first line of the .log file generated by a run of pdflatex. – John Collins Feb 12 at 16:58
  • @JohnCollins I edited the post with that line, so as you can see I'm using TeXLive. Any ideas on how I can do this? – zjeffer Feb 16 at 19:56
  • Sorry for the delay in replying (I've been out of electronic contact for a couple of weeks). Unfortunately, as stated in my first comment, since you are using TeXLive, having aux_dir and out_dir is not supported. It would require some programming of latexmk itself to get around this limitation of the TeXLive implementation. – John Collins Mar 7 at 1:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.