So I was reading through the tkz-euclide documentation and I saw two different commands being used in a similar manner on examples 4.2.2 and 4.2.3.

  • \tkzDefShiftPoint
  • \tkzDefShiftPointCoord

Both commands seem to take the same types of arguments and their difference(s) don't seem to be explained in the doc.

I copied the code for the second and I switched the commands around, looking for any output differences.

% Original code from doc.

% Edited code with \tkzDefShiftPoint used instead.

But the output for both tikzpictures are pretty much the same.

May I know what the differences between both commands are?

  • They are not called \tkzShiftPoint and \tkzShiftPointCoord but \tkzDefShiftPoint and \tkzDefShiftPointCoord. – AndréC Jul 25 '20 at 8:26
  • Oh yeah, that's a terrible typo. I should fix that. Thanks @AndréC – Kookie Jul 25 '20 at 8:50
  • Their definitions are a little bit different (see the file tkz-pbj-points.tex, lines 215-230: github.com/tkz-sty/tkz-base/blob/master/latex/…). I don't know what kind of differences there are in practical use though. – Torbjørn T. Jul 25 '20 at 18:50

There's a small difference. With tkzDefShiftPointCoord you can use coordinates it's impossible with tkzDefShiftPoint.


\tkzDrawSegments(A,B B,C C,A)

  • That is a very subtle difference that I think would be very hard for new users like me to spot. How interesting! – Kookie Aug 16 '20 at 13:34
  • @Kookie \tkzDefShiftPoint is enough and I think it's better to avoid the coordinates. – Alain Matthes Aug 16 '20 at 16:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.