【Latex】Latex进阶

1. Mathjax相关

话说Mathjax在Wordpress的插件不支持 $...$
于是只能用 \(...\)
但这样会大大降低写作的效率

于是有两个解决方案:
1. 修改Mathjax的插件,将 $...$ 强行改成 \(...\)
2. 在wordpress的 header.php 里加上

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>

参考资料:
1. http://hzwer.com/5913.html
2. https://mathjax-chinese-doc.readthedocs.io/en/latest/start.html

2. MathType相关

如果你使用Mathtype来编辑数学公式
那么每一次导出成latex时,开头和结尾都是\[之类的,每次都要改很麻烦
于是我们直接找到这个文件:MathJax-LaTeX (base vars).tdl
然后把里面的var/"BeginMathDisplay" = "\[";之类的改成自己想要的就好啦!
比如改成:var/"BeginMathDisplay" = " $";

Leave a Reply

Your email address will not be published. Required fields are marked *