# How can I put .aux files in separate folder using a command inside TexWorks?

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

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

-
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.
Just a note that this only works with MikTeX and not TeXLive. –  Peter Grill Feb 17 '12 at 21:59
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9207267761230469, "perplexity": 4334.092079231273}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-06/segments/1422120842874.46/warc/CC-MAIN-20150124173402-00106-ip-10-180-212-252.ec2.internal.warc.gz"}