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

Alain Matthes alain.matthes at mac.com
Mon May 14 10:19:25 EDT 2007

Le 14 mai 07 à 09:32, Frank STENGEL a écrit :

> 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

1) with \FPeval\x{#2}%

here :

\newcommand*{\tkzfctpt}[1][]{\tkz at fctpt[#1]}%

\def\tkz at fctpt[#1](#2,#3)#4{
\FPeval\x{#2}<------------ eval
\tkz at pt[#1](\x,\y){#4}

and here

\newcommand*{\tkztg}[1][]{\tkz at tg[#1]}%
\def\tkz at tg[#1]#2(#3){
\FPmul{\krx}{\cmdTKZ at tan@kr}{\xunit}
\FPmul{\kry}{\cmdTKZ at tan@kr}{\yunit}
\FPmul{\klx}{\cmdTKZ at tan@kl}{\xunit}
\FPmul{\kly}{\cmdTKZ at tan@kl}{\yunit}
\FPeval\x{#3}%<------------ eval

\tkzpt[noname](\x,\y){tkz at A}
\FPeval\xx{#3}%<------------ eval

and with this example

\begin{tikzpicture}[scale=2,line width=0.8pt]
  \tkzx \tkzy
  \tkzfctpt[type=$\bullet$]((-1),\tkzfcta){A}%<-- !!!
  \tkztg[kl=0]{\tkzfcta}({(-1)})%<------------- !!!

You need to make this

because -1 give an error (-1) is necessary

idem here


{(-1)}) I don't like this hack

2) in the doc you need to know that sizept is not any more one option
  of tkzinit

and xstep and ystep  are not any more options of tkzgrid with the  
option sub
, xstep and ystep are the values defined in tkzinit.

Greetings Alain

------------------------- 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