Show LaTeX and MathJax result in editor/browser

AnkiWeb addon 882784122

Displays compiled LaTeX and MathJax results as images in the editor and browser, revealing the original code only when a field is clicked for editing.
AI-generated summary; may contain mistakes.

formatting

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
19 (πŸ‘ 16 Β· πŸ‘Ž 3)
Updated
2021-10-16
Anki versions
2.1.48~
License
GPL-3.0 (from the license file in the package)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
JavaScript, Python, Batchfile
Description language
en

Maintenance

abandoned

  • Last update or commit: 2021-10-16 (1842 days before the snapshot).
  • Commits in the last year: 0.
  • Issues: 8 open, 5 closed.
  • Pull requests: 1 open, 0 merged.
  • Median first response: 2 hours (11 answered issues and pull requests).

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

Adds keyboard shortcut tooltips to the editor's dropdown menu items, including MathJax, LaTeX, and Edit HTML options, by replacing the menu-generating method.

shortcuts

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 Updated 2019-01-05

Description

See the result of LaTeX's and MathJax compilation in editor and browser.

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