General ⇒ Automation of pdf builds
Automation of pdf builds
I'm using XP with WinEdit and pdflatex to build some pdf files.
Suppose I have 100 files in the same folder: A1.tex,...,A100.tex.
How to automate the process of generating the 100 pdf files? (instead or typing pdflatex Ai for each i?). I'm really new to the latex business. A simple example for a solution would be very appreciated.
Thanks!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Automation of pdf builds
I.e., open up Notepad, Type in something like:
Code: Select all
for %%I in (*.tex) do "C:\Program Files\MiKTeX\miktex\bin\pdflatex.exe" "%%I"
You'll need to check that where I guessed your LaTeX executables are is right (--it probably isn't; I don't use Windows, so I don't know--). If you need refinements, you should probably read an online guide on DOS batch files. See, e.g., here.
Or you could just type that command on the command line prompt. (Change the double %% to a single % then, if I remember right.)
Re: Automation of pdf builds
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Automation of pdf builds
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10