Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for \newcommand substitution #115

Open
fleimgruber opened this issue Apr 8, 2021 · 0 comments
Open

Support for \newcommand substitution #115

fleimgruber opened this issue Apr 8, 2021 · 0 comments

Comments

@fleimgruber
Copy link

fleimgruber commented 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 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?

@fleimgruber fleimgruber changed the title Support for \newcommand Support for \newcommand substitution Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants