![如何用 tkz-tab 在此图片上绘制 \rightarrow?](https://linux22.com/image/358414/%E5%A6%82%E4%BD%95%E7%94%A8%20tkz-tab%20%E5%9C%A8%E6%AD%A4%E5%9B%BE%E7%89%87%E4%B8%8A%E7%BB%98%E5%88%B6%20%5Crightarrow%EF%BC%9F.png)
我尝试绘制变体表。我尝试
\documentclass[12pt]{article}
\usepackage{tkz-tab}
\tikzset{t style/.style = {style = densely dashed}}
\begin{document}
\begin{center}
\begin{tikzpicture}
\tkzTabInit[espcl=3]%
{$x$/1,$f'(x)$/1, $f(x)$/3}{$-\infty$,$1$,$+\infty$}%
\tkzTabLine{, +,z,+,}
\tkzTabVar{-/ $-\infty$, R/ , +/$+\infty$ }
\tkzTabImaFrom{1}{3}{N21}{$3$}
\end{tikzpicture}
\end{center}
\end{document}
我有
像这个图这样要怎么画呢?
答案1
这里有一个解决方案\tkzTabImaFrom
\documentclass[12pt]{article}
\usepackage{tkz-tab}
\tikzset{t style/.style = {style = densely dashed}}
\begin{document}
\begin{center}
\begin{tikzpicture}
\tkzTabInit[espcl=3]%
{$x$/1,$f'(x)$/1, $f(x)$/3}{$-\infty$,$1$,$+\infty$}%
\tkzTabLine{, +,z,+,}
\tkzTabVar{-/ $-\infty$, R/ , +/$+\infty$ }
\path (FR12) -- (FL32)node[midway,fill=white](M){$3$};
\draw[arrow style,shorten >=-2pt](FR12)--(M);
\end{tikzpicture}
\end{center}
\end{document}
答案2
另一个解决方案:
\documentclass[12pt]{article}
\usepackage{tkz-tab}
\tikzset{t style/.style = {style = densely dashed}}
\begin{document}
\begin{center}
\begin{tikzpicture}
\tkzTabInit[espcl=3]%
{$x$/1,$f'(x)$/1, $f(x)$/3}{$-\infty$,$1$,$+\infty$}%
\tkzTabLine{, +,z,+,}
\node[above=6pt] (n1) at (N13) {-\infty};
\node[below=6pt] (n2) at (N32) {+\infty};
\path (n1) -- (n2) node[midway,fill=white](m){$3$};
\draw[arrow style,shorten >=-2pt](n1) to (m);
\draw[arrow style,shorten >=-2pt](m) to (n2);
\end{tikzpicture}
\end{center}
\end{document}