I think you need to use multiple options, as in: pandoc doc.md -t latex --pdf-engine=latexmk --pdf-engine-opt=-e --pdf-engine-opt='$max_repeat=1' -o doc.pdf (I don't use latexmk, but I guess I must have it installed because the above worked for me. It didn't seem to create an output file, but that's probably a different problem.) On Mon, 30 Oct 2023 at 07:32, oliver wrote: > Hi there > > I try to use latexmk with pandoc and I want to pass to latexmk the > option:-e $max_repeat=1 > > So I try the following: > > pandoc doc.md -t latex --pdf-engine=latexmk '--pdf-engine-opt=-e > $max_repeat=1' -o doc.pdf > > But I get from latexmk the error: “Latexmk: -e $max_repeat=1 unknown > option” > > How can I pass to latexmk this option which has an argument separated by > space? > > Thanks for pointers! > Oliver > > -- > You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/4B28A474-F723-477A-8ADB-510FA6D0DDC4%40halloleo.hailmail.net > . > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxih%3DXEY4qYAQn8_TWUf%2B9tDSQ5SZ7ng%3DNUcGWAn9n-a-Q%40mail.gmail.com.