I've been writing in Markdown format lately to generate a standalone HTML (mathjax) and a beamer presentation for scientific documentations, via Pandoc.
Now I am trying to add new math definitions (using LateX's \newcommand
). Adding the new commands file works great for beamer, as I input all the \newcommand
lines the in the template, then parse it with Pandoc's --template=<file>
To do the same for HTML, I add the command directly in the file using the new math command, for instance $$\newcommand{\avg}[1]{\left \langle #1 \right \rangle}$$
and it works great with panodc standalone HTML conversion, even with my editor's HTML preview (Sublime Text 3 with OmniMarkupPreviewer)
Now what is the best solution to add more than 200 new commands ?
painfully define all new commands in my main Markdown file ?
configure a local mathjax configuration file (read the documentation but it's not working for me)
- other options ?