Debian Codegraph @

texmf-dist/doc/latex/tabularcalc/tabularcalc_doc_en.tex

raw
1 % Ceci est tabularcalc_doc_fr.tex, le manuel en français de tabularcalc
2 % This is tabularcalc_doc_fr.tex, the french manual of tabularcalc
3 %
4 % Christian Tellechea 2009
5 %
6 % email : [email protected]
7 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8 % This work may be distributed and/or modified under the
9 % conditions of the LaTeX Project Public License, either version 1.3
10 % of this license or (at your option) any later version.
11 % The latest version of this license is in
12 %
13 % http://www.latex-project.org/lppl.txt
14 %
15 % and version 1.3 or later is part of all distributions of LaTeX
16 % version 2005/12/01 or later.
17 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
18 \documentclass[a4paper,10pt]{article}
19 \usepackage[utf8]{inputenc}
20 \usepackage[T1]{fontenc}
21 \usepackage[a4paper,dvips,colorlinks=true,hyperfootnotes=false,filecolor=black,linkcolor=blue,urlcolor=magenta,bookmarks=false,pdfauthor={Christian TELLECHEA},pdftitle={tabularcalc},pdfsubject={package for tables of values},pdfkeywords={tabularcalc},pdfcreator={LaTeX}]{hyperref}
22 \usepackage[a4paper,dvips,margin=2.75cm]{geometry}
23 \usepackage[autolanguage]{numprint}
24 \usepackage{amsmath}
25 \usepackage{colortbl}
26 \usepackage{xcolor}
27 \usepackage{lmodern}
28 \usepackage{xspace}
29 \usepackage{listings}
30 \usepackage{tabularcalc}
31 \usepackage[bottom]{footmisc}
32 \usepackage[frenchb,english]{babel}
33 \makeatletter
34 \definecolor{tc@bckgcolor}{rgb}{1,1,0.875}
35 \definecolor{tc@keywordstc}{rgb}{0.7,0,0}
36 \definecolor{tc@keywordslatex}{rgb}{0,0,1}
37 \definecolor{tc@arguments}{rgb}{0,0,0}
38 \definecolor{tc@comments}{rgb}{0.5,0.5,0.5}
39 \lstset{%
40 language=[AlLaTeX]TeX,%
41 float=hbp,%
42 basicstyle=\footnotesize\ttfamily,%
43 identifierstyle=\color{tc@arguments},%
44 keywordstyle=\color{tc@keywordslatex},%
45 commentstyle=\itshape\color{tc@comments},%
46 columns=fixed,%
47 tabsize=4,%
48 frame=single,%
49 extendedchars=true,%
50 showspaces=false,%
51 showstringspaces=false,%
52 numbers=left,%
53 numberstyle=\tiny\ttfamily,%
54 breaklines=true,%
55 breakindent=3em,%
56 backgroundcolor=\color{tc@bckgcolor},%
57 breakautoindent=true,%
58 captionpos=t,%
59 xleftmargin=1em,%
60 xrightmargin=1em,%
61 lineskip=0pt,%
62 numbersep=1em,
63 classoffset=1,%
64 morekeywords={% les macros et commandes de tabularcalc
65 tccol,tclin,%
66 htablecalc,vtablecalc,%
67 tcnoshowmark,tcatbeginrow,tcresetcellcode,edefcellcode,defcellcode,%
68 tcsethrule,tcresethrule,tcsetcoltype,tcresetcoltype,%
69 tcprintvalue,tcprintresult,tclistsep,%
70 tc@evalexpr,tc@currentresult,%
71 tcprintroundresult,tcprintroundvalue,%
72 tcuseinfix,tcusepostfix,tcwritetofile},%
73 keywordstyle=\color{tc@keywordstc},%
74 classoffset=0}
75 \makeatother
76
77 \newcommand\guill[1]{\og{}#1\fg{}}
78 \newcommand\argu[1]{$\langle$\textit{#1}$\rangle$}
79 \newcommand\ARGU[1]{\texttt{\{}\argu{#1}\texttt{\}}}
80 \newcommand\arguC[1]{\texttt{[}\argu{#1}\texttt{]}}
81
82 \newcommand\tbcalc{\textsf{tabularcalc}\xspace}
83 \newcommand\verbinline{\lstinline[breaklines=false,basicstyle=\normalsize\ttfamily]}
84 \newcommand\mywidth{0.85\linewidth}
85
86 \begin{document}
87 \selectlanguage{english}
88 \npthousandthpartsep{\;}
89 \setlength{\parindent}{0pt}
90 \begin{titlepage}
91 \null\par\vfill
92 \begin{center}
93 \begin{minipage}{0.75\linewidth}
94 \begin{center}
95 \Huge\bfseries \tbcalc\par\vspace{5pt}
96 \small v\tabularcalcversion\par\vspace{25pt}
97 \normalsize User's manual
98 \end{center}
99 \end{minipage}
100 \end{center}
101 \vspace{1cm}
102 \begin{center}
103 Christian {\sc Tellechea}\par\small
104 \href{mailto:[email protected]}{\texttt{\textbf{[email protected]}}}\par\vspace{5pt}
105 \tabularcalcenglishdate
106 \end{center}
107 \vfill\hrulefill
108 \begin{center}
109 \begin{minipage}{0.85\linewidth}
110 \noindent
111 \hfill\textbf{\textit{Abstract}}\hfill{}\medskip\par
112 Given a list of numbers and one (or more) formulas, this package allows with an easy syntax to build a table of values, i.e a tables in which the first row contains the list of numbers, and the other rows contain the \emph{calculated} values of the formulas for each number of the list:
113 \begin{center}
114 \tcsethrule{\hline}{\hline\hline}{\hline}
115 \tcsetcoltype{|c|}{>{\centering\arraybackslash}m{1.5cm}|}
116 \htablecalc[3]{$x$}{x=-4,-2,0,2.25,7}
117 {$f(x)=2x-3$}{2*x-3}
118 {$x^2$}{x*x}
119 {$h(x)=\sqrt{x^2+1}$}{round(root(2,x*x+1),6)}
120 \end{center}
121 The table can be built either horizontally or vertically, and it is fully customizable (height of rows, columns and lines types). Moreover, the content of any cell can be easily hidden.\smallskip
122
123 Other local effects are possible since a command allows to execute any code in any particular cell.
124 \end{minipage}
125 \end{center}
126 \hrulefill\vfill{}
127 \end{titlepage}
128
129 \tableofcontents
130 \bigskip
131
132 \textbf{Attention}: this manual is the laboured\footnote{Indeed, I \textbf{do not speak english}, and I did my best to achieve this translation. Please, be indulgent, and try to take my place and imagine what it would be for you if you had to translate a manual into french, with some old poor school knowledge!} translation of the french manual.\medskip
133
134 Many thanks to Derek~\textsc{O'Connor} for the interest he brought to this package and the tests he made on beta versions. His pertinent suggestions of new features have been very useful. Without his advice, \tbcalc would not be what it is.\medskip
135
136 My thanks also to Le \textsc{Huu Dien Khue} who offered the translation of this manual into Vietnamese.
137
138 \section{Introduction}
139 \subsection{Presentation}
140 This package provides commands which make easy possible to build tables of calculated results coming from formulas for a given list of values. Tables are displayed using the standard \verb|tabular| environment.
141
142 \tbcalc needs \LaTeX$2\varepsilon$ and requires \href{http://www.ctan.org/tex-archive/macros/latex/contrib/fp/}{\texttt{\textbf{fp}}}, \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xstring/}{\texttt{\textbf{xstring}}} and \href{http://www.ctan.org/tex-archive/macros/latex/contrib/numprint/}{\texttt{\textbf{numprint}}} packages.\medskip
143
144 This package is not intended to compete with the excellent \href{http://www.ctan.org/tex-archive/graphics/pgf/contrib/pgfplots/}{\texttt{\textbf{pgfplotstable}}} package of Christian \textsc{Feuers\"anger} which has much more extended customization features, but in compensation, has a difficult to learn syntax. \tbcalc is meant to be more modest and gives priority to customization and easy syntax.\medskip
145
146
147 To display decimal numbers, in my view, nothing is better than the \href{http://www.ctan.org/tex-archive/macros/latex/contrib/numprint/}{\texttt{\textbf{numprint}}} package. The engine used to display decimal numbers can be changed or customized, see page~\pageref{persoaffichage}.\medskip
148
149 \subsection{The {\ttfamily fp} package}
150 For calculation, the computation of an expression such as \verb|2*x*x-5*x+7| when \hbox{\verb|x = 2.7|} is, with \TeX{}, a very complex thing that \tbcalc does not make. It leaves this task to a math engine provided by the \verb=fp= package. It provides all usual arithmetic, trigonometric and scientific operations. Moreover, infix and postfix notation are available: see the \href{http://www.ctan.org/get/macros/latex/contrib/fp/README}{\texttt{\textbf{README}}} file for the list of functions available for each notation.\medskip
151
152 I fixed 2 issues in the macro \verb=\FPpow= of the \verb=fp= package\footnote{I did not warn the author of {\ttfamily fp} and I did not ask his permission beacuse he does not maintain his package for a long time now.}. This macro is in charge of power calculation such as $a^b$.
153 \parindent2em
154 \begin{itemize}
155 \item first of all a spurious space appears when a power is computed. This space is fixed by \tbcalc
156 \item but there is another annoying issue: when \verb=fp= computes $a^b$ it uses this formula $a^b=\mathrm{e}^{b\ln a}$. There is an issue when $b$ is an integer and $a$ is negative. For example: $(-3)^2=\mathrm{e}^{2\ln(-3)}$. The logarithm of a negative number is undefined and \verb=fp= is unable to compute this simple calculation. This bug is fixed and \verb=fp= now computes this kind of calculation properly.
157 \end{itemize}\smallskip\parindent0pt
158
159 To enable \tbcalc fix these issues, the option "\verb=fixFPpow=" can be declared when calling the package:
160 \begin{center}
161 \begin{minipage}{\mywidth}
162 \begin{lstlisting}
163 \usepackage[fixFPpow]{tabularcalc}
164 \end{lstlisting}
165 \end{minipage}
166 \end{center}
167
168 \subsection{What is new?}
169 Unfortunaltely, there are some incompatibilities with other packages because the name of macros of \tbcalc was already used. I decided with a heavy heart to rename almost all the public macros, risking a probable incompatibility with the previous version. I apologize for this inconvenience. I rename them with "\verb=tc=" at their begining:
170 \begin{center}
171 \begin{tabular}{rl}
172 Old name&New name\\\hline
173 \verb=\noshowmark=&\verb=\tcnoshowmark= \\
174 \verb=\startline=&\verb=\tcatbeginrow=\\
175 \verb=\resetcellcode=&\verb=\tcresetcellcode=\\
176 \verb=\listsep=&\verb=\tclistsep=\\
177 \verb=\printvalue=&\verb=\tcprintvalue=\\
178 \verb=\printresult=&\verb=\tcprintresult=\\
179 \verb=\sethrule=&\verb=\tcsethrule=\\
180 \verb=\resethrule=&\verb=\tcresethrule=\\
181 \verb=\setcoltype=&\verb=\tcsetcoltype=\\
182 \verb=\resetcoltype=&\verb=\tcresetcoltype=
183 \end{tabular}
184 \end{center}
185
186 Here is the other new features for the users of the previous version:
187 \parindent3em
188 \begin{itemize}
189 \item calculation is made with \verb=fp= since \verb=pgfmath= has a poor precision;
190 \item values can be computed;
191 \item the code of a table can be exported in a file.
192 \end{itemize}\parindent0pt
193
194 \subsection{Vocabulary}
195 To define vocabulary for later use, in the simple tables below, red numbers are the "{\color{red}values}", blue numbers are the "{\color{blue}results}" and brown texts are the "{\color{brown}labels}". The cell on the up-left corner is the "cell(0,0)":
196 \begin{minipage}{0.5\linewidth}
197 \begin{center}
198 {\scriptsize Horizontal table}\par\nobreak\smallskip
199 \def\tcprintvalue#1{\color{red}$#1$}
200 \def\tcprintresult#1#2{\color{blue}$#1$}
201 \htablecalc[3]{cellule (0,0)}{x=-5,-1,0,3,10}{\color{brown}$x$}{x}{\color{brown}$2x$}{2*x}{\color{brown}$3x$}{3*x}
202 \end{center}
203 \end{minipage}%
204 \begin{minipage}{0.5\linewidth}
205 \begin{center}
206 {\scriptsize Vertical table}\par\nobreak\smallskip
207 \def\tcprintvalue#1{\color{red}$#1$}
208 \def\tcprintresult#1#2{\color{blue}$#1$}
209 \vtablecalc[3]{cellule (0,0)}{x=-5,-1,0,3,10}{\color{brown}$x$}{x}{\color{brown}$2x$}{2*x}{\color{brown}$3x$}{3*x}
210 \end{center}
211 \end{minipage}
212
213 \section{Basic features}
214 \subsection{Horizontal tables}
215 The macro \verbinline|\htablecalc| builds horizontal table whose first row contains the "values" and the other rows the "results". The syntax is:\smallskip
216
217 \setbox0=\hbox{\verbinline|\htablecalc|\arguC{n}}
218 \verbinline|\htablecalc|\arguC{n}\ARGU{cell (0,0)}\ARGU{variable=list of values}\par
219 \hskip\wd0\ARGU{label 1}\ARGU{formula 1}\par
220 \hskip\wd0\ARGU{label 2}\ARGU{formula 2}\par
221 \hskip\wd0\ldots\par
222 \hskip\wd0\ARGU{label n}\ARGU{formula n}\medskip
223
224 where :\parindent1.5em
225 \begin{itemize}
226 \item \argu{n} is the number of formulas (1 by default);
227 \item \argu{cell (0,0)} is the content of the cell (0,0);
228 \item \argu{variable} is the dummy variable in \argu{formula i} used to compute the results;
229 \item \argu{list of values} is the list of values, separated with a comma. Two consecutive commas make an empty column;
230 \item \argu{label i} is the $i{}^\text{th}$ label;
231 \item \argu{formula i} is the $i^\text{th}$ formula, used to calculate the reults of the $i^\text{th}$ row.
232 \end{itemize}\parindent0em
233 \medskip
234
235 In the list of values, a comma separates values by default. This comma is the expansion of \verbinline|\tclistsep|, and can be changed to "|" for example with \verbinline=\def\tclistsep{|}=\medskip
236
237 For a first example, here is a try to obtain the table of the first page:
238 \begin{center}
239 \begin{minipage}{\mywidth}
240 \begin{lstlisting}
241 \htablecalc[3]{$x$}{x=-4,-2,0,2.25,7}
242 {$f(x)=2x-3$}{2*x-3}
243 {$x^2$}{x*x}
244 {$h(x)=\sqrt{x^2+1}$}{round(root(2,x*x+1),6)}
245 \end{lstlisting}
246 \end{minipage}
247 \htablecalc[3]{$x$}{x=-4,-2,0,2.25,7}
248 {$f(x)=2x-3$}{2*x-3}
249 {$x^2$}{x*x}
250 {$h(x)=\sqrt{x^2+1}$}{round(root(2,x*x+1),6)}
251 \end{center}
252 This table is not strictly the same than the table of the first page: columns containing results do not have the same width and the line at the bottom of the first row is different. We will see later how to customize this.
253
254 \subsection{Vertical tables}
255 The macro \verbinline|\vtablecalc| builds vertical table whose first column contains the "values" and the other rows the "results". The syntax is:\smallskip
256
257 \setbox0=\hbox{\verbinline|\vtablecalc|\arguC{n}}
258 \verbinline|\vtablecalc|\arguC{n}\ARGU{cell (0,0)}\ARGU{variable=list of values}\par
259 \hskip\wd0\ARGU{label 1}\ARGU{formula 1}\par
260 \hskip\wd0\ARGU{label 2}\ARGU{formula 2}\par
261 \hskip\wd0\ldots\par
262 \hskip\wd0\ARGU{label n}\ARGU{formula n}\medskip
263
264 where :\parindent1.5em
265 \begin{itemize}
266 \item \argu{n} is the number of formulas (1 by default);
267 \item \argu{cell (0,0)} is the content of the cell (0,0);
268 \item \argu{variable} is the dummy variable in \argu{formula i} used to compute the results;
269 \item \argu{list of values} is the list of values, separated with a comma. Two consecutive commas make an empty column;
270 \item \argu{label i} is the $i{}^\text{th}$ label;
271 \item \argu{formula i} is the $i^\text{th}$ formula, used to calculate the reults of the $i^\text{th}$ row.
272 \end{itemize}\parindent0em
273 \medskip
274
275 Here is the previous table, but vertically built:\par\nobreak
276 \begin{center}
277 \begin{minipage}{\mywidth}
278 \begin{lstlisting}
279 \vtablecalc[3]{$x$}{y=-4,-2,0,2.25,7}
280 {$f(x)=2x-3$}{2*y-3}
281 {$x^2$}{y*y}
282 {$h(x)=\sqrt{x^2+1}$}{round(root(2,y*y+1),6)}
283 \end{lstlisting}
284 \end{minipage}
285
286 \vtablecalc[3]{$x$}{y=-4,-2,0,2.25,7}
287 {$f(x)=2x-3$}{2*y-3}
288 {$x^2$}{y*y}
289 {$h(x)=\sqrt{x^2+1}$}{round(root(2,y*y+1),6)}
290 \end{center}
291
292 \subsection{How to hide numbers}\label{masquercellules}
293 The content of any cell can be hidden, as well as in a horizontal or vertical table.
294
295 \subsubsection{Hide a value}
296 In the list of values, a "\verb|@|" before a value hides it. In the following example, the second and fifth values are hidden:\smallskip
297 \begin{center}
298 \begin{minipage}{\mywidth}
299 \begin{lstlisting}
300 \htablecalc[3]{$x$}{x=-4,@-2,0,2.25,@7}
301 {$f(x)=2x-3$}{2*x-3}
302 {$x^2$}{x*x}
303 {$h(x)=\sqrt{x^2+1}$}{round(root(2,x*x+1),6)}
304 \end{lstlisting}
305 \end{minipage}
306
307 \htablecalc[3]{$x$}{x=-4,@-2,0,2.25,@7}
308 {$f(x)=2x-3$}{2*x-3}
309 {$x^2$}{x*x}
310 {$h(x)=\sqrt{x^2+1}$}{round(root(2,x*x+1),6)}
311 \end{center}
312 \medskip
313
314 Behind the scene, the "\verb|@|" token is the expansion of \verbinline|\tcnoshowmark|. To change this token to "=", this simple code does the job: \verbinline|\def\tcnoshowmark{=}|
315
316 \subsubsection{Hide a result}
317 If a value is followed by $[a_1][a_2]\ldots[a_n]$ where the numbers $a_i$ are increasing, the results number $a_1,a_2,\ldots,a_n$ will be hidden. If a number $a_j=0$, all the others $a_k$ where $k>j$ will be ignored and the results following the previous hidden result will be hidden.\medskip
318
319 In the example, with the list of values "\verb|-4[2],-2,0[1][3],2.25[0],7[2][0]|", we are going to:\parindent1.5em
320 \begin{itemize}
321 \item hide the second result of the first value with "\verb|-4[2]|"
322 \item let all the results visible for the second value with "\verb|-2|"
323 \item hide the results number 1 and 3 of the third value with "\verb|0[1][3]|"
324 \item hide all the results of the fourth value with "\verb|2.25[0]|"
325 \item for the fifth value, hide all the results from the second with "\verb|7[2][0]|"
326 \end{itemize}\parindent0em
327
328 \begin{center}
329 \begin{minipage}{\mywidth}
330 \begin{lstlisting}
331 \htablecalc[3]{$x$}{x=-4[2],-2,0[1][3],2.25[0],7[2][0]}
332 {$f(x)=2x-3$}{2*x-3}
333 {$x^2$}{x*x}
334 {$h(x)=\sqrt{x^2+1}$}{round(root(2,x*x+1),6)}
335 \end{lstlisting}
336 \end{minipage}
337
338 \htablecalc[3]{$x$}{x=-4[2],-2,0[1][3],2.25[0],7[2][0]}
339 {$f(x)=2x-3$}{2*x-3}
340 {$x^2$}{x*x}
341 {$h(x)=\sqrt{x^2+1}$}{round(root(2,x*x+1),6)}
342 \end{center}
343 This feature can be mixed with "\verb|@|" to hide a value and results.
344
345 \subsection{Height of rows}
346 At the begining of a row, when it is displayed, the macro \verbinline|\tcatbeginrow| runs.
347
348 By default, this command is defined by: \verbinline|\def\tcatbeginrow{\rule[-1.2ex]{0pt}{4ex}}|. Its expansion is a "strut" which adjusts the height of the row. Here is this strut, made visible before the lettre "a": \rule[-1.2ex]{2pt}{4ex}a\medskip
349
350 Any other action, or another strut can be defined:
351 \begin{center}
352 \begin{minipage}{\mywidth}
353 \begin{lstlisting}
354 \def\tcatbeginrow{%
355 {\bfseries\number\tclin)\ }%
356 }
357 \htablecalc[3]{$x$}{x=-4,-2,0,2.25,7}
358 {$f(x)=2x-3$}{2*x-3}
359 {$x^2$}{x*x}
360 {$h(x)=\sqrt{x^2+1}$}{round(root(2,x*x+1),6)}
361 \end{lstlisting}
362 \end{minipage}
363
364 \def\tcatbeginrow{%
365 {\bfseries\number\tclin)\ }%
366 }
367 \htablecalc[3]{$x$}{x=-4,-2,0,2.25,7}
368 {$f(x)=2x-3$}{2*x-3}
369 {$x^2$}{x*x}
370 {$h(x)=\sqrt{x^2+1}$}{round(root(2,x*x+1),6)}
371 \end{center}
372 Here, no strut is defined (the lines recover their natural height), and at line 2 of the code, the number of the row (contained in the counter \verbinline|\tclin|) is displayed with bold chars.
373
374 \subsection{Horizontal lines}
375 \tbcalc allows to define 3 types of horizontal lines. The macro \verbinline|\tcsethrule| has 3 arguments:
376
377 \parindent1.5em
378 \begin{itemize}
379 \item the first that we call "line 0" is displayed on the top and bottom of the table;
380 \item the second, "line 1", is displayed at the bottom of the first row;
381 \item the third, "other lines", is displayed at the bottom of the other rows, excepted the last one which is the bottom of the table.
382 \end{itemize}\parindent0em
383 Here is the syntax:
384
385 \verbinline|\tcsethrule|\ARGU{line 0}\ARGU{line 1}\ARGU{other lines}
386 \medskip
387
388 By default, the three arguments contain \verbinline|\hline|.\medskip
389
390 This is an example in which the "line 1" is a double line, and the "other lines" are not drawn:
391 \begin{center}
392 \begin{minipage}{\mywidth}
393 \begin{lstlisting}
394 \tcsethrule{\hline}{\hline\hline}{}
395 \htablecalc[3]{$x$}{x=-2,-1,0,1,2,3}
396 {$2x$}{2*x}
397 {$3x$}{3*x}
398 {$4x$}{4*x}
399 \end{lstlisting}
400 \end{minipage}
401
402 \tcsethrule{\hline}{\hline\hline}{}
403 \htablecalc[3]{$x$}{x=-2,-1,0,1,2,3}
404 {$2x$}{2*x}
405 {$3x$}{3*x}
406 {$4x$}{4*x}
407 \end{center}
408
409 The command \verbinline|\tcresethrule| resets the defined lines and restores the default lines.
410
411 \subsection{Customizing columns}
412 \subsubsection{Vertical lines}
413 2 types of column can be defined: the type of the left one and the type of others columns. The command \verbinline|\tcsetcoltype| has an optionnal argument and 2 mandatory arguments:
414 \begin{itemize}
415 \item the optional argument, empty by default, defines the vertical lines at the right of the table;
416 \item the "type 1" of the first column, set to "\verb-|c|-" by default;
417 \item the "type 2" of the other colunms, set to "\verb-c|-" by default.
418 \end{itemize}\medskip
419
420 The syntax of the command is:\par\nobreak
421 \verbinline|\tcsetcoltype|\arguC{right lines}\ARGU{type 1}\ARGU{type 2}\medskip
422
423 In this example, a double line is displayed at the right of the table (\verb=[||]=), and on the edges of the first column (\verb=||c||=). The other columns do not have vertical lines (\verb|c|):
424 \begin{center}
425 \begin{minipage}{\mywidth}
426 \begin{lstlisting}
427 \tcsetcoltype[||]{||c||}{c}
428 \htablecalc[3]{$x$}{x=-2,-1,0,1,2,3}
429 {$2x$}{2*x}
430 {$3x$}{3*x}
431 {$4x$}{4*x}
432 \end{lstlisting}
433 \end{minipage}
434
435 \tcsetcoltype[||]{||c||}{c}
436 \htablecalc[3]{$x$}{x=-2,-1,0,1,2,3}
437 {$2x$}{2*x}
438 {$3x$}{3*x}
439 {$4x$}{4*x}
440 \end{center}
441
442 \verbinline|\tcresetcoltype| restores the default vertical lines.
443
444 \subsubsection{Width of columns}
445 Instead of the usual column type "\verb|c|" used until now, other types of column can be specified: for example, the "\verb|m|" type of the \href{http://www.ctan.org/tex-archive/graphics/pgf/base/latex/pgf/basiclayer/}{\texttt{\textbf{array}}} package allows to set the width of columns this way: \verb|m{1.5cm}|.\medskip
446
447 In this example, the first column is right aligned, and the other columns are centered and \numprint[cm]{1.5} width:
448 \begin{center}
449 \begin{minipage}{\mywidth}
450 \begin{lstlisting}
451 \usepackage{array}
452 \tcsetcoltype{|r|}{>{\centering\arraybackslash}m{1.5cm}|}
453 \htablecalc[3]{$x$}{x=-4,-2,0,2.25,7}
454 {$f(x)=2x-3$}{2*x-3}
455 {$x^2$}{x*x}
456 {$h(x)=\sqrt{x^2+1}$}{round(root(2,x*x+1),6)}
457 \end{lstlisting}
458 \end{minipage}
459
460 \tcsetcoltype{|r|}{>{\centering\arraybackslash}m{1.5cm}|}
461 \htablecalc[3]{$x$}{x=-4,-2,0,2.25,7}
462 {$f(x)=2x-3$}{2*x-3}
463 {$x^2$}{x*x}
464 {$h(x)=\sqrt{x^2+1}$}{round(root(2,x*x+1),6)}
465 \end{center}
466
467 \section{How to compute the values?}
468 When values can be calculated with a math formula, it may be more simple to write the formula than all the values. This code:
469 \begin{center}
470 \begin{minipage}{\mywidth}
471 \begin{lstlisting}
472 \htablecalc[2]{$x$}{x=-3,-1,1,3,5,7,9,11,13}
473 {$2x$}{2*x}
474 {$x^2$}{x*x}
475 \end{lstlisting}
476 \end{minipage}
477 \end{center}
478 can be replaced by this shorter oneo:
479 \begin{center}
480 \begin{minipage}{\mywidth}
481 \begin{lstlisting}
482 \htablecalc[2]{$x$}{x=a;a=-3:13[2]}
483 {$2x$}{2*x}
484 {$x^2$}{x*x}
485 \end{lstlisting}
486 \end{minipage}
487 \end{center}
488 The presence of a "\verb=;=" changes the analysis of the argument: on the right of "\verb=;=" we say that the dummy variable "\verb=a=" varies between $-3$ and 13 with a step of 2. Therefore is an \emph{odd} integer. On the left of "\verb=;=" we say that the dummy variable --~here \verb=x=~-- involved in the formulas used to compute the results is equal to \verb=a= and consequently the values are odd integers between $-3$ and 13.
489
490 These values could have been generated with this argument \verb|{x=2*a+1:a=-2:6}| (the step is 1 by default) or this other one \verb|{x=2*a-3;a=0:8}|, or another one because there are several way to generate a set of values.\bigskip
491
492 When using an argument with "\verb=;=", the feature enabling to hide cells (see page~\pageref{masquercellules}) is not available. Moreover, the user should be aware of the number of generated values to avoid huge tables.\medskip
493
494 With a "\verb=;=", the syntax of the argument is:\par\smallskip\nobreak
495 \hfill\argu{variable 1}\verb|=|\argu{formula}\verb|;|\argu{variable 2}\verb|=|\argu{min}\verb|:|\argu{max}\arguC{step}\hfill{}\smallskip
496
497 where:
498 \begin{itemize}
499 \item \argu{variable 1} is the dummy variable involved in the formulas used to compute the results;
500 \item \argu{variable 2} is the dummy variable involved in the formulas used to compute the values; it must be different from \argu{variable 1};
501 \item \argu{formula} is the formula used to compute the values. The variable in this formula is \argu{variable 2};
502 \item \argu{min}\verb|:|\argu{max} is the interval in which \argu{variable 2} varies;
503 \item \argu{step} is the step added to \argu{variable 2} until it reaches \argu{max} or more. It is optional and its defaul value is 1. It must be different from 0.
504 \end{itemize}\parindent0em
505 \medskip
506
507 There are many different ways to generate the same set of values.
508
509 For example, the values \texttt{\{0,1,2,3,4,5,6,7,8,9,10\}} can be generated with:
510
511 \parindent2em
512 \begin{itemize}
513 \item \verb|{z=x;x=0:10}| and \og\verb=z=\fg{} will be the dummy variable in formulas;
514 \item \verb|{n=2*a;a=0:5[0.5]}| and \og\verb=n=\fg{} will be the dummy variable in formulas;
515 \item \verb|{x=y/10;y=0:100[10]}| and \og\verb=x=\fg{} will be the dummy variable in formulas;
516 \end{itemize}
517 \parindent0pt\medskip
518
519 The value of \argu{step} and \argu{min}\verb|:|\argu{max} must be coherent: \verb|0:10[-1]| will provoke an error message from \tbcalc!\medskip
520
521 This is an example using the trigonometric functions of \verb|fp|:
522 \begin{center}
523 \begin{minipage}{\mywidth}
524 \begin{lstlisting}
525 \htablecalc[6]{$x$\ [deg]}{x=a;a=15:75[15]}
526 {$\sin x$}{round(sin(x*pi/180),6)}
527 {$\cos x$}{round(cos(x*pi/180),6)}
528 {$\tan x$}{round(tan(x*pi/180),6)}
529 {$\sin^2x$}{round(sin(x*pi/180)^2,6)}
530 {$\cos^2x$}{round(cos(x*pi/180)^2,6)}
531 {$\tan^2x$}{round(tan(x*pi/180)^2,6)}
532 \end{lstlisting}
533 \end{minipage}
534
535 \htablecalc[6]{$x$\ [deg]}{x=a;a=15:75[15]}
536 {$\sin x$}{round(sin(x*pi/180),6)}
537 {$\cos x$}{round(cos(x*pi/180),6)}
538 {$\tan x$}{round(tan(x*pi/180),6)}
539 {$\sin^2x$}{round(sin(x*pi/180)^2,6)}
540 {$\cos^2x$}{round(cos(x*pi/180)^2,6)}
541 {$\tan^2x$}{round(tan(x*pi/180)^2,6)}
542 \end{center}
543 \medskip
544
545 And here is another table displaying powers of 10, their decimal logarithm, their square root and their inverse:
546 \begin{center}
547 \begin{minipage}{\mywidth}
548 \begin{lstlisting}
549 \htablecalc[3]{Power of 10}{x=round(10^n,4);n=-3:3}
550 {Decimal logarithm}{ln(x)/ln(10)}
551 {Square root}{round(root(2,x),3)}
552 {Inverse}{1/x}
553 \end{lstlisting}
554 \end{minipage}
555
556 \htablecalc[3]{Power of 10}{x=round(10^n,4);n=-3:3}
557 {Decimal logarithm}{ln(x)/ln(10)}
558 {Square root}{round(root(2,x),3)}
559 {Inverse}{1/x}
560 \end{center}
561
562 \section{Advanced customization}
563 \subsection{Put a code in a cell}
564 The command \verbinline|\defcellcode| allows to execute any code in a unique cell, or in every cells of a row or in every cells of a column. Cells have the following coordinates:
565
566 \begin{center}
567 \def\tcprintvalue#1{}\def\tcprintresult#1#2{}
568 \edefcellcode{}{}{(\number\tclin,\number\tccol)}
569 \htablecalc[3]{}{x=1,2,3,4,5}{}{x}{}{x}{}{x}
570 \end{center}
571 \medskip
572
573 Here is the syntax:
574
575 \verbinline|\defcellcode|\ARGU{number 1}\ARGU{number 2}\ARGU{code}
576 \smallskip
577
578 where :\parindent1.5em
579 \begin{itemize}
580 \item \argu{number 1} is the first coordinate (row number);
581 \item \argu{nombre 2} is the second coordinate (column number);
582 \item \argu{code} is the code executed \emph{when the specified cell is displayed};
583 \item if \argu{number 1} is empty, all the rows are concerned;
584 \item if \argu{nombre 2} is empty, all the columns are concerned;
585 \end{itemize}\parindent0em
586 \smallskip
587
588 Behind the scene, the first coordinate --~the row number~-- is the counter \verbinline{\tclin}, and the number of the column is the counter \verbinline{\tccol}.\smallskip
589
590 Notice that the code is expanded when the cell is displayed, and at that moment, the counter \verbinline|\tccol| does not contain anymore the column number of the cell: you should \textbf{not} use \verbinline|\tccol| in the code definied with the macro \verbinline|\defcellcode|. On the other hand, the counter \verbinline|\tclin| does contain the reliable number of the current line.
591
592 If codes are defined with \verbinline|\defcellcode| and several of them are runned in the same cell, they will be executed in the same order of their definition.\medskip
593
594 In this example, with the package \verb|xcolor|, the cell (2~,~3) is colored in blue, the row 1 in red and the column 4 in brown:
595 \begin{center}
596 \begin{minipage}{\mywidth}
597 \begin{lstlisting}
598 \usepackage{color}
599 \defcellcode{2}{3}{\color{blue}}
600 \defcellcode{1}{}{\color{red}}
601 \defcellcode{}{4}{\color{brown}}
602 \htablecalc[3]{$x$}{x=-2,-1,0,1,2,3}
603 {$2x$}{2*x}
604 {$3x$}{3*x}
605 {$4x$}{4*x}
606 \end{lstlisting}
607 \end{minipage}
608
609 \defcellcode{2}{3}{\color{blue}}
610 \defcellcode{1}{}{\color{red}}
611 \defcellcode{}{4}{\color{brown}}
612 \htablecalc[3]{$x$}{x=-2,-1,0,1,2,3}
613 {$2x$}{2*x}
614 {$3x$}{3*x}
615 {$4x$}{4*x}
616 \end{center}
617
618 Notice that the cell (1~,~4) whose content is {\color{brown}\numprint{2}} has been colored in red (line 3 of the code) \emph{and then} in brown (line 4 of the code).\bigskip
619
620 Another similar command is provided to execute code in a cell: \verbinline|\edefcellcode|. With this command, the code is expanded a first time with an \verbinline|\edef|\footnote{If a command must not be expanded at this time, a \texttt{\string\noexpand} must be put before it.} when cell is built: at this time, the counter \verbinline|\tccol| does contain the number of the column. Then, the expansion obtained is runned a second time when cell is displayed.\medskip
621
622 In this example, text is blue if the column number is greater than 2:
623 \begin{center}
624 \begin{minipage}{\mywidth}
625 \begin{lstlisting}
626 \usepackage{color}
627 \edefcellcode{}{}{%
628 \ifnum\tccol>2 \noexpand\color{blue}\fi}
629 \htablecalc[3]{$x$}{x=-2,-1,0,1,2,3}
630 {$2x$}{2*x}
631 {$3x$}{3*x}
632 {$4x$}{4*x}
633 \end{lstlisting}
634 \end{minipage}
635
636 \edefcellcode{}{}{%
637 \ifnum\tccol>2 \noexpand\color{blue}\fi}
638 \htablecalc[3]{$x$}{x=-2,-1,0,1,2,3}
639 {$2x$}{2*x}
640 {$3x$}{3*x}
641 {$4x$}{4*x}
642 \end{center}
643
644 \subsection{Customizing the number display}
645 \subsubsection{Macros {\ttfamily\textbackslash printvalue} and {\ttfamily\textbackslash printresult}}\label{persoaffichage}
646 To display a value, the macro \verbinline|\tcprintvalue| is called. It requires one argument: the number to display which comes from \verb|pgfcalc|. This argument has a raw format: \verb|12345.6789| for "\numprint{12345.6789}".
647
648 By default, \verbinline|\tcprintvalue| is defined with this code:\par\nobreak\smallskip
649 \hfill\verbinline|\def\tcprintvalue#1{\numprint{#1}}|\hfill{}
650 \smallskip
651
652 Notice that the macro \verb|\numprint| is called to print the number.\bigskip
653
654 To display a result, the macro \verbinline|\tcprintresult| is called. It requires \textbf{two} arguments: the first is the number to display in raw format coming from \verb|pgfcalc| and the second is the value used to compute the result.
655
656 By default, \verbinline|\tcprintresult| is defined with this code:\par\nobreak\smallskip
657 \hfill\verbinline|\def\tcprintresult#1#2{\numprint{#1}}|\hfill{}
658 \smallskip
659
660 Notice that the argument \verb|#2| (the value) is ignored by \verbinline|\tcprintresult|. But it is easy to imagine an example in which it would not be. In this example, a red "\verb|X|" is printed if the lenght of the square (which is argument \verb|#2|) is negative. If not, the result with the unit is printed. For the pleasure of customization, any result less than 10 is printed in blue:\par\nobreak
661 \begin{center}
662 \begin{minipage}{\mywidth}
663 \begin{lstlisting}
664 \usepackage{color}
665 \def\tcprintresult#1#2{%
666 \ifdim#1pt<10pt\color{blue}\fi
667 \ifdim#2pt<0pt
668 \color{red}\texttt{X}%
669 \else
670 \numprint[cm^2]{#1}%
671 \fi}
672 \htablecalc{length}{x=0.7,-10,3,-2,5,12}
673 {Area of square}{x*x}
674 \end{lstlisting}
675 \end{minipage}
676 \smallskip
677 \def\tcprintresult#1#2{%
678 \ifdim#1pt<10pt\color{blue}\fi
679 \ifdim#2pt<0pt
680 \color{red}\texttt{X}%
681 \else
682 \numprint[cm^2]{#1}%
683 \fi}
684 \htablecalc{length}{x=0.7,-10,3,-2,5,12}{Area of square}{x*x}
685 \end{center}
686
687 \subsubsection{How to control the rounding of numbers}
688 Results of calculation coming from \verb=fp= have a good precision, and decimal resultas have often many digits. Here is, for example the decimal value of $\sqrt{10}$, computed by \verb=fp=:
689 \begin{center}\FPeval\truc{root(2,10)}\numprint\truc\end{center}
690 The first 11 digits are right, the 12${}^{\text{th}}$ is rounded.\medskip
691
692 To display results, the \verb|round(number,precision)| of \verb=fp= can be used. To avoid writing many times \verb|round(number,precision)| in the code, \tbcalc provides \verbinline|\tcprintroundresult|. Its mandatory argument is the precision of the decimal part. The starred macro \verbinline|\tcprintroundresult*| fills the decimal part with "0" if necessary. If the argument is empty, no rounding is done (default behaviour).
693 \begin{center}
694 \begin{minipage}{0.5\linewidth}
695 \begin{center}
696 \begin{lstlisting}
697 \tcprintroundresult{3}
698 \htablecalc{$x$}{x=2,3,4,5}
699 {$\sqrt{x}$}{root(2,x)}
700 \end{lstlisting}
701 \tcprintroundresult{3}
702 \htablecalc{$x$}{x=2,3,4,5}
703 {$\sqrt{x}$}{root(2,x)}
704 \end{center}
705 \end{minipage}%
706 \begin{minipage}{0.5\linewidth}
707 \begin{center}
708 \begin{lstlisting}
709 \tcprintroundresult*{3}
710 \htablecalc{$x$}{x=2,3,4,5}
711 {$\sqrt{x}$}{root(2,x)}
712 \end{lstlisting}
713 \tcprintroundresult*{3}
714 \htablecalc{$x$}{x=2,3,4,5}
715 {$\sqrt{x}$}{root(2,x)}
716 \end{center}
717 \end{minipage}
718 \end{center}
719 To round values, it is not adviced to use the \verb|round| function of \verb=fp= since the rounded values will be used to compute the results, and rounding errors may add up. In this example, the values (square roots of integers) are the are rounded at $10^{-2}$, and the results are the square of values:
720 \begin{center}
721 \begin{minipage}{0.75\linewidth}
722 \begin{lstlisting}
723 \htablecalc{squre roots}{x=round(root(2,k),2);k=2:4}
724 {square}{x*x}
725 \end{lstlisting}
726 \end{minipage}
727
728 \htablecalc{squre roots}{x=round(root(2,k),2);k=2:4}
729 {square}{x*x}
730 \end{center}
731 It is obvious that rounding errors are taken into account to compute results.
732
733 It is better to use \verbinline|\tcprintroundvalue| which works like \verbinline|\tcprintroundresult|:
734 \begin{center}
735 \begin{lstlisting}
736 \tcprintroundvalue{2}
737 \htablecalc{squre roots}{x=root(2,k);k=2:4}
738 {square}{x*x}
739 \end{lstlisting}
740 \tcprintroundvalue{2}
741 \htablecalc{squre roots}{x=root(2,k);k=2:4}
742 {square}{x*x}
743 \end{center}
744 The results --~which are not rounded~-- are much nearer the expected integers.
745
746 \subsubsection{For the fun}
747 Other uses of this package can be designed, such as the drawing of a chess board whose squares are \numprint[cm]{0.5} long:\par\nobreak\parindent1.5em
748 \begin{itemize}
749 \item on line 1, the separators of the table are initialzes at \verb|0pt| to obtain the length of \numprint[cm]{0.5};
750 \item the display of values and results is cancelled at line 2;
751 \item horizontal lines of the top and bottom of the table are drawn (line 3), and vertical lines of the left and right (line 4);
752 \item a strut \numprint[cm]{0.5} height is defined to be displayed at the begining of every row (line 5);
753 \item finally, if the sum of the row number and the column number is odd, the square is filled of gray (line 7 and 8).
754 \end{itemize}\parindent0em
755 \begin{center}
756 \begin{minipage}{\mywidth}
757 \begin{lstlisting}
758 \arraycolsep=0pt\tabcolsep=0pt
759 \def\tcprintvalue#1{}\def\tcprintresult#1#2{}
760 \tcsethrule{\hline}{}{}
761 \tcsetcoltype[|]{|m{0.5cm}}{m{0.5cm}}
762 \def\tcatbeginrow{\rule[-0.2cm]{0pt}{0.3cm}}
763 \edefcellcode{}{}{%
764 \ifodd\numexpr\tccol+\tclin\relax
765 \noexpand\cellcolor{lightgray}\fi
766 }
767 \htablecalc[7]{}{x=1,2,3,4,5,6,7}
768 {}{x}{}{x}{}{x}{}{x}{}{x}{}{x}{}{x}
769 \end{lstlisting}
770 \end{minipage}
771
772 \arraycolsep=0pt\tabcolsep=0pt
773 \def\tcprintvalue#1{}\def\tcprintresult#1#2{}
774 \tcsethrule{\hline}{}{}
775 \tcsetcoltype[|]{|m{0.5cm}}{m{0.5cm}}
776 \def\tcatbeginrow{\rule[-0.2cm]{0pt}{0.3cm}}
777 \edefcellcode{}{}{%
778 \ifodd\numexpr\tccol+\tclin\relax
779 \noexpand\cellcolor{lightgray}\fi
780 }
781 \htablecalc[7]{}{x=1,2,3,4,5,6,7}
782 {}{x}{}{x}{}{x}{}{x}{}{x}{}{x}{}{x}
783 \end{center}
784
785 \section{Export a table in a file}
786 No matter how customizable \tbcalc is, some tables need fine adjustments by the user at the keyboard. The \verbinline=\tcwritetofile=\ARGU{filename} has a mandatory argument which is the name of a file without extension. The next \verbinline=\htablecalc= or \verbinline=\vtablecalc= after this command will not display the tables, but a file named \argu{filename}\verb|.tex| will be written in the current directory, and its content will be the code of the table.\medskip
787
788 Here is an example:
789 \begin{center}
790 \begin{minipage}{\mywidth}
791 \begin{lstlisting}
792 \tcwritetofile{mytable}
793 \defcellcode{}{2}{\color{blue}}
794 \htablecalc[2]{$x$}{x=k;k=0:4}
795 {$2x$}{2*x}
796 {$x^2$}{x*x}
797 \tcresetcellcode
798 \end{lstlisting}
799 \end{minipage}
800 \end{center}
801 \tcwritetofile{mytable}
802 \defcellcode{}{2}{\color{blue}}
803 \htablecalc[2]{$x$}{x=k;k=0:4}
804 {$2x$}{2*x}
805 {$x^2$}{x*x}
806 \tcresetcellcode
807
808 A file \og\verb=mytable.tex=\fg{} is created in the current directory and its content is the code of the table:
809 \begin{center}
810 \begin{minipage}{\mywidth}
811 \begin{lstlisting}
812 \begin {tabular}{|c|*{5}{c|}}\hline
813 \tcatbeginrow $x$&\tcprintvalue {0}&\color {blue}\tcprintvalue {1}&\tcprintvalue {2}&\tcprintvalue {3}&\tcprintvalue {4}\\\hline
814 \tcatbeginrow $2x$&\tcprintresult {0}{0}&\color {blue}\tcprintresult {2}{1}&\tcprintresult {4}{2}&\tcprintresult {6}{3}&\tcprintresult {8}{4}\\ \hline
815 \tcatbeginrow $x^2$&\tcprintresult {0}{0}&\color {blue}\tcprintresult {1}{1}&\tcprintresult {4}{2}&\tcprintresult {9}{3}&\tcprintresult {16}{4}\\ \hline
816 \end {tabular}
817 \end{lstlisting}
818 \end{minipage}
819 \end{center}
820 The user can modify this code, and then this file can be included in the \LaTeX{} code with:
821 \begin{center}
822 \begin{minipage}{\mywidth}
823 \begin{lstlisting}
824 \input{mytable.tex}
825 \end{lstlisting}
826 \end{minipage}
827 \end{center}
828 and here is the result:
829 \begin{center}
830 \input{mytable.tex}
831 \end{center}
832
833 \section{Use infix or postfix notation}
834 Infix or postfix notation can be used since \verb=\FPeval= accepts both. In this exaple, the same table is generated with each notation. The result is exactly the same since only notation changes while math engine is the same:
835 \begin{center}
836 \begin{minipage}{\mywidth}
837 \begin{lstlisting}
838 \tcprintroundvalue{6}
839 \tcprintroundresult{6}
840 With infix notation\par
841 \htablecalc[3]{$x=10^k$ o\`u $k\in[-3;3]$}{x=10^k;k=-3:3}
842 {$\log x$}{ln(x)/ln(10)}
843 {$\sqrt{x}$}{root(2,x)}
844 {$\frac{1}{x}$}{1/x}
845
846 \medskip
847 With postfix notation\par
848 \htablecalc[3]{$x=10^k$ o\`u $k\in[-3;3]$}{x=k 10 pow;k=-3:3}
849 {$\log x$}{x ln 10 ln div}
850 {$\sqrt{x}$}{2 x root}
851 {$\frac{1}{x}$}{1 x div}
852 \end{lstlisting}
853 \end{minipage}
854
855 \tcprintroundvalue{6}
856 \tcprintroundresult{6}
857 With infix notation\par
858 \htablecalc[3]{$x=10^k$ o\`u $k\in[-3;3]$}{x=10^k;k=-3:3}
859 {$\log x$}{ln(x)/ln(10)}
860 {$\sqrt{x}$}{root(2,x)}
861 {$\frac{1}{x}$}{1/x}
862
863 \medskip
864 With postfix notation\par
865 \htablecalc[3]{$x=10^k$ o\`u $k\in[-3;3]$}{x=k 10 pow;k=-3:3}
866 {$\log x$}{x ln 10 ln div}
867 {$\sqrt{x}$}{2 x root}
868 {$\frac{1}{x}$}{1 x div}
869 \end{center}
870 If possible and if the user is used to it, the postfix notation should be prefered beacuse it often saves computation times. Indeed, to compute $\cos x(1-\cos x)$, here is the infix notation:
871 \begin{center}
872 \begin{minipage}{\mywidth}
873 \begin{lstlisting}
874 cos(x)*(1-cos(x))
875 \end{lstlisting}
876 \end{minipage}
877 \end{center}
878 Obviously, $\cos x$ is unnecessarily computed twice which slows down the compilation.\smallskip
879
880 With the postfix notation, it is computed once:
881 \begin{center}
882 \begin{minipage}{\mywidth}
883 \begin{lstlisting}
884 x cos copy 1 swap sub mul
885 \end{lstlisting}
886 \end{minipage}
887 \end{center}
888
889 \bigskip
890 \begin{center}
891 $\star$\par
892 $\star$\quad$\star$
893 \end{center}
894 \bigskip\bigskip
895
896 That's all, I hope you will find this package useful!\par\nobreak
897 Please, send me an \href{mailto:[email protected]}{\texttt{\textbf{email}}} if you find a bug or if you have any idea of improvement\ldots\par\nobreak\medskip
898 Christian \textsc{Tellechea}
899 \end{document}