Seems like the best solution is to just edit the default template and call it with the pandoc --template option.  As described at https://superuser.com/questions/356032/markdown-to-latex-conversion-with-a-custom-preamble-using-pandoc .

On Thursday, July 21, 2022 at 1:45:27 PM UTC-7 Richard Huntsinger wrote:
When converting from Jupyter to LaTex, the Latex output includes \usepackage{xcolor}.  How to have it include \usepackage[table]{xcolor}?  (The [table] option is required for use with Jupyter/R's knitr functionality.) 

--
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/5a1bff39-a03f-4940-9c3a-431da38181c9n%40googlegroups.com.