| 1 |
\section{Compilation of examples} |
| 2 |
%–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––> |
| 3 |
\subsection{Installation test} |
| 4 |
The code below allows you to test your installation of \tkzname{tkz-base}. Please note that \NamePack{xfp} as well as \NamePack{numprint} must be present as well as version 3.01 (or higher) of \tkzNamePack{pgf}. All examples and this documentation have been compiled using Lua\LATEX. |
| 5 |
|
| 6 |
\medskip |
| 7 |
\begin{minipage}{0.45\textwidth} |
| 8 |
{%\setlength\linewidth{12cm} |
| 9 |
\begin{tkzltxexample}[right margin=6pt] |
| 10 |
\documentclass{standalone} |
| 11 |
\usepackage{tkz-base} |
| 12 |
\begin{document} |
| 13 |
\begin{tikzpicture} |
| 14 |
\tkzInit[xmax=4,ymax=4] |
| 15 |
\tkzGrid |
| 16 |
\tkzAxeXY |
| 17 |
\end{tikzpicture} |
| 18 |
\end{document} |
| 19 |
\end{tkzltxexample}} |
| 20 |
\end{minipage} |
| 21 |
\begin{minipage}{0.45\textwidth} |
| 22 |
\begin{tikzpicture} |
| 23 |
\tkzInit[xmax=4,ymax=4] |
| 24 |
\tkzGrid |
| 25 |
\tkzAxeXY |
| 26 |
\end{tikzpicture} |
| 27 |
\end{minipage} |
| 28 |
|
| 29 |
\emph{Notes on this test} |
| 30 |
|
| 31 |
\begin{enumerate} |
| 32 |
\item The compilation of this document and examples is obtained with \tkzimp{lua\LATEX}. |
| 33 |
\item \tkzNamePack{tkz-base} loads \tkzNamePack{numprint} with the option \tkzNamePack{autolanguage}, \tkzNamePack{xfp} and of course {\TIKZ}. |
| 34 |
\item \TIKZ\ seems that version 3 of pgf has fixed those problems. In case of difficulty, it is recommended to load the \NameLib{babel} library with \tkzcname{usetikzlabry\{babel\}}. Another possibility is to compile with Lua\LATEX. |
| 35 |
\end{enumerate} |
| 36 |
|
| 37 |
\subsection {\tkzNamePack{xfp} and \tkzNamePack{numprint}} |
| 38 |
|
| 39 |
\tkzNamePack{xfp} now replaces \tkzNamePack{fp} in this package. One of the advantages for the user is a simplified syntax. It allows to manage calculations on large or very small numbers with precision. This slows down the compilation a bit, so it is better not to overuse it. \tkzNamePack{xfp} is used above all, to obtain correct graduations. |
| 40 |
\tkzNamePack{numprint} was present when I started to write this series of packages, since \tkzNamePack{siunitx} has grown and I can understand that some people prefer it. In a future version, I plan to leave the choice of the package for displaying numbers. |
| 41 |
|
| 42 |
\endinput |