LaTeX SVGs Getting Cut Off

thomascheneyyzs's Avatar


27 Oct, 2019 01:57 AM

The SVGs generated by Anki are getting cut off in some circumstance, especially when you have a cloze in the exponent. I've attached a couple of screenshots to demonstrate. As can be seen in the pictures the png that was generated was not cut off, but the svg was.

  1. Support Staff 1 Posted by Damien Elmes on 27 Oct, 2019 02:35 AM

    Damien Elmes's Avatar

    If the images are cut off when you view them in an image viewer, that would seem to indicate LaTeX is to blame. You may be better off using MathJax:

  2. 2 Posted by thomascheneyyzs on 27 Oct, 2019 08:18 AM

    thomascheneyyzs's Avatar

    It's happening not in LaTeX, but in dvisvgm. I was able to replicate it with the options you have in, but if you add the --exact option I believe it will fix the problem. I've attached a zip that has SVGs showing the difference.

  3. Support Staff 3 Posted by Damien Elmes on 27 Oct, 2019 10:44 PM

    Damien Elmes's Avatar

    Thank you, I will add that in a future update. You may still want to look into MathJax, as it allows you to edit cards on mobile devices and doesn't require syncing media files.

  4. 4 Posted by thomascheneyyzs on 27 Oct, 2019 10:52 PM

    thomascheneyyzs's Avatar

    Thanks, I've looked into MathJax at your suggestion, and I'll probably be using it going forward.

Comments are closed, but you can start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac