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.