Anki add-on: Lualatex Tikz Svg Latex Renderer

A modern replacement to 937148547 . Pull-requests welcome , for now this is just an MVP for any-one else that wants it. The notes should work in the usual math environments. Here is a full binary tree: [latex] \begin{tikzpicture}[scale=1,transform shape,very thick, level/.style={sibling distance=60mm/#1}] \tikzstyle{vertex}=[draw,fill=black!15,circle,minimum size=20pt,inner sep=0pt] \node[vertex] {$1$} child { node[vertex] {$2$} } % leaf: 0 children child { node[vertex] {$3$} child { node[vertex] {$4$} } child { node[vertex] {$5$} } }; \end{tikzpicture} [/latex] Naturally, the config file looks like: { "pngCommands": [ [ "lualatex", "-interaction=nonstopmode", "--shell-escape", "tmp.tex" ], [ "convert", "-density", "300", "-trim", "tmp.pdf", "tmp.png" ] ], "svgCommands": [ [ "lualatex", "-interaction=nonstopmode", "--shell-escape", "tmp.tex" ], [ "inkscape", "--pdf-poppler", "--export-text-to-path", "--export-plain-svg", "--export-area-drawing", "--export-filename=tmp.svg", "tmp.pdf" ] ] }