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

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


Aloha,

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

#!/bin/sh 
PATH="$PATH:/usr/texbin:/usr/local/bin" 
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

\documentclass{article}

\usepackage[%
latexingraphics,% comment if not wanted
%noseparatelogfile% uncomment if wanted
]{sysquake}
\usepackage{graphicx}
\usepackage{epspdfconversion}

\usepackage[%
active,% comment to deactivate preview
pdftex,tightpage]{preview}
\PreviewEnvironment{sysquake}

\begin{document}

\begin{figure}[ht!]
\centering
\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; 
colormap(blue2yellow2redcm); 
[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);
surf(x,y,z);
label '$x$' '$y$' '$z$';
\end{sysquake}
\caption{Peaks}
\end{figure}

\end{document}

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).

Ramón
-- 
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