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

Select function with LaTeX constructs #307

Open
BoundaryValueProblems opened this issue Sep 12, 2024 · 0 comments
Open

Select function with LaTeX constructs #307

BoundaryValueProblems opened this issue Sep 12, 2024 · 0 comments

Comments

@BoundaryValueProblems
Copy link

The Select function is quite useful for my application, and I have the following construct:

@bind fchoice Select(["Gaussian", "Sin^2(x)", "x^2(l-x)^2"])

This generates a selection box exactly as I specified above. Now, I want to display the last two items using LaTeX, i.e.,

using LaTeXStrings
@bind fchoice Select(["Gaussian", L"\sin^2(x)", L"x^2(l-x)^2"])

However, the above generates entries as "$\sin^2(x)$" and "$x^2(l-x)^2$", with those $ signs, not rendered properly. How can I display them as LaTeX processed symbols, i.e., $\sin^2(x)$ and $x^2(l-x)^2$? Thanks a lot!!

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