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

Square brakets apparently need to be escaped #48

Closed
alusiani opened this issue Apr 9, 2022 · 1 comment · Fixed by #53
Closed

Square brakets apparently need to be escaped #48

alusiani opened this issue Apr 9, 2022 · 1 comment · Fixed by #53
Assignees
Milestone

Comments

@alusiani
Copy link

alusiani commented Apr 9, 2022

Hi,

thanks for this very useful package!

I notice that apparently square brakets need to be escaped to prevent being ignored, together with whatever is enclosed.

plot(TeX(r"($a [b]$)"))

just shows "a", while

plot(TeX(r"($a \[b\]$)"))

shows "a[b]"

It would be nicer that square brakets be treated as in LaTeX without a dedicated escaping.

Greetings!

Alberto

@alusiani alusiani changed the title square brakets apparently need to be escaped Square brakets apparently need to be escaped Apr 9, 2022
@stefano-meschiari stefano-meschiari self-assigned this Apr 11, 2022
@alarsyo
Copy link

alarsyo commented Aug 12, 2022

Additionally, using square brackets seems to break subscript and superscript syntax:

plot(TeX(r"(a $\[b\]_{c}$)"))

shows "a[b]"

plot(TeX(r"(a $\[b\]^{c}$)"))

shows "a[b]" as well

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

Successfully merging a pull request may close this issue.

3 participants