| 1 |
% tkz-base.sty % |
| 2 |
% Copyright 2024 Alain Matthes |
| 3 |
% This work may be distributed and/or modified under the |
| 4 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 5 |
% of this license or (at your option) any later version. |
| 6 |
% The latest version of this license is in |
| 7 |
% http://www.latex-project.org/lppl.txt |
| 8 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 9 |
% version 2005/12/01 or later. |
| 10 |
% This work has the LPPL maintenance status “maintained”. |
| 11 |
% The Current Maintainer of this work is Alain Matthes. |
| 12 |
|
| 13 |
\def\fileversion{4.21c} |
| 14 |
\typeout{2024/01/16 4.21c tkz-base.sty} |
| 15 |
\NeedsTeXFormat{LaTeX2e} |
| 16 |
\ProvidesPackage{tkz-base}[2024/01/16 4.21c tkz-base] |
| 17 |
\@ifpackageloaded{tkz-euclide}{\typeout{tkz-base and tkz-fct must be loaded before tkz-euclide} |
| 18 |
\PackageError{tkz-base}{tkz-base must be loaded before tkz-euclide}{tkz-base must be loaded before tkz-euclide}% |
| 19 |
\endinput}{} |
| 20 |
\RequirePackage{tikz} |
| 21 |
\usetikzlibrary{% |
| 22 |
angles, |
| 23 |
arrows, |
| 24 |
arrows.meta, |
| 25 |
backgrounds, |
| 26 |
calc, |
| 27 |
decorations, |
| 28 |
decorations.markings, |
| 29 |
decorations.pathreplacing, |
| 30 |
decorations.shapes, |
| 31 |
decorations.text, |
| 32 |
decorations.pathmorphing, |
| 33 |
intersections, |
| 34 |
patterns, |
| 35 |
plotmarks, |
| 36 |
positioning, |
| 37 |
quotes, |
| 38 |
shapes.misc, |
| 39 |
shadows, |
| 40 |
through |
| 41 |
}% remove snake library |
| 42 |
% Pour les les labels sur les axes |
| 43 |
\@ifpackageloaded{numprint}{} |
| 44 |
{\RequirePackage[autolanguage]{numprint}} % |
| 45 |
\RequirePackage{xfp,fp} |
| 46 |
%\FPmessagesfalse % pas de messages de la part de fp ! |
| 47 |
%--------------------- |
| 48 |
|
| 49 |
%--------------------- tkz registres |
| 50 |
\newdimen\tkz@ax |
| 51 |
\newdimen\tkz@ay |
| 52 |
\newdimen\tkz@bx |
| 53 |
\newdimen\tkz@by |
| 54 |
\newdimen\tkz@cx |
| 55 |
\newdimen\tkz@cy |
| 56 |
\newdimen\tkz@dx |
| 57 |
\newdimen\tkz@dy |
| 58 |
% 2017 ???? inutile ! |
| 59 |
\newdimen\tkz@tax |
| 60 |
\newdimen\tkz@tay |
| 61 |
\newdimen\tkz@tbx |
| 62 |
\newdimen\tkz@tby |
| 63 |
\newdimen\tkz@tcx |
| 64 |
\newdimen\tkz@tcy |
| 65 |
\newdimen\tkz@tdx |
| 66 |
\newdimen\tkz@tdy |
| 67 |
%--------------------- points |
| 68 |
\newif\iftkz@polar\tkz@polarfalse |
| 69 |
\newif\iftkz@pt@polar |
| 70 |
\newif\iftkz@pt@show |
| 71 |
\newif\iftkz@pt@noname |
| 72 |
\newif\iftkz@coord@noxdraw |
| 73 |
\newif\iftkz@coord@noydraw |
| 74 |
\newif\iftkz@vec@normed |
| 75 |
%--------------------- tkz axis |
| 76 |
\newif\iftkz@X@noticks |
| 77 |
\newif\iftkz@Y@noticks |
| 78 |
\newif\iftkz@X@nograd |
| 79 |
\newif\iftkz@Y@nograd |
| 80 |
\newif\iftkz@X@orig |
| 81 |
\newif\iftkz@Y@orig |
| 82 |
\newif\iftkz@X@unit |
| 83 |
\newif\iftkz@Y@unit |
| 84 |
\newif\iftkz@np |
| 85 |
\newif\iftkz@swap |
| 86 |
\newif\iftkz@init@NO |
| 87 |
\newif\iftkz@integer |
| 88 |
\newif\iftkz@Rep@orig%--------------------- Rep |
| 89 |
\newif\iftkzLengthIncm%--------------------- Math |
| 90 |
\newif\iftkz@sop@show%--------------------- marks |
| 91 |
\newif\iftkz@equi@show |
| 92 |
\newif\iftkz@gd@sub% sub grid ?%--------------------- about grid |
| 93 |
\newif\iftkz@node\tkz@nodefalse |
| 94 |
\newif\iftkz@legend@line%--------------------- legend |
| 95 |
\newif\iftkz@TestSubString |
| 96 |
\newif\ifpgf@unknown % math arith |
| 97 |
\newif\ifpgf@isaprime |
| 98 |
\newcount\tkz@cntmk |
| 99 |
\newif\iftkz@RappReturn % protractor |
| 100 |
\newif\iftkz@RappFull |
| 101 |
%--------------------- Init |
| 102 |
\def\tkz@xgrad{1} |
| 103 |
\def\tkz@ygrad{1} |
| 104 |
\def\tkz@xa{0} |
| 105 |
\def\tkz@xb{10} |
| 106 |
\def\tkz@ya{0} |
| 107 |
\def\tkz@yb{10} |
| 108 |
%---------------------- |
| 109 |
\def\tkz@mathresult{} |
| 110 |
\InputIfFileExists{tkz-base.cfg}{% |
| 111 |
\typeout{Local configuration file tkz-base.cfg found and used}}{% |
| 112 |
\typeout{tkz-base.cfg not found} } |
| 113 |
\input{tkz-tools-modules} |
| 114 |
\input{tkz-lib-marks} |
| 115 |
\input{tkz-lib-shape} |
| 116 |
\usetkztool{base,utilities,colors,text,BB,arith,print,misc}% BB out |
| 117 |
\usetkzobj{axes,grids,marks,points,rep} |
| 118 |
\endinput |