python - 如何在 Google App Engine 上使用 MathJax 库

标签 python google-app-engine tex mathjax

我正在尝试为我的应用程序添加 Tex 支持,我想使用 MathJax渲染数学公式客户端,因为我放弃了 服务器端解决方案说明 here .
MathJax 库非常庞大(30.000 个文件),并且由于 files number limitation 而无法轻松安装在 App Engine 上.

我没有使用 MathJax 库的经验,所以我愿意接受其他策略,例如:

  • 可用的 MathJax CDN
  • 削减一些目录/文件以减少包的文件数。

您知道在 Google App Engine 上使用 Mathjax 的方法吗?

最佳答案

自 2011 年 3 月 MathJAX has its own CDN ,因此您现在无需将任何文件上传到 GAE 即可使用它。只要确保它在任何页面的标题中:

<script type="text/javascript" async
  src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?...">
</script>

关于python - 如何在 Google App Engine 上使用 MathJax 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4624154/

相关文章:

latex - LaTeX 中的数字重新编号?

documentation - TeX/LaTeX 的继任者即将到来吗?

php - 正则表达式: Get TeX commands

Python 指针或队列共享

python - Pandas 风格背景渐变行和列

python - 使用 pyenv/python 3.7 在 ubuntu 18.04 上 pip 安装 pygame

google-app-engine - 是否可以在 GAE 上使用 GWTP?

python - 如何在opencv python中将8点分成两部分

windows - 如何在 Windows 中卸载 Google Cloud SDK

google-app-engine - 在应用引擎上 curl