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
{{ message }}
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
First off, thanks for this great package! I'm not sure if this would qualify as a bug or a feature, but it would be great to get access to the $\lambda$ character using latexify.
I would like to use the $\lambda$ symbol in my formulas but currently that raises an error.
Reproduction
importlatexify@latexify.function(identifiers={"foo": "f", "lambda_": "lambda"}, use_math_symbols=True)deffoo(lambda_):
returnlambda_+1fooThisgivesmea`ValueError: 'lambda' is not an identifier name.`.
Expected behavior
I would expect to be allowed to use the lambda symbol in LaTeX.
If I comment out these two lines, e.g. it does not throw an error when lambda is used. Obviously those line are probably there for a reason, so I'm not sure what the consequences are when they are removed, but perhaps the restrictions on the value side of the identifiers could be a bit more lenient...?
First off, thanks for this great package! I'm not sure if this would qualify as a bug or a feature, but it would be great to get access to the$\lambda$ character using
latexify.Environment
Description
I would like to use the$\lambda$ symbol in my formulas but currently that raises an error.
Reproduction
Expected behavior
I would expect to be allowed to use the lambda symbol in LaTeX.
If I comment out these two lines, e.g. it does not throw an error when lambda is used. Obviously those line are probably there for a reason, so I'm not sure what the consequences are when they are removed, but perhaps the restrictions on the value side of the identifiers could be a bit more lenient...?
latexify_py/src/latexify/transformers/identifier_replacer.py
Lines 42 to 43 in 54dc869
Screenshot of the output when those lines are commented out.