If I do pdflatex *.tex in a directory, only one tex file is compiled. Which syntax should I use that all *.tex files in the directory are compiled?
Asked
Active
Viewed 1,303 times
3
student
- 17,875
- 31
- 103
- 169
-
3Btw, [`tex.stackexchange.com` has a valuable thread on "*tools for automating document compilation*"](http://tex.stackexchange.com/questions/64/tools-for-automating-document-compilation) – sr_ May 01 '12 at 09:00
3 Answers
6
pdflatex apparently only takes one argument. I can think of using find -exec
find -name '*.tex' -maxdepth 1 -exec pdflatex {} \;
But there may be better alternatives.
Bernhard
- 11,992
- 4
- 59
- 69