Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I use the Anki flashcard program and render math equations using LaTeX within the program.

The problem is that the font sizes are generally too big, unless the equation is really long, in which case the equation automatically sizes down in order to fit the screen.

This is the default LaTeX header in Anki:


And this is the default footer:


To call LaTeX within Anki when creating a flashcard, you use [latex] and [/latex], which I assume refer to the header and footer respectively. (I'm neither an Anki nor a LaTeX expert.)

Anyway, I've tried inserting the following right before \begin{document}:


Yes, I realize this is supposed to make the text really tiny, but more importantly, nothing changes. My equations are still too big (or too small, if the equation is really long).

Please help!

share|improve this question
welcome to For those of use (most of us I'd guess) without that program could you post the generated latex document including an equation so we can see what markup it is generating and then can suggest a preamble to control the fonts. – David Carlisle Apr 12 '13 at 21:32
Maybe a simple change to the header is enough. Something like \documentclass[10pt]{article} should change all font sizes. – Alexander Apr 12 '13 at 22:01
BTW: What is Anki? Never heard of it ... – Kurt Apr 12 '13 at 22:05
@Kurt, thanks for the welcome and the information. Anki is a spaced-repetition flashcard program: – MMS Apr 12 '13 at 22:44
@David, thanks for the welcome. Anki generates an image from the LaTeX input and attaches the image to the flashcard. Not being an Anki expert (nor a big tech expert in general), I don't know how to dig into its source code to see what "markup" it is generating. – MMS Apr 12 '13 at 22:46

1 Answer 1

Tools -> Manage Note Types... -> Options; in the last line of the Header field after \begin{document} just type


And your LaTeX will be made smaller. Because previously rendered latex is cached as image files, you may have to delete those files before the change is apparent. On my Mac the files are in ~/Anki/User 1/*.png

For me this makes my [$$][/$$] equations the same size as the surrounding Anki font.

I hope this helps!

UPDATE: On Linux, the media directory seems to be located in ~/Documents/Anki/User 1/

share|improve this answer
On Windows, it's %USERPROFILE%\Documents\Anki\User 1\\ – Sydius Apr 28 at 7:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.