I am using TexWorks and I need to put all help files produced by Latex into a subfolder relative to the folder where I have my master .tex file. On these StackExchange pages there are answers to this question, but only for people using a command line for latexing their .tex files. But I am using TexWorks, and do nok know how I can add such commands there.

My question is, can I put some command code into the "Arguments" window for pdflatex ? The two pictures below shows the location of the "Arguments" window.

To get the processing tools window in Texworks (picture 1): Edit/Preferences.../Typesetting tab

enter image description here

To get the "Tool Configuration" window in Texworks: in the Processing tools window, press "pdflatex"

enter image description here

  • Yes you can (move it so that it is before the $fullname). Feb 17, 2012 at 12:51
  • You can use the same commands in Texworks as on the command line. On the lower screenshot, press the plus button and enter the -aux_directory=yourdir command. This command line option is only available for MiKTeX on Windows, apparently
    – matth
    Feb 17, 2012 at 12:52
  • @matth Thanks for the answer, but when adding "-aux_directory=\mydir" or "-aux_directory=mydir" above the $fullname line, I get the errormessages: miktex-pdftex.exe: Invalid command-line option miktex-pdftex.exe: Data: unknown option Feb 17, 2012 at 13:11
  • sorry, that was misspelled. I can't edit the comment anymore, but I added an answer below, including a screenshot.
    – matth
    Feb 17, 2012 at 13:27

1 Answer 1


In the below screenshot you can see how I configured Texworks to put aux files into the directory "test". The command to add is -aux-directory=.\test or any other directory. You have to create the directory manually, I think.

enter image description here

  • Your're welcome. Strangely, it seems as if \ works as well as / in the path.
    – matth
    Feb 17, 2012 at 13:38
  • 1
    Just a note that this only works with MikTeX and not TeXLive. Feb 17, 2012 at 21:59
  • @PeterGrill I use TeXLive, Is there any alternative option for above solution? Jan 31, 2013 at 13:24
  • @PHPst: Not that I know of. Feb 3, 2013 at 7:50

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.