General ⇒ Command to create and send to directories
Command to create and send to directories
I use PCTex, an integrated LaTeX typesetting system for Windows. When I process my file (latex myfile.tex), PCTex creates a number of files after processing myfile.tex file. These files are .ptp file(s), .aux file, .log file and .toc file. These files are all located in the directory where myfile.tex is located. My question is: is there a LaTex command to automatically create directories, for example named as PTP, AUX, LOG and TOC, and automatically send the ptp file(s), .aux file, .log file and .toc file to each of these directories?? I am trying to do these in order not to end up with so many files in the directory containing myfile.tex. Any help/hints will be much appreciated. Aga
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10340
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Command to create and send to directories
Hi,
welcome to the forum!
There's no LaTeX command for creating directories. You can choose the output directory though, with the -output-directory option for pdflatex.
Or use a Makefile, latexmk, or shellscript for creating directories and sorting the files, after compilation.
Stefan
welcome to the forum!
There's no LaTeX command for creating directories. You can choose the output directory though, with the -output-directory option for pdflatex.
Or use a Makefile, latexmk, or shellscript for creating directories and sorting the files, after compilation.
Stefan
LaTeX.org admin