board.create('text', [40, 42.5, 'Ligne de certitude'], {highlightStrokeColor: 'red', display: 'internal', rotate: 45,fontSize:8});
This work. But when I replace the text by LaTex mechanism (Mathjax) it fails. Why
board.create('text', [40, 42.5, 'Ligne de certitude'], {highlightStrokeColor: 'red', display: 'internal', rotate: 45,fontSize:8});
This work. But when I replace the text by LaTex mechanism (Mathjax) it fails. Why
In your example, you specified
display:'internal'
which forces JSXGraph to use SVG text elements for rendering the text. However, SVG text elements can not cope with MathJax. On the other hand, you can rotate them easily. If you want rotated MathJax text, you have to setdisplay:'html'
and force the rotation with CSS. Here is an example:CSS:
JavaScript / JSXGraph
The example can be seen in action at https://jsfiddle.net/0aq23omf/