# LaTeX SVGs Getting Cut Off

#### thomascheneyyzs

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 Posted by Damien Elmes on 27 Oct, 2019 02:35 AM

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: https://apps.ankiweb.net/docs/manual.html#mathjax-support

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

It's happening not in LaTeX, but in dvisvgm. I was able to replicate it with the options you have in latex.py, 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 Posted by Damien Elmes on 27 Oct, 2019 10:44 PM

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. Posted by thomascheneyyzs on 27 Oct, 2019 10:52 PM

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

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

### »

• latexpng.PNG 3.43 KB
• latexsvg.PNG 2.56 KB

#### Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

# Keyboard shortcuts

### Generic

? Show this help Blurs the current field

### Comment Form

r Focus the comment reply box Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

## Recent Discussions

 08 Dec, 2019 06:52 AM The same cards appear twice 08 Dec, 2019 05:12 AM Adding a card type to a Note 08 Dec, 2019 02:06 AM 卡片信息提示错误 08 Dec, 2019 01:07 AM Anki 2.1.16 Beta 07 Dec, 2019 09:56 PM How to download the install file of a addon

## Recent Articles

 When Anki doesn't start on Windows (debugging steps) Experiment scheduling changes in Anki 2.1 AnkiMobile interface language Anki must be able to connect to a local port Text to speech support