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

eqref doesn't work when we have an in-line equation #3

Closed
isboonto opened this issue Nov 15, 2021 · 1 comment
Closed

eqref doesn't work when we have an in-line equation #3

isboonto opened this issue Nov 15, 2021 · 1 comment

Comments

@isboonto
Copy link

for example
md"""
$(eqref("eq1")) is with $x+2$
"""

@disberd
Copy link
Owner

disberd commented Nov 15, 2021

Hi, This is more of a known problem of conflicts with LaTeX $ and julia interpolation $ when both of them appear in a markdown macro (see JuliaLang/julia#36946 for example and the other issues referenced within):
Using the alternative inline latex synthax with double backtick instead of $ solves the issue (though at the moment the equation number is put in a newline of its own, but that should be fixable)
image

Edit: It seems that if the $(eqref(...)) call is not the first element in a paragraph, the equation number is correctly put in the same line as the text:
image

@disberd disberd closed this as completed Mar 17, 2022
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