Or add a metadata variable which the filter can check. You need to type both --pdf-engine=... and -M pdf-engine=... but maybe you can put that ugliness in a defaults file. Den mån 13 apr. 2020 23:52John MacFarlane skrev: > > > However, this does only work when I set `pdf-engine` to `xelatex` or > > `lualatex`. When I forget this, pandoc defaults to pdflatex which > doesn't > > support fontspec, and this breaks compilation as expected: > > > > Error producing PDF. > >> ! Undefined control sequence. > >> l.59 {\addfontfeature > >> > > No, not possible. Using a --defaults file that specifies both > the lua filter and the tex engine might help. > > -- > 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/m2v9m3gilw.fsf%40johnmacfarlane.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/CADAJKhBn28sJ3rrLC7BDys9NRgqVjHf_n7eT1FXvqXgJnYcXyQ%40mail.gmail.com.