0

I have a bunch od auxiliary files in the directory of tex file after compiling each tex document. I simply want to generate a build folder in this directory to store all the auxiliary files. I run through a lot of posts.

For example in the following:

Global setting to prevent latex from generating additional files with TeXStudio

it is said that pdflatex -aux-directory=aux %.tex can solve this.

But the question is where exactly I need to type this command in TeXstudio? When I append this: enter image description here

I receive an error.

All I need is to clean this mess:

enter image description here

user73212
  • 111
  • I am using Latex for 15 years and NEVER use any of this auxiliary files. I always manually delete them after each compilation. I am tired of doing this always after each compilation... – user73212 Mar 25 '23 at 07:54
  • 1
    But why delete the auxiliary files after each compilation? It is enough to do this at the very end of the work. The deletion does not have to be done manually. Use the Tools / Clean Auxiliary Files menu for this. – hair-splitter Mar 25 '23 at 08:31
  • Use arara, it will clean extra files for you if you specify their extension i.e. log, toc – JamesT Mar 25 '23 at 13:55
  • @DavidCarlisle 99% of my Latex work is exams/test preparation for the students. Each exam is only at one side. This time I decided to prepare lecture notes using tcolorbox. – user73212 Mar 25 '23 at 16:27
  • @hair-splitter where exactly is Clean Auxiliary Files - I couldn.t find this in tools... – user73212 Mar 25 '23 at 16:27

0 Answers0