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
Escaping $ to interpolate variables in L"..." #27
Comments
It's certainly technically possible, but you'd need to find something that doesn't conflict with LaTeX.
|
Well, you can use |
Another option would be extending
vs
|
|
You can always just use an ordinary string and backslash-escape any backslashes and dollar signs… |
Of course, but I'd prefer to use LaTeXStrings, which are cleaner and more convenient than the backslash-escape alternative. This sort of behavior comes up all the time when creating plot labels/titles/annotations which include calculated coefficients. |
We could use |
I hit the symptom of this in Pluto when trying to interpolate in |
@Moelf I think this is an issue on Markdown's end. You can work around your issue by directly accessing the string field:
|
@stillyslalom I don't know what customize the behavior when interpolated in string, but IF it is customizable (and be different from what |
@Moelf To avoid the dependence of Markdown.jl (which is a stdlib package) upon LaTeXStrings.jl (which is not), it would need to be implemented here (or in a shim package), but that's entirely distinct from the issue at hand. It's probably best to open a new issue. |
I think I mis-read what this issue is about, oops, sry about the noise. |
Would it make sense (or would it be even possible) to allow "escaping"
$
, either with a double$$
or something else, to allow interpolation inL"..."
strings? It would be convenient instead of having to fall back to usinglatexstring
and needing to escape every$
and\
.The text was updated successfully, but these errors were encountered: