Archive

Posts Tagged ‘Google’

LaTeX equations on web? Is that all you want?

November 10th, 2009 2 comments

Yes dear readers! It is really cool to have latex equations on web. There is an undocumented future of Google Chart API. It is easy to use as much as API itself. For instance, you need to include the Schrödinger equation your web page. Let’s construct an url like this:

http://chart.apis.google.com/chart?cht=tx&chf=bg,s,FFFFFF00&chco=AACCFF&chl=i\hbar\frac{\partial}{\partial t} \Psi(\mathbf{r},\,t) = \hat H \Psi(\mathbf{r},t)

Put your code in the chl parameter. The chf parameter lets you specify a background color in RGBA, chco lets you set the foreground color in RGB. When you drop it in inside of an image tag you get this:

Put your code in the chl parameter. The chf parameter lets you specify a background color in RGBA, chco lets you set the foreground color in RGB. When you drop it in inside of an image tag you get this:

If you anticipate making 250,000 calls to the chart server a day, contact Google first at chart-api-notifications@google.com. There’s no limit to how much you can use it, but they reserve the right to turn you off.

VN:F [1.9.11_1134]
Rating: 7.0/10 (3 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)
Categories: Tips Tags: , , ,