AnkiWeb
- Rating
- 2 (π 2 Β· π 0)
- Updated
- 2018-02-24
- Anki versions
- unknown
- Description language
- en
AnkiWeb addon 933614828
Customizes the commands Anki uses to generate PNG or SVG images from LaTeX code, requiring editing the plugin script to suit your needs.
Open on AnkiWeb GitHub Ask about alternatives
abandoned
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.0 | β | 2018-02-24 |
Loadingβ¦
Aligns LaTeX-rendered equation images to their true baseline using preview.sty depth, improving on default Anki rendering and SVG/vertical-centering CSS.
Renders LaTeX and TikZ, including usual math environments and binary trees, to PNG or SVG via lualatex, ImageMagick convert, or Inkscape.
Adds an SVG editor to the card editor for quick edits to basic SVGs, even multiple ones, preserving other content, supporting MathJax, and usable as a standalone browser app.
Compiles LaTeX while adding or editing notes, warns on errors, tags notes LaTeXError, and auto-generates images, though it has bugs on Anki 2.1.20 with cloze notes.
Repairs broken local media references after pasting images or GIFs by detecting real file types and rewriting notes to correct filenames, ignoring remote URLs.
Edit card fields during review or card preview by Ctrl/Cmd-clicking after configuring editable fields, enabling clozes, images, LaTeX, highlighting, and more.
This is an Anki 2.1 Plugin to customize the LaTeX build process. It is basically a copy of this existing plugin which wasn't compatible with Anki 2.1 at the time.
The Plugin is also uploaded to AnkiWeb.
This plugin is compatible with Anki 2.1. I didn't test it in 2.0 (Issue #2).
To use the plugin, first find your Anki 2.1 plugin folder. In Arch Linux, it resides here:
~/.local/share/Anki2/addons21/
If you just clone this repository into that folder and restart Anki, everything should work out of the box. Your directory structure would look as follows:
~/.local/share/Anki2/addons21/edit_latex_toolchain/<files you see here>
Please let me know if it doesn't work or if you have tried it under Windows or Mac and can give info.
You can also get the Plugin straigt from AnkiWeb to your client: https://ankiweb.net/shared/info/933614828
Adjust the commands in edit_latex_toolchain.py to your needs.
Anki 2.1 can be configured to either generate png or svg graphics.
Depending on what method you choose, find the appropriate code block.
Each line is executed one after another.
For debugging your custom LaTeX toolchain, consider having a look at the
generated code and results at /tmp/anki_temp/ (or somewhere else in Windows).
Anki 2.1 does support MathJax for math rendering. It works for me across AnkiDroid and Anki 2.1 on desktop.