thanks.  works great now.  much less painful.

can I make a small suggestion?  Use \IfFileExists{~/.pandoc/templates/add2preamble.latex}{\input{~/.pandoc/templates/add2preamble.latex}}{} or something like it to optionally include 'add2preamble.latex' (and equivalent 'add2preamble.ext' in other default files).  This way, users can remain hedged against future changes to your default files if they just want to add some fragments.

PS:  curious---what else is supposed to go into ~/.pandoc, so that these should go into ~/.pandoc/templates ?


On Friday, May 17, 2019 at 3:55:13 PM UTC-7, John MacFarlane wrote:

ivo welch <ivo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> does pandoc understand ${HOME}/.pandoc/ for default.* files?  On macos,

Put them in a 'templates' subdirectory under
that directory.


--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/12e388cf-ccd2-4823-825e-a12cc4a57c58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.