Samet Kilictas’s Blog

Tag: Google

LaTeX equations on web? Is that all you want?

by Samet Kilictas on Nov.10, 2009, under Tips

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.0.6_327]
Rating: 0.0/10 (0 votes cast)
Leave a Comment :, , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...