1

With the code below, I'll get
enter image description here

But I want this output:
enter image description here

How can I do that?

\documentclass{article}
\usepackage{tkz-tab}

\begin{document}
\begin{tikzpicture}
\tikzset{h style/.style = {solid,fill=red!50}}
\tikzset{t style/.style = {solid}}
\tkzTabInit[color,espcl=1.5]%
{$x$ / 1,$g(x)$ / 1}%
{$-\infty$,$1$,$2$,$+\infty$}%
\tkzTabLine{,h,d,-,z,+}
\end{tikzpicture}
\end{document}
1

Like this

\documentclass{article}
\usepackage{tkz-tab}

\begin{document}
\begin{tikzpicture}
\tikzset{t style/.style = {solid}}
\tkzTabInit[color,espcl=1.5]%
{$x$ / 1,$g(x)$ / 1}%
{$-\infty$,$1$,$2$,$+\infty$}%
\tkzTabLine{,h,d,-,z,+}
\draw[fill=red!50] (T12) rectangle (N21);
\end{tikzpicture}
\end{document}

Enchors of the tabular (T12 and N21) are mentioned in the manual of tkz-tab

enter image description here

  • Thanks for your solution but could you please explain what are T12 and N21? What do they mean? – Sisabe Jul 10 '16 at 11:46

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.