Please note that this mode uses the mgp "-U" (unsecure) option for previewing; if you have an older version of mgp that does not have this command line switch, simply remove it from the MGP/Options menu in the entry MGP Command.
%filter "latex2eps eqn4"
\begin{displaymath}
\kappa \;=\; \frac{1}{d} \sum_{i=1}^n {p_i}^2 \;+\; \frac{d-1}{d\cdot n}
\end{displaymath}
%endfilter
%newimage -zoom 380 "eqn4.eps"
Please note that the %filter directive only works in connection
with the "-U" (unsecure) option of mgp.
For the actual presentation you should specify the "-S" (secure) option
to save the unnecessary background run of the filter scripts.
The script latex2eps has two nice features:
Eg. if you have prepared your talk for a resolution of 1024x768 and the beamer only supports 800x600, you can use the following command for saving the situation:
Please note that this rescaling is unecessary when you use the options "-xscrzoom" or "-yscrzoom".mgpresize -s 0.75 mytalk.mgp > mytalk-800x600.mgp
{ CTL_TFONT, ASCII, "schlbk.ttf", "NewCenturySchlbk-Roman" },
{ CTL_TFONT, ASCII, "schlbki.ttf", "NewCenturySchlbk-Italic" },
{ CTL_TFONT, ASCII, "schlbkbd.ttf", "NewCenturySchlbk-Bold" },
{ CTL_TFONT, ASCII, "schlbkbi.ttf", "NewCenturySchlbk-BoldItalic" },
{ CTL_TFONT, ASCII, "swiss.ttf", "Helvetica" },
{ CTL_TFONT, ASCII, "swissi.ttf", "Helvetica-Oblique" },
{ CTL_TFONT, ASCII, "swissbd.ttf", "Helvetica-Bold" },
{ CTL_TFONT, ASCII, "swissbi.ttf", "Helvetica-BoldOblique" },
mgp2ps -e latin1 infile.mgp | sed 's/([^)]*) calcy/(Q) calcy/'
mgp2ps -e latin1 infile.mgp | pspage -l -rtext "Presentation Page %p"
The trick is to use the "-c" and "-m" options of mgp2ps, which create color output and emulate the %pause directives with multiple pages. I have written a little script mgp2pdf that includes all necessary steps.
It seems that mgp has problems guessing the screen dimensions on MacOS X, so that it is a good idea to give them explicitly with the "-g" option. As the top Aqua menu occupies some space, the y-dimension needs to be reduced a little, on my iBook (1024x768 screen resolution) I use./configure --enable-locale --disable-xft
mgp -g 1024x720 ...
"christoph ( dot ) dalitz ( at ) hs-niederrhein ( dot ) de"