How do I have to configure texstudio to use the -aux/output-directory pdflatex flag - in combination with bibtex?

by Zapnuk   Last Updated July 11, 2019 23:23 PM

I'd like to have a dedicated output folder out for all the aux/log files that I'm not gonna read anyways.

My environment/workflow is: texstudio + miktex/texlive + pdftex + bibtex.

I read that I ahve to use cli flags of pdflatex and bibtex like this:

pdflatex.exe -synctex=1 -interaction=nonstopmode -output-directory=out %.tex

bibtex.exe out/%.aux

However, with my folder structure:

chapters
  |___one
      |___one_one.tex
      |___one_two.tex
out
  |__chapters
  |   |__one
  |      |__one_one.aux
  |      |__one_two.aux
  |__main.aux
  |__main.bbl
  |__ ...
main.tex
ref.bib

The aux/log files are at the desired location, but bibtex raises the following error:

Process started: bibtex.exe out/"main".aux

This is BibTeX, Version 0.99d (MiKTeX 2.9.7050 64-bit)
The top-level auxiliary file: out/main.aux
I couldn't open auxiliary file chapters/one/one_one.aux
---line 2 of file out/main.aux
 : \@input{chapters/one/one_one.aux
 :                                 }
I'm skipping whatever remains of this command
The style file: plain.bst
I found no \citation commands---while reading file out/main.aux
Database file #1: bib.bib
(There were 2 error messages)

It seems that the aux files are not referenced correctly, so answers like in this thread don't work in my texstudio environment.

Is there a (somewhat easy to replicate) fix for my problem?



Related Questions


Updated September 14, 2016 09:09 AM

Updated September 06, 2016 09:09 AM

Updated September 04, 2018 13:23 PM

Updated August 11, 2017 08:23 AM