I am currently using arara
to give compilation rules for my .tex
files.
I have a lot of tikz/pgfplots
made files which share common settings hosted in a header
file, so that I can easily modify a setting, then recompile everything using a for loop e.g.
@FOR /R "rootdir" %%G in (.) DO (
@ Pushd %%G
@ for %%x in (*.tex) do arara "%%x"
@ Popd )
@pause
as I am on a windows machine.
However, this starts/stops arara
a big bunch of times and throws very ugly logging to the terminal.
So is there a rule or can one be written so that arara
is only started once and compiles all files in a specified directory tree.
listFilesByExtension
function in a custom rule.% arara: ListFilesByExtensions(toFile('/directorypath'),'tex', true);
?listFilesByExtension
and returns something likegetCommand('command', loopvariable)
. But I'm short of time right now, so let's hope Paulo will see your question (and canonically answer) :)