# JOST A MON

Mar 26, 2008

## Code Cogs

So! It appears that there is one (still clumsy) way to display math text in Blogger. The folks at CodeCogs have to be thanked for this.

$\int_{-\infty }^{\infty }e^{-x^{2}}\;dx=\sqrt{\pi }$

It's still rather painful in that if I switch to the WYSIWIG editor, I get an INVALID EQUATION warning, and when I come back to the HTML editor, I find that the source line invoking Code Cogs' parser and image creator is garbled. Sheesh.

But it doesn't look half-bad, eh? A bit pixellated, but clear enough.

$\be P_R = \frac{\partial L}{\partial\dot R} = - \frac{6R \dot R}{\kappa^2 N}, \qquad P_{\phi} = \frac{R^3 \dot \phi}{N}. \ee$

Or even:

$\be S_{(n=2)} &=& S_g + S_m = \int \left( -\frac{3}{\kappa^2}{I\!\!N}^{-1} {I\!\!R} D_{\bar\theta} {I\!\!R} D_{\theta}{I\!\!R} + \frac{3 \sqrt k}{\kappa^2} {I\!\!R}^2 \right) d\theta d\bar\theta dt \ee$

Royal pain, though, to have to put the Latex code into one long line without breaks.

And an even bigger problem is, of course, that each time this page is rendered, a query goes out to the CodeCogs server, causing it to shudder. This is not a nice thing to do, so I'll retire this page tonight. (Ah, but see Update below.)

So! The search for built-in math typesetting in Blogger continues...

UPDATE 26/03/2008: Got permission from the folks at CodeCogs to add the aforementioned links. Currently they can soak up the load, but if the usage increases dramatically, they expect to ask for donations. Hence, this page goes back up.

Also, it appears that the problem of garbling the TeX code when switching from HTML to WYSIWIG is a bug in the Internet Explorer: it doesn't like the TeX code embedded within HTML if there are spaces in the TeX, and truncates at the first space. Firefox doesn't have this problem. CodeCogs has a tool that generates TeX, and will post a fix such that the TeX it generates will not have spaces. That's not a full fix for the problem of course - Internet Explorer needs to sort out its HTML parsing, I guess. Meanwhile, use Firefox and remember to brush your teeth after every meal!