anki2.1 used latex, latex format using MathJax to render mathematical formulas, chemical formulas

MathJax talk about the advantages of: not anki library to generate images, help save space on your phone.


Besides shortcomings of it: to learn latex, latex takes some time to master grammar.




1. MathJax to download the github source package

2. anki card template Chiang Kai-shek back template

3. Add the following code at the front and back of the card template ( green part instead of your own)



<script type="text/javascript" src="file:///sdcard/MathJax-master/es5/tex-chtml-full.js?config=TeX-AMS-MML_HTMLorMML"></script> 

<script type="text/x-mathjax-config"> MathJax.Hub.Config({ TeX: { extensions: ["AMSmath.js","AMSsymbols.js","mhchem.js","boldsymbol.js","color.js","extpfeil.js","AMScd.js"]}}); </script>

Of course, this part of the JS code can be loaded from the network, the effect is the same, they do not clean the cache, which has been in part js.

Loaded from the network, steps 1 and 2 omitted, as follows

<script type="text/x-mathjax-config">
MathJax.Hub.processSectionDelay = 0;
MathJax.Hub.Config({
messageStyle:"none",
showProcessingMessages:false,
tex2jax:{
inlineMath: [['$','$']],
displayMath:[['$$','$$']],
processEscapes:true
}
});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_SVG-full"></script>


mathJax just rendering latex, so we should learn latex command

Here introduce a website can practice LaTeX   https://www.codecogs.com/latex/eqneditor.php       Somewhat slow to open.




effect

\[^{\frac{a}{b}}-\frac{\tfrac{d}{s}}{a}\]

image















reference 

https://zhuanlan.zhihu.com/p/53776780



Other anki Related:

Why anki, how do   https://ncase.me/remember/zh.html

Effective learning: twenty rulemaking knowledge   https://www.supermemo.com/en/archives1990-2015/articles/20rules

(2019.2) Anki2.1 temporary self-built server solutions and ideas   https://blog.csdn.net/sunnysab/article/details/86767036

anki-server open source https://github.com/tsudoko/anki-sync-server#anki-21

Linux (linux deploy) on a server --Android retrofit old phone red rice note phone root  https://blog.csdn.net/Greepex/article/details/85333027

Guess you like

Origin www.cnblogs.com/qq-757617012/p/12047255.html