jlatexmath icon indicating copy to clipboard operation
jlatexmath copied to clipboard

TeXSymbolParser typeMappings init error?

Open gameboy120 opened this issue 6 years ago • 3 comments

env: jvm 1.8.0_45 jlatexmath 1.0.6 input formula string :a/leq b output image sometimes like this test
or like this test3.

after debug, i find the different, "leq" mapping to a symbol instance ,it's type sometimes 0 and sometimes 3. jietu20180413-112639

in fact , "leq" symbol instance's type value should be 3, may be there is something wrong when init?

gameboy120 avatar Apr 13 '18 03:04 gameboy120

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 => image

a\leq b {\leq} => image

The patch should very easy, I'll push it in the next days.

@gameboy120 thx

calixteman avatar Apr 13 '18 08:04 calixteman

👍,waiting for your patch, thank you very much

gameboy120 avatar Apr 13 '18 09:04 gameboy120

fixed here: https://github.com/opencollab/jlatexmath/tree/experimental

murkle avatar Sep 27 '18 18:09 murkle