[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(mgp-users 00254) Re: LaTeX in MagicPoint
- To: mgp-users@mew.org
- Subject: (mgp-users 00254) Re: LaTeX in MagicPoint
- From: Luigi Rizzo <luigi@info.iet.unipi.it>
- Date: Fri, 3 Mar 2000 22:49:10 +0900
- In-reply-to: <> from Anders Logg at "Mar 3, 2000 10:21:48 pm"
- Posted: Fri, 3 Mar 2000 14:47:54 +0100 (CET)
- Reply-to: mgp-users@mew.org
> Hi!
>
> I wonder if any one has written some small script for using LaTeX in
> MagicPoint.
>
> I would like to write something like this:
>
> \beginlatex
> formulas...
> \endlatex
i have a script called foo.sh
#!/bin/sh
arg=$1
cat <<__EOF > $arg.tex
\documentstyle{article}
\pagestyle{empty}
\thispagestyle{empty}
\begin{document}
__EOF
cat >> $arg.tex
echo "\end{document}" >>$arg.tex
(latex $arg.tex > /dev/null)
dvips -f -E $arg.dvi > $arg.eps 2>/dev/null
invoked as
%filter "./foo.sh some_name"
$\sum_{i=0}^{i=100}x_i$
%endfilter
%image "some_name.eps" 0 40 20
within magicpoint.
cheers
luigi
-----------------------------------+-------------------------------------
Luigi RIZZO, luigi@iet.unipi.it . Dip. di Ing. dell'Informazione
http://www.iet.unipi.it/~luigi/ . Universita` di Pisa
TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy)
Mobile +39-347-0373137
-----------------------------------+-------------------------------------