Home > Tips > LaTeX equations on web? Is that all you want?

LaTeX equations on web? Is that all you want?

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.22_1171]
Rating: 7.8/10 (5 votes cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)
LaTeX equations on web? Is that all you want?, 7.8 out of 10 based on 5 ratings
Categories: Tips Tags: , , ,
  1. phoenix
    May 5th, 2010 at 09:42 | #1

    very good. Thank you !

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: +1 (from 1 vote)
  2. December 17th, 2010 at 00:50 | #2

    Nice info. Thank You

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  3. Michael Ash
    April 1st, 2012 at 15:16 | #3

    Thanks for a great post. Worth mentioning perhaps the the “+” (plus sign) does not behave as expected and it’s necessary to enter %2B in the (otherwise) Latex code to get a plus sign.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: +1 (from 1 vote)
  1. November 23rd, 2011 at 21:29 | #1