相当于Google Chart API的LaTeX [英] LaTeX equivalent to Google Chart API

查看:137
本文介绍了相当于Google Chart API的LaTeX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在研究将二维数学公式添加到网页中的不同解决方案.我认为Wikipedia解决方案(从LaTeX源代码生成png图像)足够好,直到我们在Web浏览器中获得对MathML的支持为止.

I'm currently looking at different solutions getting 2 dimensional mathematical formulas into webpages. I think that the wikipedia solution (generating png images from LaTeX sourcecode) is good enough until we get support for MathML in webbrowsers.

我突然意识到,可以为它创建等效的 Google Charts API 数学公式.已经完成了吗?可能是由于LaTeX代码中包含的奇怪字符导致的吗?

I suddenly realized that it might be possible to create a Google Charts API equivalent for mathformulas. Has this already been done? Is it even possible due to the strange characters involved in LaTeX-code?

我想打一个类似latex2png.org/api/?eq="E = mc ^ 2的网址,并得到以下响应:

I would like to hit an url like latex2png.org/api/?eq="E = mc^2" and get the following response:

修改: 感谢您的回答沙发.但是,我已经知道有几种工具可以从乳胶源代码(在线和从命令行)生成png图像,但是我一直在寻找一种通过Http GET请求获取图像的简单方法.也许不存在这样的服务.

edit: Thanks for the answers sofar. However, I am already aware of several tools to generate png images from latex source code (both online and from my commandline), but what I was looking for was a simple way to get the image via an Http GET request. Perhaps such a service does not exist.

推荐答案

更新

正如@hughes(及其他人)指出的那样,先前的Google Chart API已被弃用.

Update

As @hughes (and others) pointed out, the previous Google Chart API has been deprecated.

我编写的示例截至2015年9月仍可使用,但现在将使用一个新示例(文档):

The example I wrote still works as of Sept 2015, but a new one shall be used now (documentation):

http://chart.googleapis.com/chart?cht= tx& chl =%5CLaTeX

Google图表可以做到(文档):

Google Chart can do it (Documentation):

http://chart.apis.google.com/图表?cht = tx& chl =%5CLaTeX

我正在将它与Google文档一起使用,因为它尚不支持数学.

I'm using this with Google Docs, because it doesn't support math yet.

这篇关于相当于Google Chart API的LaTeX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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