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

problem with ensuremath construct #100

Open
fiolj opened this issue Aug 20, 2023 · 0 comments
Open

problem with ensuremath construct #100

fiolj opened this issue Aug 20, 2023 · 0 comments

Comments

@fiolj
Copy link

fiolj commented Aug 20, 2023

Hi, pylatexenc 2.10 is failing with the construct:

LatexNodes2Text().latex_to_text(unicode_to_latex(LatexNodes2Text().latex_to_text(r"$\pm$")))

giving empty strings.
The conversion:

`LatexNodes2Text().latex_to_text(r"$\pm$")`

gives the expected result:
'±'

and the conversion to latex:
unicode_to_latex('±')
seems to be ok also:
'\\ensuremath{\\pm}'

but the last conversion:
LatexNodes2Text().latex_to_text('\\ensuremath{\\pm}')
fails, producing the empty string

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

1 participant