cf. How to use a formula in a post
A LaTeX-tag would be cool:
[latex]e^{i\pi}+1=0[/latex]
This would be displayed as:
Best regards
Thomas
How to use a formula in a post
|
|
« Next Oldest | Next Newest »
|
▼
Post: #3
11-08-2010, 04:22 PM
cf. How to use a formula in a post
A LaTeX-tag would be cool: [latex]e^{i\pi}+1=0[/latex] This would be displayed as:
Best regards ▼
Post: #4
11-08-2010, 05:24 PM
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...
▼
Post: #6
11-08-2010, 06:05 PM
Quote: You may install strawberryperl or activeperl. Use a file for the formula instead of the here-document:
perl -MURI::Escape -ne 'chomp; printf "[img:http://latex.codecogs.com/png.latex?%s]\n\n", uri_escape $_' formula.txt There might be other utilities to uri-escape.
HTH
I can't test that right now, but the following should work. Create a file "uri-escape.pl" with your favorite text-editor and enter the following lines:
use URI::Escape; Create a 2nd file "formula.txt". It may contain several formulas each on a separate line:
e^{i\pi}+1=0 Now run in a command prompt:
perl uri-escape.pl formula.txt
Post: #7
11-09-2010, 10:17 AM
If you are too lazy to upload images you can use aamath for "a-text": $ echo "e^(i*pi)+1=0" | aamath Edited: 9 Nov 2010, 10:20 a.m. |