Skip to content

Instantly share code, notes, and snippets.

@beezee
Created March 7, 2020 19:58
Show Gist options
  • Save beezee/197aaf32a41725e9bf5dedfa70e9205c to your computer and use it in GitHub Desktop.
Save beezee/197aaf32a41725e9bf5dedfa70e9205c to your computer and use it in GitHub Desktop.
latex setup

Editing with Atom - https://medium.com/@lucasrebscher/using-atom-as-a-latex-editor-93756de3d726

Anki Header settings

\documentclass[fleqn, 12pt,border=1mm,varwidth=8in]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{amssymb,amsmath}
\usepackage{tikz-cd}
\usepackage{multicol}
\usepackage{mathtools}
\begin{document}

Anki Footer settings

\end{document}

(Set under Anki Tools -> Manage Note Types -> Options (for Basic))

Custom addon so tixcd works:

newLaTeX = \
[
    ["pdflatex", "-interaction=nonstopmode", "tmp.tex"],
    ["sips", "-s", "format", "png", "tmp.pdf", "--out", "tmp.png"]
]
import anki.latex
anki.latex.pngCommands = newLaTeX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment