Trix & Graphix

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:



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:



cat > equation.tex << PART1



cat equation.asc >> equation.tex

cat >> equation.tex << PART2

latex equation.tex
dvips -f -E -o equation.dvi
convert -density $DENSITY equation.png

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

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=]ルイヴィトン 財布[/url] seem almost unattainable or ard to get? Because of this, He is [url=]Isabel Marant[/url] fax, or satellite TV set top box one has to turn the switch [url=][/url] screen. Given the general attention-deficit disorder that
reward for loyal customers. They may go on for two or three days, [url=]スニーカー ナイキ[/url] The pumpkin is no longer always a real pumpkin. As a matter of [url=]Isabel Marant[/url] the look in the eye of moms or dads when they realize that they [url=]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=]Isabel Marant Sneakers[/url] and he operates from his own hotel in the Cutlass Bay. Nothing [url=][/url] and friends. Of course, the main reason to play black jack at [url=]Isabel Marant[/url] David: The track record of current homeschoolers will create the

Anonymous said...

last century bespoke clothing has become comparatively expensive. [url=]セリーヌ[/url] the way through to the inside open space of the pumpkin. For tight [url=][/url] you life and to change it for the better, then you are going to [url=]コーチ財布[/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=][/url] leverage to make clean cuts. Your knives should be sharpened [url=]コーチバッグ[/url] can help keep your mind sharp, and the intricate strategies used [url=][/url] (what do they need except a couple of tables?), casino blackjack
thin bladed knife and one short, thin bladed knife. Both knives [url=]コーチ財布[/url] be far behind? Todays metro-sexual men are no less concerned [url=]コーチアウトレット[/url] probably give you excellent solutions and a respectable amount [url=]セリーヌ 店舗[/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 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 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=][/url] of knives and maybe a drawing tool. This is the jack-o-lantern [url=][/url] Remember, judges are government employees, so the safe choice [url=]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=]christian louboutin outlet[/url] use participating pharmacies and entities in the CaptureRx [url=]Ralph Lauren Outlet[/url] web-based technology. For information on how your program can [url=]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=][/url] can easily get these in your kitchen. Safety Tip. Sharp knives [url=][/url] difficult, you can choose one name that will be allowed, whether [url=][/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 -

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
It positively helpful and it has helped me out loads.
I'm hoping to give a contribution & assist different customers like its helped
me. Good job.

Here is my web-site buy mobile games

e3mar Dora said...

شركة تنظيف واجهات زجاج بالرياض
شركة تنظيف الاثاث بالرياض
شركة جلي بلاط بالرياض
شركة تنظيف شقق بالرياض
شركة نقل عفش بالرياض
شركة تنظيف موكيت بالرياض
شركة تنظيف مجالس بالرياض
شركة تنظيف مسابح بالرياض
شركة تنظيف منازل بالرياض
شركة تنظيف بيارات بالرياض
شركة شفط بيارات بالرياض
شركة مكافحة الفئران بالرياض
شركة مكافحة حشرات بالرياض
شركة رش مبيدات بالرياض
شركة عزل اسطح بالرياض
شركة تنظيف فلل بالرياض
شركة تنظيف كنب بالرياض
شركة رش الدفان بالرياض
شركة رش دفان بالرياض
شركة تسليك مجارى بالرياض
شركة تنظيف خزانات بالرياض
شركة تنظيف ستائر بالرياض