Hello All,
Since the forum upgrade, we have all noticed that the
tags are broken. No idea how long it'll take before it comes back up, so I shall provide an alternative to rendering
in the meanwhile.
Google Charts API can draw images using strings specified in the URL. Amongst its many functionalities, it can render
. The syntax is
http://chart.apis.google.com/chart?cht=tx&chl=YOUR_LATEX_CODE_HERE
To include it into a forum post, simply write the TeX code in a text editor (or simply type it out in the address bar), add in the url calling for the Google Charts API, and use an image tag. Note that URLs do not allow spaces and most special characters, but most browsers these days will automatically convert special characters to
URL escaped characters (e.g. " " --> "%20")
e.g.
LaTeX code:
\displaystyle \frac{2}{3} \prod_{i=1}^{4}i = 16
URL (what you type into the address bar):
http://chart.apis.google.com/chart?cht=tx&chl=\displaystyle \frac{2}{3} \prod_{i=1}^{4}i = 16
Browser corrects to URL-escaped characters (i.e. what you get after you press ENTER, copy+paste'd from the address bar):
http://chart.apis.google.com/chart?cht=tx&chl=\displaystyle%20\frac{2}{3}%20\prod_{i=1}^{4}i%20=%2016
Forum code (what you type into your post):
[img]http://chart.apis.google.com/chart?cht=tx&chl=\displaystyle%20\frac{2}{3}%20\prod_{i=1}^{4}i%20=%2016[/img]
result:
Known issues:Not transparent (white background).
Multi-line environments (tables, align, cases) don't work very well.
This is mostly because the LaTeX alignment character '&' is also special character in URLs, and so must be manually escaped in the LaTeX code. You can use a URI-encoder to convert your text to URL-escaped characters. Even so, the rendering is still not up to scratch.
@Davidb3ck + @enwiabe, please don't get lazy and use the Google API as the LaTeX renderer for AN.