Hello,
I tried to process sq-example.tex .
I processed with PDFLatex but I did not get any result/graphics .
Instead, I got "??sysquake??" indicating that something went wrong with sysquakelatextool .
Calerga
January 2017
1
Simple expressions
The following examples show how \sqexpr is used to format expression
results in L A TEX equations.
For Sysquake, $\pi = \sqexpr{pi}$ and $e^{\pi j}=\sqexpr{exp(pi*1j)}$.
For Sysquake, π = ??sysquake?? and eπj = ??sysquake??.or additions to systems's PATH .
I tried to force sysquake path via \sysquakepath{/opt/sysquake/Lib} or /opt/SysquakeLx/Lib
or both of the separated by : or ; and it did not help .
It is intriguing that sysquakelatextool produces the message
disp 'Cannot find libraries polyhedra.lml and colormaps.lml'
PATH contains /opt/sysquake/Lib:/opt/SysquakeLx/Lib but
'which polyhedra.lml' does not detect it
I believe that the root cause is to correct/setup the definitions for sysquake libraries .
Could you please help me to correctly define sysquake and sysquakelx libraries associated .
Environmental/testing info provided below.
Your help is appreciated .
Thank you .
Best Regards,
Nick
================== ENVIRONMENTAL info + Latex/sysquake results ==================
My machine opensuse leap 42.2 [ close to Fedora ] .
sysquake and sysquakelx were installed via rpm-s generated from calerga deb sources using alien utility .
sysquakelx tex files were "installed" in installed TexLive 2017 environment .
As per docs I created specific variables and/Sysquake for LaTeX tutorial
sysquake associated directories
find /opt/sysquake -type d
/opt/sysquake
/opt/sysquake/Lib
/opt/sysquake/SQ_files
/opt/sysquake/Doc
/opt/sysquake/Doc/Images
/opt/sysquake/linux
/opt/sysquake/linux/man
/opt/sysquake/linux/icons
/opt/sysquake/bin
/opt/sysquake/RelNotes
find /opt/SysquakeLx -type d
/opt/SysquakeLx
/opt/SysquakeLx/Lib
/opt/SysquakeLx/TexFiles
/opt/SysquakeLx/TexFiles/tex
/opt/SysquakeLx/TexFiles/tex/latex
/opt/SysquakeLx/TexFiles/doc
/opt/SysquakeLx/TexFiles/doc/latex
/opt/SysquakeLx/TexFiles/doc/latex/sysquake
/opt/SysquakeLx/bin
/opt/SysquakeLx/bin/i386-linux
echo $PATH
.:/Common_Bin:/u01/texlive/usr/local/texlive/2017/bin/x86_64-linux:<more dirs>:/opt/sysquake/bin:/opt/SysquakeLx/i386-linux:/opt/sysquake/Lib:/opt/SysquakeLx/Lib
echo $SYSQUAKEDIR
/opt/sysquake
echo $SYSQUAKELXPATH
/opt/sysquake/Lib;/opt/SysquakeLx/Lib
kpsewich sysquake.sty
/u01/texlive/usr/local/texlive/texmf-local/tex/latex/sysquake/sysquake.sty
which sysquake
/usr/bin/sysquake
sysquake --version
Sysquake 6.0.1 (LME 7.0.1)
Copyright 1997-2017, Calerga Sarl.
All rights reserved.
which sysquakelatextool
/usr/local/bin/sysquakelatextool
sysquakelatextool --help
sysquakelatextool
Copyright 1997-2017, Calerga Sarl
Usage:
SYSQUAKELXPATH=path sysquakelatextool [options...] infile
Options: ...........
which polyhedra.lml
which: no polyhedra.lml in (.:/Common_Bin:/u01/texlive/usr/local/texlive/2017/bin/x86_64-linux:<...many dirs..>
:/opt/sysquake/bin:/opt/SysquakeLx/i386-linux:/opt/sysquake/Lib:/opt/SysquakeLx/Lib)
For LaTeX editing/processing I use Kile tool ......
The log of PDFLatex processing indicates ...
1st pass :
==========
0 errors , 3 warnings, 5 badboxes
No file sq-example.out
No file sq-example.lmeout
sq-example.out has changed
sysquakelatextool --latexingraphics -o sq-example.lmeout sq-example.lme
2nd pass :
==========
0 errors , 1 warnings, 5 badboxes
No file sq-example.lmeout
The file sq-example.pdf does not show any figure .
None of expected sysquake based graphics/results are present .
Instead I got something like ....
Simple expressions
The following examples show how \sqexpr is used to format expression
results in L A TEX equations.
For Sysquake, $\pi = \sqexpr{pi}$ and $e^{\pi j}=\sqexpr{exp(pi*1j)}$.
For Sysquake, π = ??sysquake?? and eπj = ??sysquake??.
\begin{equation}
M_3 = \sqexpr{magic(3)}
\end{equation}
Magic square M3 of order 3 is
M3 = ??sysquake??
The sq-example.lme is as follows .....
_pragma line 27
sqlxstartfragment('sq-example','fragi');
sqlxvalue(pi);
sqlxendfragment('fragi');
_pragma line 27
sqlxstartfragment('sq-example','fragii');
sqlxvalue(exp(pi*1j));
sqlxendfragment('fragii');
_pragma line 38
sqlxstartfragment('sq-example','fragiii');
sqlxvalue(magic(3));
sqlxendfragment('fragiii');
_pragma line 58
sqlxstartfragment('sq-example','fragiv');
R = rand(4);
sqlxendfragment('fragiv');
_pragma line 60
sqlxstartfragment('sq-example','fragv');
sqlxvalue(R);
sqlxendfragment('fragv');
_pragma line 88
sqlxstartfragment('sq-example','fragvi',-1,-1);
lambda = eig(R);
for i = 1:length(lambda)
fprintf('\\[ \\lambda_%d = %s \\]\n', i, sqlxvalue(lambda(i)));
end
sqlxendfragment('fragvi');
_pragma line 121
sqlxstartfragment('sq-example','fragvii',300,200);
scale([0, 8]);
step(1, 1:4);
step(1, [1:4, 0] * 5, 'r');
title('$\\psi(t)=\\int_0^\\infty g(\\tau)s(t-\\tau){\\rm d}\\tau$');
label('$t$','$\\psi$');
legend('$\\psi(t)$\n$1/5\\;\\int \\psi(t) {\\rm d}t$','kr');
sqlxendfragment('fragvii');
_pragma line 158
sqlxstartfragment('sq-example','fragviii',300,200);
step(1, 1:4);
label('$t$','$\\psi$');
legend('_(120,20)_$\\psi(t)=\\int_0^\\infty g(\\tau)s(t-\\tau){\\rm d}\\tau$');
sqlxendfragment('fragviii');
_pragma line 198
sqlxstartfragment('sq-example','fragix',300,200);
useifexists polyhedra, colormaps;
try
smallstellateddodecahedron;
colormap(blue2yellow2redcm);
camorbit(0.3, 0.1);
plotoption nomargin;
plotoption noframe;
plotoption fill3d;
catch
disp 'Cannot find libraries polyhedra.lml and colormaps.lml'
end
sqlxendfragment('fragix');