Sysquake LE and Sysquake for LaTeX

11 views
Skip to first unread message

fromSpain

unread,
Feb 13, 2008, 4:23:26 PM2/13/08
to Sysquake
Hi all
I love the idea behind Sysquake for LaTeX. I have tried to install it
and compiled the example (sq-example.tex) but it doesn't work: I get
For Sysquake = ??sysquake?? and e = ??sysquake??.

MikTeX finds the .sty file but it does not execute sysquake correctly
(at the end of the .lme file I find:

catch
disp 'Cannot find libraries polyhedra.lml and colormaps.lml'
end
sqlxendfragment('ix');


I have checked the path on my windows system...I have both the
Sysquake and the Sysquake for latex/Lib paths in the PATH and the
SYSQUAKELXPATH variables (and the both libraries are in those paths)
... what am I doing wrong?
Thankx for your help

jose
System: Windows XP with MikTeX 2.7, Sysquake 4.0.1 LE


Yves Piguet

unread,
Feb 13, 2008, 4:59:55 PM2/13/08
to Sysquake
Hi,

Have you tried without any library? For instance just an expression
like

foo \sqexpr{1+2} bar

If it doesn't work, try running sysquakelatextool from a command
prompt:

sysquakelatextool test.lme

It should write latex definitions without error.

Then you can try a builtin graphical command:

\begin{sysquake}(100,80)
plot(rand(10));
\end{sysquake}

If it doesn't work, try with pdflatex instead of latex if you haven't.

Please tell us what works and what doesn't!

Yves

fromSpain

unread,
Feb 14, 2008, 11:38:03 AM2/14/08
to Sysquake
Now I see what I did wrong... had not added the -enable-write18 option
to the pdflatex command!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your suggestions made me realize it.
I have included the steps below that document how I figured it out.
Hope it helps those that follow ;)

jose



So this is what I got:

> Have you tried without any library? For instance just an expression
> like
>
> foo \sqexpr{1+2} bar

Yes, (in a file test.tex) I get
foo ??sysquake?? bar
>
> If it doesn't work, try running sysquakelatextool from a command
> prompt:
>
> sysquakelatextool test.lme

I get
% Generated by sysquakelatextool 1.0
% LME 4.7
% http://www.calerga.com

\def\lmefragi{%
\ensuremath{3}}

Run the same on sq-example.lme

% Generated by sysquakelatextool 1.0
% LME 4.7
% http://www.calerga.com

\def\lmefragi{%
\ensuremath{3.1416}}
\def\lmefragii{%
\ensuremath{-1+1.2246\cdot10^{-16}j}}
\def\lmefragiii{%
\ensuremath{\left[ \begin{array}{ccc}8
&1
&6\\
3
&5
&7\\
4
&9
&2\end{array}\right]}}
\def\lmefragiv{%
}
\def\lmefragv{%
\ensuremath{\left[ \begin{array}{cccc}0.236
&0.2631
&0.2969
&0.7214\\
0.9245
&0.7002
&0.4465
&0.7271\\
0.9628
&0.2232
&0.3343
&0.8977\\
0.1625
&0.9002
&1.7776\cdot10^{-2}
&0.2891\end{array}\right]}}
\def\lmefragvi{%
\[ \lambda_1 = \ensuremath{1.9707} \]
\[ \lambda_2 = \ensuremath{-0.2471} \]
\[ \lambda_3 = \ensuremath{-8.1966\cdot10^{-2}+0.4382j} \]
\[ \lambda_4 = \ensuremath{-8.1966\cdot10^{-2}-0.4382j} \]
}
\def\lmefragvii{%
\begin{picture}(300,170)
\put(0,-15){\includegraphics{lmefragvii.eps}}
\end{picture}
}
\def\lmefragviii{%
\begin{picture}(300,170)
\put(0,-15){\includegraphics{lmefragviii.eps}}
\end{picture}
}
\def\lmefragix{%
\begin{picture}(300,170)
\put(0,-15){\includegraphics{lmefragix.eps}}
\end{picture}
}

>
> It should write latex definitions without error.
>
> Then you can try a builtin graphical command:
>
> \begin{sysquake}(100,80)
> plot(rand(10));
> \end{sysquake}

Again, what I get is:

??sysquake??


>
> If it doesn't work, try with pdflatex instead of latex if you haven't.

I have tried everything with pdflatex (my default compiler for latex).
I have also tried regular latex but I get the same results (on the
dvi)


I run sysquakelatextool on the new test.lme (with the graph) and got:
% Generated by sysquakelatextool 1.0
% LME 4.7
% http://www.calerga.com

\def\lmefragi{%
\ensuremath{3}}
\def\lmefragii{%
\begin{picture}(100,50)
\put(0,-15){\includegraphics{lmefragii.eps}}
\end{picture}
}


>
> Please tell us what works and what doesn't!
So, it is writing the LaTeX commands but not compiling ...!!!... The
conclusion is then obvious ... It is not recompiling the tex file ....
(bulb lights up!) .... I had not added the -enable-write18 option to
the pdflatex command!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Execute
pdflatex test.tex -enable-write18
pdflatex sq-example -enable-write18

Now it works beautifully!!!!!!!!!!!!
Thank you!!!!!!!!!!!!

>
> Yves
Reply all
Reply to author
Forward
0 new messages