Show LaTeX and MathJax result in editor/browser

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.
AI-generated summary; may contain mistakes.

formatting

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
19 (πŸ‘ 16 Β· πŸ‘Ž 3)
Updated
2021-10-16
Anki versions
2.1.48~
Description language
en

Maintenance

abandoned

  • Last update or commit was 1811 days before the snapshot (2021-10-16).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.02.1.192020-01-08
2.1.202.1.212020-02-29
2.1.222.1.402020-05-18
2.1.412.1.472021-05-25
2.1.48+2021-10-16
History across monthly snapshots

Loading…

Similar addons

Fix Edit Menu's Shortcut-Tooltips

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.

formattingshortcuts

Rating 1 πŸ‘ 1 Β· πŸ‘Ž 0 Updated 2019-01-05
MathJax to LaTeX if it contains a command

Prompts for a command and converts any MathJax containing it to LaTeX, allowing LaTeX display when MathJax doesn't support the command.

formatting

Rating 0 πŸ‘ 0 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.26~ Updated 2020-05-21

README

Uses tex/mathjax as image in editor/addcard/browser

Rationale

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.

Example

Warning

Technical

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.

Internal

It changes the javascript methods:

  • onFocus
  • setFields

TODO

Replace by TeX code when clicking on image

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.

When opening editor, do not select first field.

This way, we can see the imagen of the first field tex.

Links, licence and credits

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