Alain Matthes submitted an update to the
tkz-euclide
package.
Version: 4.2c License: lppl1.3
Summary description: Tools for drawing Euclidean geometry
Announcement text: ----------------------------------------------------------------------
Except for bug fixes, this version 4.2 is the last one of tkz-euclide in the current form. I can now try to use lua for the definition and calculation part. The first tests are conclusive but there will surely be some difficulties to overcome. Either tkz-euclide will be upgraded to version 5, or will change its name, or in case of failure will remain globally frozen.
Here are the changes brought by this new version:
_ tkz-euclide now allows to create more and more complex geometrical figures and it appeared that it became difficult to use the scale option of TikZ. I introduced a patch proposed by Muzimuzhi that modifies pgfmathreciprocal. I propose in the documentation other ways to get around the problem. Of course, lua will be one of the solutions.
_ The macros kzDrawLine, kzDrawCircle, kzDrawSemiCircle, kzDrawSquare, kzDrawTriangle and kzDrawRectangle allow you to draw while defining points. This is no longer allowed. For example kzDrawSquare(A,B) used to draw a square by defining two other points, now the method consists in defining the square then drawing the polygon: kzdefSquare(A,B) kzgetPoints{C}{D} kzDrawPloygon(A,...,D). In the same way, kzDrawCircle[circum](A,B,C) must be replaced by kzDefCircle[circum](A,B,C) kzGetPoint{O} kzDrawCircle[circum](O,A). kzDrawTriangle has been deleted. kzDrawTriangle[equilateral] was handy but it is better to get the third point with kzDefTriangle[equilateral] and then draw with kzDrawPolygon; idem for kzDrawSquare and kzDrawGoldRectangle etc.
_ Now kzDefCircle gives two points as results: the center of the circle and a point of the circle. When a point of the circle is known, it is enough to use kzGetPoint or kzGetFirstPoint to get the center, otherwise kzGetPoints will give you the center and a point of the circle. You can always get the length of the radius with kzGetLength . I wanted to favor working with nodes and banish the appearance of numbers in the code.
_ The circle inversion was badly defined so I rewrote the macro.
_ The definition of a circle defines in priority the center (if necessary), a point of the circle and the radius.
_ The following macros kzDefCircleBy[orthogonal through] and kzDefCircleBy[orthogonal from] become kzDefCircle[orthogonal through] and kzDefCircle[orthogonal from]
_ The new option euler with kzDefLine[euler](A,B,C) is a macro that allows you to obtain the line of kzname{Euler} when possible. The result gives you the Euler point and the orthocenter of the triangle.
_ kzDefTangent is replaced by kzDelLine[tangent from = ...] or kzDelLine[tangent at = ...]
_ I added the macro tkzPicAngle[tikz options](A,B,C) for those who prefer to use TIKZ .
_ Correct allocation for gold sublime and euclide triangles.
— Correct option isoceles right in kzDefTriangle
_ add kzDefMidArc: kzDefMidArc(O,A,B) gives the middle of the arc center O from A to B.
_ Some useful tools have been added. They are present on an experimental basis and will undoubtedly need to be improved (with lua !):
kzDotProduct(A,B,C) computes the scalar product in an orthogonal reference system of the vectors vec{AB} and vec{AC}. kzDotProduct(A,B,C)=aa'+bb' if vec{AB} =(a,b) and vec{AC} =(a',b'). kzPowerCircle(A)(B,C) power of point A with respect to the circle of center B passing through C. kzDefRadicalAxis(A,B)(C,D) Radical axis of two circles of center A and C;
Some tests : kzIsOrtho(A,B,C) and kzIsLinear(A,B,C) The first indicates whether the lines (A,B) and (A,C) are orthogonal. The second indicates whether the points A, B and C are aligned. kzIsLinear(A,B,C) if A,B,C are aligned then kzLineartrue you can use iftkzLinear (idem for kzIsOrtho);
_ A style for vectors has been added that you can of course modify ikzset{vector style/.style={>=Latex,->}}.
_ Now it's possible to add an arrow on a line or a circle with the option tkz arrow
_ correction compatibility between tkz-base and tkz-euclide
----------------------------------------------------------------------
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/tkz-euclide
The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/latex/contrib/tkz/tkz-euclide/
------------------------------------------------------------------------
Thanks for the upload.
For the CTAN Team Petra Rübe-Pugliese
------------------------------------------------------------------------
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs