AnkiWeb
- Rating
- 19 (π 16 Β· π 3)
- Updated
- 2021-10-16
- Anki versions
- 2.1.48~
- Description language
- en
AnkiWeb addon 882784122
Displays compiled LaTeX and MathJax as images in Anki's editor, add card, and browser, showing original code only when a field is clicked for editing.
Open on AnkiWeb GitHub Ask about alternatives
abandoned
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.0 | 2.1.19 | 2020-01-08 |
| 2.1.20 | 2.1.21 | 2020-02-29 |
| 2.1.22 | 2.1.40 | 2020-05-18 |
| 2.1.41 | 2.1.47 | 2021-05-25 |
| 2.1.48 | + | 2021-10-16 |
Loadingβ¦
Enables multiple fields per line with adjustable columns and field sizing, and displays LaTeX compilation results in the editor and browser; notes it is outdated and suggests compatible frozen-field alternatives.
Replaces the editor's dropdown-menu generator to display shortcut tooltips for MathJax inline, block, chemistry, LaTeX, LaTeX equation, LaTeX math env., and Edit HTML.
Converts MathJax $β¦$ and $$β¦$$ delimiters to \(...\) and \[...\] in the Editor, selected Browser notes, and current Reviewer note while preserving formatting and undo.
Prompts for a command and converts any MathJax containing it to LaTeX, allowing LaTeX display when MathJax doesn't support the command.
Converts LaTeX $$...$$ and $...$ delimiters into Anki MathJax syntax via an editor button or bulk conversion of selected or all notes.
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.
Most of the time, I don't care about the LaTeX/MathJax code, appart when I want to edit it. I prefer to see the result. So this add-on does just that. Editor and browser show the result of the compilation. And you see the original code only when you click on the field you want to edit.

The note editor is actually an html page. Each time a field is edited, javascripts sends the new value to python, which eventually save the value in the database. For this reason, I need to ensure that images are replaced by original TeX as soon as the user click in the field. This leaves less freedom that what I would have wanted to do. Most of the features in TODO seems too risky to implement right now.
It changes the javascript methods:
Currently, as soon as field is selected, LaTeX code come back. It may be better to do this change when we click on image. I'll see when I use the add-on whether I find it worth to take the time to implement this feature.
This way, we can see the imagen of the first field tex.
| Key | Value |
|---|---|
| Copyright | Arthur Milchior arthur@milchior.fr |
| Based on | Anki code by Damien Elmes anki@ichi2.net |
| License | GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html |
| Source in | https://github.com/Arthur-Milchior/anki-tex-as-image |
| Addon number | 882784122 |