You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I played around with it to get a basic example working, but when I want to use it with existing LaTeX then I often have the case that the LaTeX contains commands that have been defined in the preamble or a .sty file with \newcommand{\alias}{\somemath}. This could be solved in the calling code such that latex2mathml only sees the substituted strings, but the substitution then has to happen manually, e.g. via a Python dict that represents a math_commands.sty with the command mappings and ad-hoc string (regexp?) substitution code.
Any idea how this might be supported within latex2mathml? Or do you consider this out-of-scope?
The text was updated successfully, but these errors were encountered:
fleimgruber
changed the title
Support for \newcommand
Support for \newcommand substitution
Apr 8, 2021
Kudos to you for this project, thanks!
I played around with it to get a basic example working, but when I want to use it with existing LaTeX then I often have the case that the LaTeX contains commands that have been defined in the preamble or a .sty file with
\newcommand{\alias}{\somemath}
. This could be solved in the calling code such that latex2mathml only sees the substituted strings, but the substitution then has to happen manually, e.g. via a Python dict that represents amath_commands.sty
with the command mappings and ad-hoc string (regexp?) substitution code.Any idea how this might be supported within latex2mathml? Or do you consider this out-of-scope?
The text was updated successfully, but these errors were encountered: