我怎样才能做到这一点?
\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
像这样
\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}
表格(T12
和N21
)的锚点在手册中提到tkz-tab