[OS X TeX] Sysquake for LaTeX (and TeXShop)

Ramón Figueroa-Centeno ramonf at hawaii.edu
Fri Apr 3 00:19:29 EDT 2009


Here is a another plotting example, use the second version of the engine I posted before. Here it is again:

pdflatex --shell-escape "$1" 
pdflatex --shell-escape "$1" 
name=$(basename "$1" .tex) 
rm "$name".lme 
rm "$name".lmeout 
rm lmefrag* 

(Save it as a text file as ~/Library/TeXShop/Engines/Sysquake.engine)

Typeset this, then open the resulting PDF in your drawing program (works with Inkscape).
Play with plotoption to, for example,  get rid of axes, legends and margins.

% !TEX TS-program = Sysquake


latexingraphics,% comment if not wanted
%noseparatelogfile% uncomment if wanted

active,% comment to deactivate preview


\begin{sysquake}(300, 300)
% look at http://www.calerga.com/doc/LME_grb.htm#plotoption
plotoption nomargin; 
%plotoption noframe;
plotoption fill3d;
plotoption xygrid;
use colormaps; 
[x,y] = meshgrid(-3:.125:3);
z = 3*(1-x).^2.*exp(-x.^2-(y+1).^2)-10*(x/5-x.^3-y.^5).*exp(-x.^2-y.^2)-1/3*exp(-(x+1).^2-y.^2);
label '$x$' '$y$' '$z$';


Is this what you want? If not post the function you are working with and I will try my best to code it for you (I am new to Sysquake, so no promises).

View this message in context: http://n2.nabble.com/Sysquake-for-LaTeX-%28and-TeXShop%29-tp2548365p2578888.html
Sent from the MacOSX-TeX mailing list archive at Nabble.com.

More information about the MacOSX-TeX mailing list