
我想在表根中顯示偶數,為此我想使用雙線和零符號(不是虛線垂直線)。但 \tkzTabLine{d,-,z,t} 中存在 3 個指令,即 d、t、z 指令。這些對我不起作用。如何設定新指令而不是 d、t、z 指令?
- z 放置一條虛線和一條以零為中心的線
- t 將虛線置於置中
- d 放置一個雙中心條
我想定義新命令,例如
- x 放置一條雙線和一條以零為中心的線
- y 放置一條居中的實線
\documentclass[11pt]{article}
\usepackage{color}
\usepackage{MnSymbol}
\usepackage{tkz-tab,amsmath}
\usetikzlibrary{arrows}
\begin{document}
\newcommand{\E}{\mathrm{e}}
\begin{tikzpicture}
\tikzset{arrow style/.style = {blue,->,> = latex',
shorten > = 6pt,
shorten < = 6pt}}
\tkzTabInit[espcl=2]{$x$ /1, $f'(x)$ /1.5, $f''(x)$ /2,$f(x)$/2.5}{$-
\infty$, $0$ ,$1$ , $2$ , $+\infty$}%
\tkzTabLine{ ,+,z,- ,d,-,z,+}%
\tkzTabLine{ ,-,t ,- ,d,+,t ,+}%
\tkzTabVar%
{ -/ , +/ ,-D+/ / , -/ ,+/ / }%
\end{tikzpicture}
\end{document}
答案1
諮詢後最終輸出
http://ftp.cc.uoc.gr/mirrors/CTAN/macros/latex/contrib/tkz/tkz-tab/doc/tkz-tab-screen.pdf
和
第四條弧線作為OP的練習;同樣,圓圈的雙線也作為OP的練習
\documentclass{article}
\usepackage{amsmath,amssymb}
\usepackage{tkz-tab}
\usetikzlibrary{calc}
\usetikzlibrary {arrows.meta,bending}
\begin{document}
\begin{tikzpicture}
\tkzTabInit[color,
colorT = yellow!20,
colorC = red!20,
colorL = green!20,
colorV = lightgray!20,
lgt=2,
espcl=2,
nocadre]
{$x$ /1,
$f''(x)$ /1,
$f'(x)$ /1,
$f(x)$ /1.2}
{$-\infty$ ,
$-1$,
$0$,
$1$,
$+\infty$};
\tkzTabLine{+,,+,,z,,-,,-}
\tkzTabLine{+,,-,,z,,-,,+}
\tkzTabLine{,,,,t,,,,}
% \draw[red,thick,->,shorten >= 2pt,shorten <= 4pt]
% ($.5*(N14) + .5*(M14) + (0,.5mm)$) to [bend right=30] ($.5*(N23) + .5*(M13)$);
% \draw[red,thick,->,shorten >= 7pt,shorten <= 7pt]
% ($.5*(N23) + .5*(M23) + (0,.5mm)$) to [bend right=25] ($.7*(N34) + .3*(M24) + (0,.7mm)$);
\begin{scope}[>->,line width=1pt,>=stealth]
\draw (3,-3) to [bend left=35] (2,-4);
\draw (4,-4.1) to [bend left=35] (5, -3.1);
\draw (7.7, -3.1)to [bend left=35] (8.8 , -4.1);
\end{scope}
\end{tikzpicture}
\end{document}
如果符合您的要求,請勾選答案左側的複選標記,也可以對答案左側的向上三角形投下贊成票。