[OS X TeX] TKZplot2d for tikz/pgf problem.

Frank STENGEL fstengel at mac.com
Mon May 14 03:32:29 EDT 2007


Le 14 mai 07 à 02:27, Gary Church a écrit :


<snip>

>
> I've been trying the example plots in the TKZplot2d documentation  
> and all works fine except for a few of the examples. One of the  
> shorter ones is:
>
> \begin{tikzpicture}[scale=1.5]
> \tkzinit[xmax=1,xstep=0.1,ymax=1,ystep=0.1]
> \tkzgrid
> \tkzx
> \tkzy
> \tkzfct[lw=0.8pt](0.00001..1){\x**\x}
> % \tkzfctpt[type=$\bullet$](1/(exp(1)),\tkzfcta){A}
> % \tkztg[color=blue,lw=.8pt,kr=0.2,kl=0.2]{\tkzfcta}({1/(exp(1))})
> \tkztg[color=blue,lw=.8pt,kr=0,kl=1]{\tkzfcta}(1)
> \end{tikzpicture}
>
> This compiles fine as shown but doesn't work when the commented  
> lines are uncommented (as they are in the original example in the  
> documentation). When these lines are uncommented, I get the errors  
> below. I suspect the problem is with the "exp(1)" expression but  
> don't understand why this evidently worked as documented but  
> doesn't work for me.

I looked at tkz-plot2d.sty and found your problem stems from the fact  
that the 1/exp(1) is not evaluated, but used as if it were a floating  
point number. If I replace line 162 of tkz-plot2d.sty (inside  
\tkz at fctpt's definition) by

\FPeval\x{#2}%

then everything works fine. One should look if some of the other  
\FPset shouldn't be changed to \FPeval

-- 
Frank STENGEL (fstengel<at>mac.com)


------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the MacOSX-TeX mailing list