![]() |
How to use a formula in a post - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: How to use a formula in a post (/thread-174447.html) |
How to use a formula in a post - Thomas Klemm - 11-08-2010 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 Re: How to use a formula in a post - Norman Dziedzic - 11-08-2010 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...
Re: How to use a formula in a post - bill platt - 11-08-2010 Perl is a unix routine. How do I run that on my wodoze machine?
Re: How to use a formula in a post - Thomas Klemm - 11-08-2010 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
Re: How to use a formula in a post - Egan Ford - 11-09-2010 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.
|