I want to use the example in http://www.texample.net/tikz/examples/morleys-triangle/. I changed the tkz-2d
into tkz-euclide
(as tkz-2d
is superseeded by this package), but tkz-euclide
doesn't know \tkzMathLength
. How can I modify the code to get a working example?
[Tex/LaTex] Migrating from tkz-2d to tkz-euclide
tikz-pgftkz-collection
Best Answer
In
tkz-euclide
the legth of a segment is determined via:As you can see, you can also specify the unit in which you want the result. And, of course, don't forget the
\
before<variableName>
, when using it later in the code. :)Edit: To avoid errors at compilation, you will need to specify the unit every time you use
\<varialbleName>
, e.g.:Edit2: OK, here is the full working example, in case it doesn't work for somebody:
So, no more complaints will be accepted! All right, just kidding... ;)