GeneralCommand to create and send to directories

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
aga010607
Posts: 2
Joined: Thu Jul 03, 2025 4:56 pm

Command to create and send to directories

Post by aga010607 »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post by Stefan Kottwitz »

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
LaTeX.org admin
aga010607
Posts: 2
Joined: Thu Jul 03, 2025 4:56 pm

Re: Command to create and send to directories

Post by aga010607 »

Thank you.
Post Reply