|
Somewhat of a follow-up from #23, I am wondering if there is a way to bypass the need for manually "wrapping" math macros with I have documents using definitions such as \newcommand{\bA}{\boldsymbol{A}}
\DeclareMathOperator{\Expec}{\mathbb{E}}which don't render well by default with lwarp. The \begin{warpMathJax}
\CustomizeMathJax{\newcommand{\bA}{\boldsymbol{A}}}
\CustomizeMathJax{\DeclareMathOperator{\Expec}{\mathbb{E}}}
\end{warpMathJax}meaning we end up with "duplication": \newcommand{\bA}{\boldsymbol{A}}
\DeclareMathOperator{\Expec}{\mathbb{E}}
\begin{warpMathJax}
\CustomizeMathJax{\newcommand{\bA}{\boldsymbol{A}}}
\CustomizeMathJax{\DeclareMathOperator{\Expec}{\mathbb{E}}}
\end{warpMathJax}I assume this means there is no easy way of automating this but I thought I would ask in case I missed it. Can this be bypasssed while still having nice mathjax output? I understand this can be really complex as \begin{addForWarpMathJax}
\newcommand{\bA}{\boldsymbol{A}}
\DeclareMathOperator{\Expec}{\mathbb{E}}
\end{addForWarpMathJax} |
Replies: 1 comment 1 reply
|
It may be possible to form something like your addForWarpMathJax, which would have to execute the contents for LaTeX and also process the contents line-by-line for MathJax. Some things are not directly supported in MathJax and must be emulated, meaning the code would look different than the LaTeX version. But I may add this to the todo list. |
It may be possible to form something like your addForWarpMathJax, which would have to execute the contents for LaTeX and also process the contents line-by-line for MathJax. Some things are not directly supported in MathJax and must be emulated, meaning the code would look different than the LaTeX version. But I may add this to the todo list.