I should preface this by saying I've had little to no exposure to LaTeX or Python until the past 24 hours where I've been trying madly trying to figure out what command, function, etc. means what! I've scoured countless threads as well which have helped but I'm afraid I'm stuck at this point. Apologies in advance if I'm misusing vocabulary!
I'm currently using Anki (2.1) to study for the MCAT and customized my cards to look a certain way. I wanted to edit the appearance of the LaTeX equations that I'm inputting (formulas I want to memorize) so that it looks neater on my cards. I managed to figure out how to make the background transparent (I installed the "Edit Latex build process" add-on) but I can't figure out how to change the font to something similar to a type-writer-ish font and how to change the font color to white (or at least some color I want).
In the header (preamble?) I've put:
\documentclass[12pt]{article}
\setmainfont{lmtt}
\fontfamily{lmtt}\selectfont
\special{papersize=3in,5in}
\usepackage[utf8]{inputenc}
\usepackage{amssymb,amsmath}
\pagestyle{empty}
\setlength{\parindent}{0in}
\usepackage{xcolor}
\textcolor{white}
\begin{document}
At this point I have no idea if I'm even inputting code in the right place or not…
Any help would be very much appreciated – thank you in advance! 🙂
Best Answer
Here is one possible template you can extend. I tried to keep it pretty minimal while supporting the specific features you requested. It’s possible to get a lot fancier. This should be straightforward to add cards to, though.
Because it uses modern, Unicode fonts, it will only compile with
lualatex
orxelatex
.Although I don’t demonstrate it here, as you wouldn’t be able to see it in the sample images,
\nopagecolor
sets the background transparent, and you can put\color{white}
sets the foreground color. Both commands are fromxcolor
.For Backward-Compatibility
Since you don’t have the
anonymouspro
package and seem to be restricted to PDFLaTeX, here is a version using legacy packages: