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

Invocation() of a macro created via \let references original macro #849

Closed
tkw1536 opened this Issue Jul 9, 2017 · 1 comment

Comments

Projects
None yet
3 participants
@tkw1536
Contributor

tkw1536 commented Jul 9, 2017

Assume we are defining a macro then copy it via a \let into a second macro with something like

\def\dummymacro{}
\let\othermacro\dummymacro

If we now want to now have tokens representing the invocation of this macro, we should then be able to use

Invocation('\othermacro');

which we would expect to return a single T_CS('\othermacro'). When running this code however, we get T_CS('\dummymacro') instead.

This comes from a more complicated scenario I encountered while updating keyval bindings, but I have gotten it down to this very basic example. This caused an infinite loop, making debugging very hard.

@brucemiller

This comment has been minimized.

Owner

brucemiller commented Jul 15, 2017

This should be fixed now; thanks for the report!

@dginev dginev added this to the LaTeXML-0.8.3 milestone Jan 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment