[yandytex] Tex API
Norbert Preining
preining at logic.at
Mon Nov 3 15:52:37 CET 2008
On Mo, 03 Nov 2008, Devarajan, Suresh ,Crest wrote:
> Is that possible to compile the equation and get the output as EPS file
> through API programming. Please suggest me.
# crude perl code
my $tmpfile = `mktemp XXXXXXXX.tex`;
chomp($tmpfile);
open(TMPFILE,">$tmpfile") || die "Cannot open $tmpfile for writing!";
printf(TMPFILE, "the equation");
system("tex", $tmpfile);
(my $dvifile = $tmpfile) =~ s/tex$/dvi/;
system("dvips", $dvifile);
(my $psfile = $tmpfile) =~ s/tex$/ps/;
system("ps2eps", $psfile);
Maybe it helps if you explain your problem a bit more detailed.
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining <preining at logic.at> Vienna University of Technology
Debian Developer <preining at debian.org> Debian TeX Group
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
GLOADBY MARWOOD (n.)
Someone who stops Jon Cleese on the street and demands that he does a
funny walk.
--- Douglas Adams, The Meaning of Liff
More information about the yandytex
mailing list