The following Linux command executes the program <program name> on all tex files in the current directory and subdirectories.
find . -name '*.tex' -exec `<program name>` -w $1 -- {} \;
How can arara be used to execute a program in a similar way?
For example, how would I run latexindent on all tex files without having to specify files as in:
% arara: indent: { overwrite : yes, files: [ chapter/foo.tex, header.tex ] }
?
latexindent. You could equally ask, for example, how do I tellararato compile all .tex files usingpdflatexin a directory? – cmhughes Sep 21 '17 at 21:38find? That is, why do you want to useararawhich is really designed to work with single files, as I understand it. – cfr Sep 21 '17 at 23:21arara main) instead of two... That's basically the same reason why I useararainstead ofpdflatex, thenbiber, then etc. – anderstood Sep 22 '17 at 00:31findwill handle them all. A shell script can handle thefind, if need be. You don't need this all the time, do you? I think ofararainvocations as best suited to the things I want to happen every time I compile a document. (Really, just the compilation command, it turns out, though I know some people are fussier and want the biblio and stuff every time, too. Or maybe they just have faster computers.) – cfr Sep 22 '17 at 00:37texfiles become indented. I usually compile with pdflatex, and in average every ten compilations, I usearara. I would like to indent my codes about as often as I callarara. Of course I could make a script callingfindand alsoarara. I was just wondering whether it could be combined witharara(I agree it's not a big deal). – anderstood Sep 22 '17 at 03:17arara. I don't when I'm compiling TeX SE examples or am getting errors. (ararajust runs the binary with relevant options - I've never got multipleararalines in a single document to work, but I don't compile the bibliography and stuff as often anyway.) – cfr Sep 22 '17 at 03:27cleanrule is implemented inclean.yaml.) I thinkararashouldn't be able to execute any arbitrary command for security reasons. (Imagine if the same method was used withcleanto find and delete all.texfiles.) – Nicola Talbot Sep 22 '17 at 10:46