I have a folder with many LaTeX files that all use the same custom LaTeX class. Now I want to recompile all of these LaTeX files. They are aranged in separate folders with the same name for the main files as the folder, e.g., foo0001/foo0001.tex, foo0002/foo0002.tex. Is there a way, using a Windows bat script, to compile/build all these documents?
I have a folder with many LaTeX files that all use the same custom
Share
Well, you could just loop over them:
If the current path is relevant (does LaTeX pick up relative resources relative to the current directory instead of relative to the source file?) then you can first enter the directory, compile, and exit the directory again: