Yes, that's the winner! Thanks.

On Thursday, 21 January 2021 at 01:18:21 UTC-5 John MacFarlane wrote:

Oh, sorry. You need to use \renewcommand not \newcommand.

"jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> It seems not:
>
> ```
> pandoc reported the following error:
>
> Error producing PDF.
> ! LaTeX Error: Command \caption already defined.
> Or name \end... illegal, see p.192 of the manual.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type H <return> for immediate help.
> ...
>
> l.100 \newcommand{\caption}[1]{}
> ```
>
>
> On Wednesday, 20 January 2021 at 19:00:06 UTC-5 John MacFarlane wrote:
>
>>
>> Will it work to add
>>
>> \newcommand{\caption}[1]{}
>>
>> to your header-includes?
>>
>>
>
> --
> 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-discus...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/89a71570-9ee0-4f56-8c16-0ae1dd4a1cd4n%40googlegroups.com.

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/da33d7e2-0133-4e79-8fa7-ec4625fc4e04n%40googlegroups.com.