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

Latex output for macros ignores recipes #314

Closed
auriium2 opened this issue Oct 7, 2024 · 2 comments
Closed

Latex output for macros ignores recipes #314

auriium2 opened this issue Oct 7, 2024 · 2 comments

Comments

@auriium2
Copy link

auriium2 commented Oct 7, 2024

image
@gustaphe
Copy link
Collaborator

gustaphe commented Oct 8, 2024

This is because @latexify MyDifference(2,1) does not evaluate the function MyDifference(), but is equivalent to latexify(:(MyDifference(2,1))) or latexify(Expr(:call, :MyDifference, 2, 1))). This is a feature, we don't want @latexify a + b to evaluate a + b.

To get around this, use @latexify $(MyDifference(2,1)).

@auriium2
Copy link
Author

That makes sense, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants