jkriege2 / JKQtPlotter

an extensive Qt5 & Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
http://jkriege2.github.io/JKQtPlotter/index.html
GNU Lesser General Public License v2.1
889 stars 190 forks source link

Unnecessary printing of tilde symbol in math #117

Closed igormironchik closed 9 months ago

igormironchik commented 9 months ago

Not sure what is the issue, but I guess it's a very low effort to you to fix. Look, a following LaTeX math renders tildes, whereas all known to me other renders don't do it.

3^{301}~{\approx}~4.10674{\times}~10^{143}\text{.}

It should render as

$$3^{301}~{\approx}~4.10674{\times}~10^{143}\text{.}$$

But you do...

1

jkriege2 commented 9 months ago

Thanks for reporting ... I simply forgot to interpret a tilde as a special character ... it was treated as text ... should be a quick fix!

jkriege2 commented 9 months ago

now renders as this: image

jkriege2 commented 9 months ago

fixed via https://github.com/jkriege2/JKQtPlotter/commit/c0bbe8f55719b01c23d29a94592f29a3722a0aba