In the manual of arara, there are only two options for latexmk: clean and engine.

However, as similarly done before in this answer and this one, I need to figure out to pass more options of the engine (e.g. lualatex) such as synctex, shell-escape, and interactionmode=nonstop (I am not sure if the last option makes sense with latexmk or not).

Furthermore, is it possible to pass the options of latexmk itself to arara such as -silent?

  • Sorry, I counted four options for latexmk. :) Commented Jan 4, 2020 at 11:34
  • @PauloCereda It is my bad :)
    – Diaa
    Commented Jan 4, 2020 at 11:41

1 Answer 1


There's actually another option named options which takes a list of raw command line options and appends it to the actual script call. So you could call latexmklike this:

% arara: latexmk: { options: [ '-silent' ] }

For each extra option, enclose it as a list element, such as

% arara: latexmk: { options: [ 'opt1', 'opt2', 'opt3' ] }

Hope it helps. :)

  • Thanks for the help. However, you show here how to add options of latexmk but what about the engine itself? For example, I need something like % !arara: latexmk: { engine : lualatex, engine options = {synctex = true, shell = true , interaction = nonstopmode} } .
    – Diaa
    Commented Jan 4, 2020 at 11:43
  • Do you mean it can be done by % arara: latexmk: { options: [ '-silent','-lualatex' , '-silent', '-synctex=1', '-interaction=nonstopmode' ] }?
    – Diaa
    Commented Jan 4, 2020 at 11:45
  • @Diaa If latexmk can pass this then use the same strategy with arara. Otherwise make a feature request for latexmk.
    – TeXnician
    Commented Jan 4, 2020 at 12:24
  • @Diaa Have you tried the -latexoption option to latexmk (from its documentation)?
    – TeXnician
    Commented Jan 4, 2020 at 12:29
  • @TeXnician I searched for latexoption in the latexmk manual PDF but I didn't find it.
    – Diaa
    Commented Jan 4, 2020 at 12:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .