29 1

# Edit LaTeX build process

<10kB. Updated 2018-10-13.
The author has shared 9 other item(s).

## Description

This add-on allows you to edit the command-line arguments passed to LaTeX and dvipng when creating LaTeX cards. It is not necessary to use LaTeX with Anki in most cases; it is only needed if you are trying to change the commands Anki uses to generate LaTeX output. Directions The add-on initially changes nothing. To modify the options for your needs, you need to change the configuration. In Anki 2.0, edit the add-on and follow the directions in the add-on file. In Anki 2.1, choose Tools > Add-ons, select this add-on from the list, click the Configure button, and follow the directions at the top of the window. Support If you have problems, I can be reached in the add-ons forum or at the email address listed at the top of the add-on file. Changelog 2018/08/11: Updated for Anki 2.1. 2014/07/21: Updated for Anki 2.0.27, which uses a new system for running LaTeX commands. 2013/11/01: No changes to the code were made, just improvements to the directions. If this add-on is working correctly for you currently, there is no reason to update.

937148547

This add-on previously supported Anki 2.0. You can download the last version supporting 2.0 here. As Anki 2.0 has been discontinued, no support is available for this version.

## Reviews

on 1618049341
Great to solve path problems
on 1609591566
Very handy indeed

Used this to switch away from latex + dvipng to pdflatex + imagemagick. Now I am also able to use TikZ to draw staff in cards.

Hint: to convert .pdf to .png with this add-on one can use imagemagick:

convert -trim -density 300 tmp.pdf tmp.png
on 1591100031
Great!
on 1579105783
useful
on 1570762378
When I tried to use a LaTex formula it shows me this

Error al ejecutar latex.

What can I do about that? I just put $\in$
on 1565640729
works great. thank you!
on 1554749251
latex is usually best viewing
on 1550339636
who can change size of latex formulas?
on 1539725223
Enables me to use MacPorts Latex without having to launch Anki from the terminal.
on 1534363052
Funciona muito bem.
on 1517443200
Crucial for advanced Latex setups. Also consider the Anki 2.1 compatible version found here: https://github.com/trimitri/edit_latex_toolchain
on 1480809600
This is the add on you need if you want to use tikz.

For further instructions go to here:

http://pastebin.com/raw/mJj7gTQ7
on 1473465600
Fixed LaTeX on my NixOS

For some reason on my NixOS installation LaTeX didn't render. I replaced default commands with:

["pdflatex", "tmp.tex"],
["convert", "-density", "150", "-trim", "tmp.pdf", "tmp.png"]

Now LaTeX generates nicely in Anki Desktop.
on 1422057600
Alternative latex paths

I use the portable version of miktex so it didn't work with anki out of the box. This addon helped to redefine the paths for latex and dvipng. Thanks mate, great job!
on 1406419200
Very useful.

I used it to change to pdflatex and imagemagick's convert.
Now I can use TikZ diagrams in my cards.
on 1351209600
Useful for latex and dvipng installed via macports

This add-on is very useful because it lets you use your macports latex and dvi installations with Anki 2. When you configure the plugin, just substitute "/opt/local/bin/latex" for "latex" and "/opt/local/bin/dvipng" for "dvipng"