[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(mgp-users 00254) Re: LaTeX in MagicPoint



> 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
-----------------------------------+-------------------------------------