在HTML文件中包含LaTeX公式? [英] Include LaTeX formulas in HTML files?

查看:993
本文介绍了在HTML文件中包含LaTeX公式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到一些网站在其网站中包含LaTeX公式。他们如何做到这一点?

是否有任何HTML标签或可能是一个SSI命令来包含LaTeX公式?

我更喜欢有一个服务器端命令,而不是客户端。有些客户端没有LaTeX编译器。



预先致谢 解决方案

MathJax 是一个可能的解决方案。
这是一个与LaTeX语法兼容的客户端解决方案(Javascript)。



我认为 MathTran 提供了LaTeX文件的在线外包服务,您可以稍后将其嵌入HTML代码中(很大程度上取决于Google Chart Tools的功能)。
$ b

根据你的服务器配置(即假设你可以安装你想要的),如果LaTeX文件不经常改变,你可以很容易地安排一个(比如说)LaTeX - > PNG渲染器如果你有服务器的限制(比如共享主机),那么你最后的手段(但最简单的),你可以将LaTeX呈现为离线图像并上传结果。


I saw some sites include LaTeX formulas in their sites. How they do that?
Is there any HTML tag or maybe a SSI command to include LaTeX formulas?
I prefer there be a server-side command, not a client-side. Some clients don't have LaTeX compiler.

Thanks in advance

解决方案

MathJax is a possible solution. It is a client-side solution (Javascript) which is compatible with LaTeX syntax.

I think MathTran provides an online outsourcing of your LaTeX files, which you can later embed in your HTML code (much in the way of the Google Chart Tools)

Depending on your server configuration (ie assuming you can install what you want), if the LaTeX files don't change often you could easily schedule a (say) LaTeX -> PNG render (lots of info the web on how to do it) and link the resulting PNG.

Last resort (but the simplest) if you have server limitations (say a shared host), you can just render the LaTeX to an image offline and upload the result.

这篇关于在HTML文件中包含LaTeX公式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆