xaml-math icon indicating copy to clipboard operation
xaml-math copied to clipboard

Feature Request:enclose{circle}

Open Ygoalll opened this issue 1 year ago • 5 comments

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?

Ygoalll avatar Apr 24 '23 02:04 Ygoalll

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

ForNeVeR avatar Apr 24 '23 20:04 ForNeVeR

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

ForNeVeR avatar Apr 24 '23 20:04 ForNeVeR

<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。

Ygoalll avatar Apr 27 '23 05:04 Ygoalll

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).

ForNeVeR avatar Apr 30 '23 13:04 ForNeVeR

fine

Ygoalll avatar May 11 '23 09:05 Ygoalll