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

Feature Request:enclose{circle} #386

Open
Ygoalll opened this issue Apr 24, 2023 · 5 comments
Open

Feature Request:enclose{circle} #386

Ygoalll opened this issue Apr 24, 2023 · 5 comments

Comments

@Ygoalll
Copy link

Ygoalll commented Apr 24, 2023

I tried to use TeXFormula.createBufferedImage("\enclose{circle}{\mathrm{III}}", style, size, fg, bg) but it threw an exception "Unknown symbol or command or predefined TeXFormula: 'enclose'". If you have time, could you update the '\enclose{circle}' command? Alternatively, do you have any other way to generate the same output?

@ForNeVeR
Copy link
Owner

Oh, \enclose will be a tricky one. I'll mark this as a feature request for now.

@ForNeVeR
Copy link
Owner

Also, which package provides that? I wasn't able to make latexbase to render it:
image

@Ygoalll
Copy link
Author

Ygoalll commented Apr 27, 2023

<script> MathJax = { tex: { inlineMath: [['$', '$'], ['\\(', '\\)']], tags: 'ams', packages: {'[+]': ['enclose']} }, loader: {load: ['[tex]/enclose']}, }; </script>
image
Should be these. The front-end generated this, but I also need the corresponding ones for my back-end.Thanks。

@ForNeVeR
Copy link
Owner

ForNeVeR commented Apr 30, 2023

It looks like \enclose is exclusively provided by MathJax, and has nothing to do with the real LaTeX (see also this).

I am not against implementing a subset of MathJax in XAML-Math, but that won't be easy, I feel (that feeling is unrelated to the command being in the LaTeX or MathJax, but just a general commentary on this particular feature).

@Ygoalll
Copy link
Author

Ygoalll commented May 11, 2023

fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants