0

I'm using MathJax and would like to convert the Tex equation to an svg image. Right now it converts it to SVG source code but that is not useful. How can I covert it to SVG image programmatically? (In a .Net/C# Environment)

Similar to here:

  1. https://www.bruot.org/tex2img/
  2. https://viereck.ch/latex-to-svg/

Thanks.

piris
  • 1,547
  • 3
  • 22
  • 26
  • what's the difference between an svg image and SVG source code? SVG is a text format so an SVG image is just SVG source code rendered by something. Is your question just "How do I render SVG in .Net?" – Robert Longson Aug 13 '22 at 18:28
  • Take a look at this website: https://viereck.ch/latex-to-svg/. Click on SVG source code on the bottom right. I would like to convert that to just an image file. – piris Aug 13 '22 at 19:37
  • It is an image file, no conversion necessary – Robert Longson Aug 13 '22 at 19:54
  • I would like to change this: – piris Aug 13 '22 at 20:27
  • Then that's the question you should ask. Just base64 encode the data you already have, although you don't really need to, it will generally work just as well if you only encode the # characters. – Robert Longson Aug 13 '22 at 20:36
  • I'm not sure I'm following... the svg tag has xml data, how is that correlated with the image. Don't know what i'm missing here. – piris Aug 13 '22 at 20:43
  • Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/247252/discussion-between-robert-longson-and-piris). – Robert Longson Aug 13 '22 at 21:08

0 Answers0