Reputation: 518
Is the a straightforward way to embed latex mathematical equations (typesetting) in a SVG element, e.g. labels in D3.js or within a SVG text?
Upvotes: 2
Views: 1211
Reputation: 101860
You could use MathML by embedding HTML in a <foreignObject>
element. However that would only work in browsers. And only for browsers that support MathML.
Otherwise you would need to search out some other utilities such as those suggested here:
https://askubuntu.com/questions/33196/how-to-convert-latex-equations-to-svg
Upvotes: 2