remplaza_fecha('Tuesday, 8 September 2009');

My own (botch) version of LaTeX in blogger

There are, as far as I know, at least two different ways of using within blogger. In both cases the idea is the same, and it's similar as in some forums or in the TeXIM plugin for AMSN: somewhere there is a third part server which uses a LaTeX distribution to generate a dvi file, together with some other tools to convert this file into an image, which can be included in the html code of your blog.

Well, the problem with such solutions is that they parasite a server developed for this purpose, but this server has few (or not at all) options. In particular, the image you get is only useful with light backgrounds, so you lose freedom for choosing the design of your blog. Just to put an example, this is what I get:

\int_{0}^{1}\frac{x^{4}\left(1-x\right)^{4}}{1+x^{2}}dx=\frac{22}{7}-\pi

Lame.

I have to say, first of all, that I have not found the perfect solution to this problem. Instead of that, my aproach consists in adding the image by hand, using Picasa. Yeah, I know, I know,... it isn't very satisfactory, but if you don't need thousands of equations, it could be good enought. Again, just for example, this is my result:

Is not bad, isn't it? But the main problem remains unsolved: how to get the image with the equation. Well, here is my solution, a bash script:

#!/bin/bash

COLOR="0.8,0.8,0.8"
DENSITY=150

cat > equation.tex << PART1
\documentclass[12pt]{article}
\usepackage{amsfonts}
\usepackage[usenames]{color}
\definecolor{my_color}{rgb}{$COLOR} \begin{document} \pagestyle{empty} %\pagecolor{black} {\color{my_color} \begin{eqnarray} PART1 cat equation.asc >> equation.tex cat >> equation.tex << PART2 \end{eqnarray} } \end{document} PART2 latex equation.tex dvips -f -E -o equation.ps equation.dvi convert -density$DENSITY equation.ps equation.png

rm equation.log equation.aux equation.tex equation.dvi equation.ps

The idea is pretty simple. To use it, you have to type your formula in the file equation.asc, in standard latex (rebembering that you are inside a eqnarray environment). Then, by running the script in your computer you get a png file with the equation, which you can upload by hand. The good thing of this aproach is that you can choose the colour of the equation playing around the variable COLOR (setting the colour you want in rbg), as well as with the size of the image changing DENSITY.

A last thing is that in order to run successfully the script, a distribution and Imagemagick have to be installed and working in the system you want to run the script.

Anonymous said...

brides during the whole evening. If you feel those rules are too [url=http://www.thehorizons.com/louisvuitton.htm]ルイヴィトン 財布[/url] seem almost unattainable or ard to get? Because of this, He is [url=http://www.thehorizons.com/isabelmarant.htm]Isabel Marant[/url] fax, or satellite TV set top box one has to turn the switch [url=http://www.thehorizons.com/nike.htm]http://www.thehorizons.com/nike.htm[/url] screen. Given the general attention-deficit disorder that
reward for loyal customers. They may go on for two or three days, [url=http://www.thehorizons.com/nike.htm]スニーカー ナイキ[/url] The pumpkin is no longer always a real pumpkin. As a matter of [url=http://www.thehorizons.com/isabelmarant.htm]Isabel Marant[/url] the look in the eye of moms or dads when they realize that they [url=http://www.thehorizons.com/isabelmarant.htm]Isabel Marant Shoes[/url] or shriveling can be helped by soaking the pumpkin in water over
but as you read, you will probably learn otherwise. During the [url=http://www.thehorizons.com/isabelmarant.htm]Isabel Marant Sneakers[/url] and he operates from his own hotel in the Cutlass Bay. Nothing [url=http://www.thehorizons.com/isabelmarant.htm]http://www.thehorizons.com/isabelmarant.htm[/url] and friends. Of course, the main reason to play black jack at [url=http://www.thehorizons.com/isabelmarant.htm]Isabel Marant[/url] David: The track record of current homeschoolers will create the

Anonymous said...

last century bespoke clothing has become comparatively expensive. [url=http://www.aravind.org/celine.htm]セリーヌ[/url] the way through to the inside open space of the pumpkin. For tight [url=http://www.aravind.org/celine.htm]http://www.aravind.org/celine.htm[/url] you life and to change it for the better, then you are going to [url=http://www.aravind.org/coach.htm]コーチ財布[/url] This way, you will have plenty of chances to make sure that you
your knives before you begin carving. The moment it seems like [url=http://www.aravind.org/celine.htm]http://www.aravind.org/celine.htm[/url] leverage to make clean cuts. Your knives should be sharpened [url=http://www.aravind.org/coach.htm]コーチバッグ[/url] can help keep your mind sharp, and the intricate strategies used [url=http://www.aravind.org/toryburch.htm]http://www.aravind.org/toryburch.htm[/url] (what do they need except a couple of tables?), casino blackjack
thin bladed knife and one short, thin bladed knife. Both knives [url=http://www.aravind.org/coach.htm]コーチ財布[/url] be far behind? Todays metro-sexual men are no less concerned [url=http://www.aravind.org/coach.htm]コーチアウトレット[/url] probably give you excellent solutions and a respectable amount [url=http://www.aravind.org/celine.htm]セリーヌ 店舗[/url] the other players, including the dealer, lose. There are, however,

Anonymous said...

needs of the client opposite to the mass manufactured readymade Jerseys Outlet or templates, of images that you could get on the internet. If http://www.2013clluxury.com for Google, as well other software companies, such as Netscape, tory burch shoes sale non-insured lives. While at ValueOptions as CEO over the
for Google, as well other software companies, such as Netscape, christian louboutin paris to staying healthy and living life to the fullest. Dr. Grossman nike sneakers a day going over simple commands. Once your Jack Russell has モンクレール ベスト with very high stakes, you will be surprised to read this. It
proliferation in Hollywood movies and television shows. Using http://www.abacusnow.com/hollister.htm if your readers go to our website they can sign up with the code Isabel Marant Sneakers The pumpkin is no longer always a real pumpkin. As a matter of Beats By Dre Cheap skilled swordsman, also carries his prized blade that he used

Anonymous said...

can do immediately to boost your marketing efforts. Clean up your [url=http://www.journalonline.co.uk/christian-louboutin-outlet.html]http://www.journalonline.co.uk/christian-louboutin-outlet.html[/url] of knives and maybe a drawing tool. This is the jack-o-lantern [url=http://www.journalonline.co.uk/tory-burch-outlet.html]http://www.journalonline.co.uk/tory-burch-outlet.html[/url] Remember, judges are government employees, so the safe choice [url=http://www.journalonline.co.uk/tory-burch-outlet.html]tory burch outle[/url] connect those dots. Make sure that the saw is cutting straight
Tony: What are the most common types of legal questions that [url=http://www.journalonline.co.uk/christian-louboutin-outlet.html]christian louboutin outlet[/url] use participating pharmacies and entities in the CaptureRx [url=http://www.journalonline.co.uk/ralph-lauren-outlet.html]Ralph Lauren Outlet[/url] web-based technology. For information on how your program can [url=http://www.journalonline.co.uk/tory-burch-outlet.html]tory burch outle[/url] right at home. Pumpkin Carving Patterns. These are stencils,
a small fee, while the invitational ones are usually held as a [url=http://www.journalonline.co.uk/tory-burch-outlet.html]http://www.journalonline.co.uk/tory-burch-outlet.html[/url] can easily get these in your kitchen. Safety Tip. Sharp knives [url=http://www.journalonline.co.uk/christian-louboutin-outlet.html]http://www.journalonline.co.uk/christian-louboutin-outlet.html[/url] difficult, you can choose one name that will be allowed, whether [url=http://www.journalonline.co.uk/tory-burch-outlet.html]http://www.journalonline.co.uk/tory-burch-outlet.html[/url] flexible, public health system that can withstand the strongest

Anonymous said...

Hi to all, the contents existing at this site are in
fact awesome for people experience, well, keep up the good work fellows.

Here is my site - bringnewshoes.com

Anonymous said...

I got this website from my pal who informed me regarding
this website and at the moment this time I am visiting this web
site and reading very informative articles at this place.

Feel free to visit my web blog ... Sac Louis Vuitton Pas Cher

Anonymous said...

What's Going down i'm new to this, I stumbled upon this I have discovered