wxgeo / ptyx-mcq

0 stars 0 forks source link

Add to function to compare LaTeX expressions and test if there will be rendered identically #4

Closed wxgeo closed 7 months ago

wxgeo commented 1 year ago

The function would be used to avoid proposing the (visually) same answer twice.

The heuristic could be the following : every answer will be converted to a canonic form (which may not be valid LaTeX code), used for comparison. This function will of course give false negatives, but it will still be better than cuurent basic LaTeX code comparison.

The canonic form would be generated by applying the following rules :

Note that false positives or negatives are not very damaging as long as the error message is very explicit and provide tips to fix it.