有没有办法将零点置于虚线前面?也许可以放在白色背景中?
\documentclass[]{article}
\usepackage{tkz-tab}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{tikzpicture}
\tikzset{t style/.style = {style = dashed}}
\tkzTabInit{$x$ /.8 , $f'(x)$ /.8, $f(x)$/.8}{$-\infty$, $0$ , $+\infty$};
\tkzTabLine{,+,z,-}
\tkzTabLine{,\nearrow ,t, \searrow }
\end{tikzpicture}
\end{document}
答案1
在...的帮助下这个帖子:
\documentclass[]{article}
\usepackage{xpatch}
\usepackage{tkz-tab}
\usepackage{amsmath,amssymb}
\makeatletter
\xpatchcmd{\tkzTabLine}
{\node at (Z\thetkz@cnt@impair\thetkz@cnt@lg){$0$};} % search
{\node[fill=white] at (Z\thetkz@cnt@impair\thetkz@cnt@lg){$0$};} % replace
{}{}
\makeatother
\begin{document}
\begin{tikzpicture}
\tikzset{t style/.style = {style = dashed}}
\tkzTabInit{$x$ /.8 , $f'(x)$ /.8, $f(x)$/.8}{$-\infty$, $0$ , $+\infty$};
\tkzTabLine{,+,z,-}
\tkzTabLine{,\nearrow ,t, \searrow }
\end{tikzpicture}
\end{document}
答案2
\documentclass[]{article}
\usepackage{tkz-tab}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{tikzpicture}
\tikzset{t style/.style = {style = dashed}}
\tkzTabInit{$x$ /.8 , $f'(x)$ /.8, $f(x)$/.8}{$-\infty$, $0$ , $+\infty$};
\tkzTabLine[help]{,+,t,-}
\tkzTabLine{,\nearrow ,t, \searrow }
\end{tikzpicture}
\begin{tikzpicture}
\tikzset{t style/.style = {style = dashed}}
\tkzTabInit{$x$ /.8 , $f'(x)$ /.8, $f(x)$/.8}{$-\infty$, $0$ , $+\infty$};
\tkzTabLine{,+,t,-}
\tkzTabLine{,\nearrow ,t, \searrow }
\node[fill=white] at (Z21) {0};
\end{tikzpicture}
\end{document}