Dmitry Shkirmanov <piminusmeson at bk.ru> writes:
>> Maybe use '$2\\pi$'? I don't have TeX here to see the result, but
>> when I look at introduction.tex, I see that it has $2\pi$ in it. Your
>> version just has $2pi$.
Because \ is an escape character in maxima strings, I generally use &
(or @) for the latex escape character, to avoid conflicts:
in maxima:
draw2d(..., xlabel="$&pi$",...);
in latex:
\def\inputdraw#1{\begingroup\catcode`\&=0 \input{#1}\endgroup}
>>
> I can not try it. The main problem is that latex cannot compile
> introduction.tex created by maxima. By looking into introduction.tex one
> can see that maxima cuts about 5 last lines of original(created by
> gnuplot) introduction.tex. It makes compilation by latex impossible.
This is, I think, a problem with gnuplot: the output file looks
truncated because gnuplot has not flushed stdout. One solution is to
follow your draw command with a 2nd command to plot something on the
screen. That will force gnuplot to finish writing its output file.
Leo
>
>
>> Here the maxima output is such that latex runs OK and the dvi output looks
>> very similar to the gnuplot output.
>> For reference here is my
>> Maxima 5.25.1http://maxima.sourceforge.net
>> using Lisp SBCL 1.0.51.0-a546163
>> on Mac OS X.
>>
> My version is
> Maxima 5.29.1 http://maxima.sourceforge.net
> using Lisp SBCL 1.0.40.0.debian
>
> May be this bug appeared only in new maxima version?
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
--
Leo Butler <l_butler at users.sourceforge.net>
SDF Public Access UNIX System - http://sdf.lonestar.org