summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-base/doc/latex/TKZdoc-base-compilation.tex
blob: 746340983ad5e887a41598c8eb6b80478c95bec5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
\section{Compilation des exemples}
%–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––>
\subsection{Test de l'installation}  
Le code ci-dessous permet de tester  votre installation de \tkzname{tkz-base}. Je vous signale que \NamePack{xfp}, tout comme  \NamePack{numprint}  doit être présent ainsi que la version 3.01 (ou plus) de \tkzNamePack{pgf}. Tous les exemples ainsi que cette documentation ont été compilés  à l'aide de Lua\LATEX\  

\medskip
\begin{minipage}{0.45\textwidth}
{%\setlength\linewidth{12cm}
\begin{tkzltxexample}[right margin=6pt]  
\documentclass{standalone}
\usepackage{tkz-base}
\begin{document}
\begin{tikzpicture}
 \tkzInit[xmax=4,ymax=4]
 \tkzGrid
 \tkzAxeXY
\end{tikzpicture}
\end{document}
\end{tkzltxexample}}
\end{minipage}
\begin{minipage}{0.45\textwidth}
\begin{tikzpicture}
 \tkzInit[xmax=4,ymax=4]
 \tkzGrid
 \tkzAxeXY
\end{tikzpicture}
\end{minipage}

\emph{Remarques sur ce test} 

\begin{enumerate}
\item La compilation de ce document et des exemples est obtnue avec \tkzimp{luaLatex-dev}.
\item  En principe, \tkzNamePack{tkz-base} n'est pas chargé  par l'utilisateur, il sera chargé par un autre package comme \tkzNamePack{tkz-euclide} ou \tkzNamePack{tkz-fct}. \tkzNamePack{tkz-base} charge \tkzNamePack{numprint} avec l'option \tkzNamePack{autolanguage}, \tkzNamePack{xfp} et bien sûr {\TIKZ}.

\item 
\TIKZ\ était parfois allergique aux caractères actifs, il semblerait que la version 3. de pgf est réglé ces problèmes. En cas de difficulté, il est recommandé de charger la librairie \NameLib{babel} avec \tkzcname{usetikzlabry\{babel\}}. Une autre possibilité est de compiler avec \tkzname{lualatex}.
\end{enumerate} 


\subsection{Pourquoi \tkzNamePack{xfp} et \tkzNamePack{numprint}} 

\tkzNamePack{xfp} remplace désormais \tkzNamePack{fp} dans ce package. Un des avantages pour l'utilisateur est une syntace simplifiée. Il permet de gérer des calculs sur des grands nombres ou des très petits avec précision. Cela ralentit un peu la compilation, aussi il est préférable de ne pas en abuser. \tkzNamePack{xfp} est avant tout utilisé, pour obtenir des graduations correctes.                           

\tkzNamePack{numprint} était présent quand j'ai commencé à écrire cette série de packages, depuis \tkzNamePack{siunitx}   s'est développé et je peux comprendre que certains le préfèrent. Dans une prochaine version, j'ai prévu de laisser le choix du package pour l'affichage des nombres.


% \newpage
% \section{Les macros}
%
% Le package vous fournit les macros essentielles suivantes, qui sont données avec leurs principales options et valeurs par défaut~:
%
% \bigskip
% \begin{enumerate}
%   \item Macros générales
% \medskip
% \begin{itemize}\setlength{\itemsep}{6pt}
%
%   \item \tkzhname{\hyperlink{obj}{usetkzobj}}\var{all} ou \var{circles,lines,polygons,etc.}
%   \item \tkzhname{\hyperlink{init}{tkzInit}}[xmin=0,xmax=10,xstep=1,ymin=0,ymax=10,ystep=1]
%   \item \tkzhname{\hyperlink{grid}{tkzGrid}}[sub,color=darkgray,line width=.4pt]
%   \item \tkzhname{\hyperlink{clip}{tkzClip}}[space=1]
%   \item \tkzhname{\hyperlink{rep}{tkzRep}}[xlabel=$\vec{\imath}$,ylabel=$\vec{\jmath}$]
%   \item \tkzhname{\hyperlink{text}{tkzText}}[color=black,text=black,fill=white]\parg{point}\var{un texte}
%   \item \tkzhname{\hyperlink{legend}{tkzLegend}}[options]\var{mark/couleur/size/texte}
% \end{itemize}
%   \item Macros sur les axes
% \medskip
% \begin{itemize}\setlength{\itemsep}{4pt}
%   \item \tkzhname{\hyperlink{ax}{tkzAxeX}}[label=$x$,color=black,trig,frac]
%   \item \tkzhname{\hyperlink{dx}{tkzDrawX}}[noticks,label=$x$]
%   \item \tkzhname{\hyperlink{lx}{tkzLabelX}}[trig,frac,np off]
%   \item \tkzhname{\hyperlink{ay}{tkzAxeY}}[label=$y$,color=black]
%   \item \tkzhname{\hyperlink{dy}{tkzDrawY}}[noticks,label=$y$]
%   \item \tkzhname{\hyperlink{ly}{tkzLabelY}}[trig,frac,np off]
%   \item \tkzhname{\hyperlink{axy}{tkzAxeXY}}[label=\{\},color=black,frac]
%   \item \tkzhname{\hyperlink{dxy}{tkzDrawXY}}[label=\{\},color=black,frac]
%   \item \tkzhname{\hyperlink{lxy}{tkzLabelXY}}[trig,frac,np off]
% \end{itemize}
%
%   \item Macros sur les points
%
% \medskip
%   \begin{itemize}\setlength{\itemsep}{4pt}
%     \item \tkzhname{\hyperlink{tdp}{tkzDefPoint}}\parg{$x,y$}\marg{name} ou bien \parg{$a:r$}\marg{name}
%       \item \tkzhname{\hyperlink{tdps}{tkzDefPoints}}\marg{$x_1$/$y_1$/name,$x_2$/$y_2$/name}
% \item \tkzhname{\hyperlink{tdsp}{tkzDefShiftPoint}}[point]\parg{$x,y$ ou $a:r$ }\marg{name}
%     \item \tkzhname{\hyperlink{tdrp}{tkzDrawPoint}}[options]\parg{name}
%     \item \tkzhname{\hyperlink{tdrps}{tkzDrawPoints}}[options]\parg{n1,n2,...}
%     \item \tkzhname{\hyperlink{tlp}{tkzLabelPoint}}[options]\parg{name}\var{label}
%     \item \tkzhname{\hyperlink{tlps}{tkzLabelPoints}}\parg{n1,n2,...}
%     \item \tkzhname{\hyperlink{tlps}{tkzLabelPoints}}\parg{n1,n2,...}     \item \tkzhname{\hyperlink{tpsc}{tkzPointShowCoord}}[options]\parg{point}   \end{itemize}
%
%    \item Macros sur les segments
%
%  \medskip
%   \begin{itemize}\setlength{\itemsep}{4pt}
%     \item \tkzhname{\hyperlink{tds}{tkzDrawSegment}}[options]\parg{name,name}
%     \item \tkzhname{\hyperlink{tdss}{tkzDrawSegments}}[options]\parg{$pt_1,pt_2$ $pt_3,pt_4$}
%     \item \tkzhname{\hyperlink{tdpos}{tkzDrawPolySeg}}[options]\parg{$pt_1,pt_2,pt_3,...$ ,...}
%         \item \tkzhname{\hyperlink{tls}{tkzLabelSegment}}[options]\parg{name,name}\marg{label}
%     \item \tkzhname{\hyperlink{tlss}{tkzLabelSegments}}[options]\parg{n1,n2 n3,n4 ...}
%     \item \tkzhname{\hyperlink{tms}{tkzMarkSegment}}[mark=none,pos=.5,size=4pt]\parg{name,name}
%     \item \tkzhname{\hyperlink{tmss}{tkzMarkSegments}}[options]\parg{n1,n2 n3,n4 ...}
%   \end{itemize}
%
%    \item Autres macros
%
%    \medskip
%      \begin{itemize}\setlength{\itemsep}{4pt}
%   \item \tkzhname{\hyperlink{thl}{tkzHLine}}[options]\marg{$v$}
%   \item \tkzhname{\hyperlink{thls}{tkzHLines}}[options]\marg{$v_1,v_2,...$}
%   \item \tkzhname{\hyperlink{tvl}{tkzVLine}}[options]\marg{$v$}
%   \item \tkzhname{\hyperlink{tvls}{tkzVLines}}[options]\marg{$v_1,v_2,...$}
%   \item \tkzhname{\hyperlink{tht}{tkzHTick}}[options]\marg{$v$}
%   \item \tkzhname{\hyperlink{thts}{tkzHTicks}}[options]\marg{$v_1,v_2,...$}
%   \item \tkzhname{\hyperlink{tvt}{tkzVTick}}[options]\marg{$v$}
%   \item \tkzhname{\hyperlink{tvts}{tkzVTicks}}[options]\marg{$v_1,v_2,...$}  \end{itemize}
%
% \end{enumerate}


\endinput