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

missing braces after macro #44

Closed
tsgit opened this issue Sep 9, 2020 · 1 comment
Closed

missing braces after macro #44

tsgit opened this issue Sep 9, 2020 · 1 comment

Comments

@tsgit
Copy link

tsgit commented Sep 9, 2020

Hi,

the Polish ł is not properly protected with the option
replacement_latex_protection='braces-after-macro'

In [1]: from pylatexenc.latexencode import unicode_to_latex                                                                                   

In [2]: unicode_to_latex('Jabłoński', replacement_latex_protection='braces-after-macro')                                                      
Out[2]: "Jab\\lo\\'nski"

it should be "Jab\\l{}o\\'nski". This is with pylatexenc==2.7

Thanks for this very useful package
T.

@phfaist phfaist closed this as completed in 0674048 Sep 9, 2020
@phfaist
Copy link
Owner

phfaist commented Sep 9, 2020

Thanks for spotting this, it should be fixed now.

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