1

I've seen numerous ways to move auxiliary files to a given directory via latexmk, or pdflatex (ex. latexmk -auxdir=/tmp <file>). But I am using vimtex with auto-compiling, so that whenever I save my tex file, it is automatically compiled and my pdf viewer (just using evince) is updated too.

What I'd like is for vimtex to create a subdir called aux in whichever directory my current texfile is, and put any of these auxiliary files in there at each compilation -- keeping just my .tex and .pdf file in the working dir. I feel like I should be able to specify this in .latexmkrc but haven't read any mention of specifying such settings there.

bumped to the homepage by Community 2 days ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

  • There is a vim tag. I've added it. – Henri Menke Aug 22 '17 at 23:39
  • 1
    Note that /aux would be a directory in the root of the file system and not the current directory. ./aux or aux is what you mean, I take it. – cfr Jul 29 '18 at 3:51
0

You can mostly achieve this using vimtex's build_dir setting (see vimtex help :h vimtex_compiler_latexmk and this conversation explaining that "this allows to define an output directory where all generated files are put when compiling".). However, your pdf will also be moved to this directory.

  • Yeah the pdf going to that directory is not ideal. The ideal would be to separate the auxiliary files from the desired, generated pdf file. – RACKGNOME Jul 30 '18 at 17:22

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.