# 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

 26 Jan, 2020 09:53 AM Add setting to allow users to turn scratchpad transparency off 26 Jan, 2020 09:16 AM Paste while preserving formatting on Anki 2.1 26 Jan, 2020 09:13 AM Anki 2.1 won't play audio files with a blank in the title 26 Jan, 2020 08:58 AM Adding sound to cards doesn't always work 26 Jan, 2020 07:46 AM Chinese => 3 sided flash cards?

## Recent Articles

 Timezone handling changes The Anki 2.1 scheduler Anki 2.0 add-ons When Anki doesn't start on Windows (debugging steps) AnkiMobile interface language