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). – Ulrike Fischer Feb 17 '12 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 '12 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 – Espen Donali Feb 17 '12 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 '12 at 13:27

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 '12 at 13:38
  • 1
    Just a note that this only works with MikTeX and not TeXLive. – Peter Grill Feb 17 '12 at 21:59
  • @PeterGrill I use TeXLive, Is there any alternative option for above solution? – PHPst Jan 31 '13 at 13:24
  • @PHPst: Not that I know of. – Peter Grill Feb 3 '13 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.