How do I prevent MathJax from showing raw TeX while waiting for rendering to complete?

a 夏天 提交于 2019-12-24 07:21:11

问题


I have some MathJax on my webpage and would like nothing to appear until the MathJax has finished processing my equations: no raw LaTeX and no loading progress indicator.

Is there a way to accomplish this with MathJax configuration settings?


回答1:


Hey if you still need an answer, try the following.

If you call MathJax.Hub.Config(), pass the parameter preview: "none" to the tex2jax object in the config. Like so:

MathJax.Hub.Config({

   tex2jax:
   {
      preview: "none"
   }

});

This will not show any raw tex commands that MathJax will pick up. It will allow to you still display other elements in your markup so your page doesn't look blank as the browser renders it.

Hope this helps.



来源:https://stackoverflow.com/questions/29722813/how-do-i-prevent-mathjax-from-showing-raw-tex-while-waiting-for-rendering-to-com

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!