jlatexmath
jlatexmath copied to clipboard
TeXSymbolParser typeMappings init error?
env: jvm 1.8.0_45 jlatexmath 1.0.6
input formula string :a/leq b output image sometimes like this
or like this
.
after debug, i find the different, "leq" mapping to a symbol instance ,it's type sometimes 0 and sometimes 3.
in fact , "leq" symbol instance's type value should be 3, may be there is something wrong when init?
Strange...
The only place the type is changed is https://github.com/opencollab/jlatexmath/blob/master/jlatexmath/src/main/java/org/scilab/forge/jlatexmath/TeXParser.java#L717
(by the way, this code is stupid...)
I managed to have a test case:
a\leq b =>
a\leq b {\leq} =>
The patch should very easy, I'll push it in the next days.
@gameboy120 thx
👍,waiting for your patch, thank you very much
fixed here: https://github.com/opencollab/jlatexmath/tree/experimental