[OS X TeX] Sysquake for LaTeX (and TeXShop)
Ramón Figueroa-Centeno
ramonf at hawaii.edu
Sat Mar 28 04:03:08 EDT 2009
Aloha,
I am exploring Sysquake for LaTeX (Download it here <http://www.calerga.com/products/SQLx/index.html>). It is quite powerful. The syntax is (AFAIK) the same as MATLAB's, which makes it great for teaching linear algebra.
Now, it requires every document to be typeset twice, so I wrote a TeXShop engine for it:
#!/bin/sh
PATH="$PATH:/usr/texbin:/usr/local/bin"
pdflatex "$1"
pdflatex --shell-escape "$1"
Save it in a text file named Sysquake.engine in ~/Library/TeXShop/Engines/
Then add the line:
% !TEX TS-program = Sysquake
to the beginning of a LaTeX document, which uses sysquake, to typeset it twice in a row.
It will do 3D plots (something I am stumped with using sagetex):
% !TEX TS-program = Sysquake
\documentclass{report}
\usepackage[latexingraphics]{sysquake}
\usepackage{graphicx}
\usepackage{epstopdf}
\begin{document}
\begin{sysquake}(400,300)
t = 0:pi/50:10*pi;
plot3(sin(t),cos(t),t);
\end{sysquake}
\end{document}
The Sysquake for LaTeX documentation contains a nice example:
/opt/SysquakeLx/TexFiles/tex/latex/sq-example.tex
Enjoy!
Ramón
--
View this message in context: http://n2.nabble.com/Sysquake-for-LaTeX-%28and-TeXShop%29-tp2548365p2548365.html
Sent from the MacOSX-TeX mailing list archive at Nabble.com.
More information about the MacOSX-TeX
mailing list