This addon recognizes if the text being pasted into the Anki editor contains equations or mathematical formulae derived from copying the contents of Wikipedia pages or other websites (e.g. stackexchange) supporting MathJax to render the formulas visually.
This addon transforms the content into a standard equation box with the corresponding LaTeX expression.
Project location: https://github.com/Upabjojr/anki_addon_paste_math_formulas
WARNING:
You need to install the Python library “lxml” into the addon folder manually.
TECHNICAL DETAILS:
Wikipedia equations already contain the original LaTeX in the HTML content. MathJax on the other hand contains the MathML expression corresponding to the formula, which is transformed using the Python library “lxml” and by downloading some XSL transformation rules to convert MathML into LaTeX.
The XSL files containing the transform rules are found here: https://github.com/oerpub/mathconverter/
Liên kết hỗ trợ
- Contact Author
- https://github.com/Upabjojr/anki_addon_paste_math_
- https://github.com/oerpub/mathconverter/
- Contact Author
Reviews (1)
👍 2022-03-06
Fantastic, simple and works! No more messy wikipedia post-processing 😊