How to use a formula in a post

cf. How to use a formula in a post

A LaTeX-tag would be cool:


This would be displayed as:

Best regards



Wow, brings back memories. I used to know TeX by heart and a good amount of LaTeX as well. I was in college when it first came out. This one lady at the computer center was just gaga over it.

Another consideration may be MathML. I thought it was dead but it looks like they just updated it...


Perl is a unix routine. How do I run that on my wodoze machine?


How do I run that on my wodoze machine?

You may install strawberryperl or activeperl. Use a file for the formula instead of the here-document:

perl -MURI::Escape -ne 'chomp; printf "[img:]\n\n", uri_escape $_' formula.txt

There might be other utilities to uri-escape.



I can't test that right now, but the following should work. Create a file "" with your favorite text-editor and enter the following lines:

use URI::Escape;
while (<>) {
printf "[img:]\n\n", uri_escape $_;

Create a 2nd file "formula.txt". It may contain several formulas each on a separate line:


Now run in a command prompt:

perl formula.txt


If you are too lazy to upload images you can use aamath for "a-text":

$ echo "e^(i*pi)+1=0" | aamath

i ||
e + 1 = 0

$ echo "sum([n-1;r],r = 0 .. min(n-1,4))" | aamath

min(n - 1, 4)
\ / n - 1 \
> | |
/ \ r /
r = 0

Edited: 9 Nov 2010, 10:20 a.m.

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to manage formula in prime fabrice48 5 2,415 12-05-2013, 01:09 PM
Last Post: Steve Simpkin
  (deleted post) deleted 2 1,305 11-03-2013, 06:24 AM
Last Post: deleted
  trig scales on the Post Versalog slide rule Al 12 3,542 09-15-2013, 06:01 AM
Last Post: John I.
  (deleted post) deleted 19 4,349 08-31-2013, 03:46 AM
Last Post: pascal_meheut
  (deleted post) deleted 2 1,295 03-25-2013, 06:41 PM
Last Post: Eric Smith
  (deleted post) deleted 15 4,191 03-09-2013, 01:35 PM
Last Post: Mark Hardman
  New Blog Post: Length of a Polynomial Segment Eddie W. Shore 1 1,160 01-17-2013, 08:56 PM
Last Post: Namir
  (deleted post) deleted 5 1,870 01-07-2013, 09:39 AM
Last Post: Frank Boehm (Germany)
  Resuming an old post......................while crunching numberes aurelio 11 2,987 09-25-2012, 08:31 AM
Last Post: Frido Bohn
  (deleted post) deleted 7 2,184 09-18-2012, 11:11 AM
Last Post: René Franquinet

Forum Jump: