jrclogic / SMCDEL

A symbolic model checker for Dynamic Epistemic Logic.
https://w4eg.de/malvin/illc/smcdelweb
GNU General Public License v2.0
39 stars 9 forks source link

web interface: labels of worlds in "Show Kripke" are not typeset properly #16

Closed m4lvin closed 2 years ago

m4lvin commented 4 years ago

The web interface labels worlds with for example "$ p_{1} , p_{2} $". This should be "1, 2".

Note that "Show Kripke" runs textDot to get a representation in the GraphViz dot language and then Viz from viz.js:https://github.com/jrclogic/SMCDEL/blob/e79f30b38f52de05247a29a654fd14fa6c922743/exec/smcdel-web.hs#L68-L72

Also note that this problem is specific for the web interface. Running stack ghci src/SMCDEL/Examples/SimpleS5.hs and then for example disp $ knsToKripke exampleResult yields nice labels on the worlds.

Related: https://stackoverflow.com/questions/15962325/mathjax-inside-svg

m4lvin commented 2 years ago

Fixed in https://github.com/jrclogic/SMCDEL/commit/51510480a3f8ead41e33347374e8a174a110ad3d.