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

Feasibility of using LaTeXML for macro expansion #189

Open
andrewhead opened this issue Jan 5, 2021 · 0 comments
Open

Feasibility of using LaTeXML for macro expansion #189

andrewhead opened this issue Jan 5, 2021 · 0 comments
Labels
scaling Related to scaling up the data processing pipeline symbols An issue or task related to symbols

Comments

@andrewhead
Copy link
Contributor

This issue is a stub for notes related to using LaTeXML to expand macros.

It's possible to listen for expansions of macros (those defined with \def) and commands (those defined with newcommand) in the gullet of LaTeXML. This much I have determined by setting breakpoints within the readXToken method of the gullet and inspecting the contents of the tokens read in, and the value of $r (i.e., the output of $def->invoke(...)) once those tokens are expanded.

However, this same approach doesn't seem to fully expand macros defined with the DeclareMathOperator command. Rather, it only partially expands them.

@andrewhead andrewhead added symbols An issue or task related to symbols scaling Related to scaling up the data processing pipeline labels Jan 5, 2021
@andrewhead andrewhead added this to the LaTeX Updates for Alpha milestone Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scaling Related to scaling up the data processing pipeline symbols An issue or task related to symbols
Projects
None yet
Development

No branches or pull requests

1 participant