I'm trying to configure org-export to replace LaTeX-def-macros while exporting to TeX or HTML.
Current situation: the header #+LATEX_HEADER: \def\R{\mathbb{R}}
defines a macro that replaces \R
to \mathbb{R}
while compiling the TeX output. (Essentially, this will add the \def\R{\mathbb{R}}
to the preamble of the TeX file---org-mode does not perform any macro-replacements)
Instead, is there some way to make org-export
execute the macro-replacement, i.e., the exported TeX/HTML file should not contain \R
(instead it should be replaced by \mathbb{R}
.)
Possible uses: LaTeX macros can be used and the exported output will be properly rendered when in HTML, markdown, etc.