Bỏ qua đến nội dung

Paste Wikipedia and MathJax math formulae into Anki editor

Chờ xử lý #anki #addon #paste #wikipedia #and #mathjax #math
https://github.com/Upabjojr/anki_addon_paste_math_formulas
8/6/2021

Cách tải addon Paste Wikipedia and MathJax math formulae into Anki editor

Bạn có thể tải addon bằng một trong hai cách sau:

Click nút Copy bên dưới để copy code vào clipboard

30765645

Sau đó mở Anki → Tools → Add-ons → Get Add-ons → Dán code → OK

Mở trang addon trên AnkiWeb và tìm mã code ở cuối trang

Mở trên AnkiWeb

Cuộn xuống cuối trang AnkiWeb, tìm dòng có mã code 30765645 và copy

1

Mô tả chi tiết

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ợ


Reviews (1)

👍 2022-03-06

Fantastic, simple and works! No more messy wikipedia post-processing 😊