TikZ: variable in calc syntaTikZ: variable in calc syntax 1 x 1 enter image description here


A quick tutorial to make a variation table with the tkz-tab package. If you want supplements say so.

Initialization of the table: \tkzTabInit

For example the first braces define the data in the left column of the table, the second braces define the data in the first row of the second column. (example from tkz-tab manual)

\tikz \tkzTabInit{$x$ /.8 , $f(x)$ /.8}{$0$ , $+\infty$};


In these two columns:

  • the rows are separated by commas.
  • The first line is defined by $x$. The slash / separator separates the contents of the line from its height. Thus, here, both lines have a height of 0.8.

To obtain a three-line table, write:

\tkzTabInit{$x$ /1,
            $f'(x)$ /1,
            $f(x)$ /1}% end of the first left column 
           {$-\infty$,$-2$,$0,$,$+\infty$} % first line of right column


Add content with the \tkzTabLine macro

To add the data from the second line, we'll use the \tkzTabLine

  • z places a dotted line and a zero centered
  • t places a dotted line centered
  • d places a double centered bar


\tkzTabInit{$x$ /1,$f'(x)$ /1,$f(x)$ /2}

Output :


Add the variation line with \tkztabVar macro:

\newcommand*{ \E}{ \ensuremath{ \mathrm{e}}}.
\tkzTabInit{$x$ /1,$f'(x)$ /1,$f(x)$ /2}


the \tkzTabIma macro is used to position a value on a variation arrow \tkzTabIma[ 〈 local options 〉 ]{Beginning}{End}{Position}{Back}{Image}

  • Beginning rank of arrow origin
  • End rank of arrow end
  • Position rank of the antecedent corresponding to the image
  • Image image value if necessary

Translated with www.DeepL.com/Translator

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.