答案1
nicematrix
这是一个带有(和)的选项tikz
。
\documentclass{article}
\usepackage{nicematrix, tikz}
\begin{document}
\NiceMatrixOptions{cell-space-limits=2mm}
\begin{NiceTabular}{c!{\qquad}c}[rules/color=cyan]\hline
\Block[l]{1-1}{\bfseries$\boldsymbol{e^{2x}}$ and its\\\bfseries derivatives} & \Block[l]{1-1}{\bfseries$\boldsymbol{\cos x}$ and its\\\bfseries integrals}\\ \hline
$\phantom{0}e^{2x}$ & $\phantom{-}\cos x$\\
$2e^{2x}$ & $\phantom{-}\sin x$\\
$4e^{2x}$ & $-\cos x$
\CodeAfter
\tikz{
\draw[-latex] (2-1)--node[above=-1pt]{$\scriptstyle(+)$}(3-2);
\draw[-latex] (3-1)--node[above=-1pt]{$\scriptstyle(-)$}(4-2);
\draw[-latex, shorten <=5mm, shorten >=5mm] (4-1)--node[above=-2pt]{$\scriptstyle(+)$}(4-2);
}
\end{NiceTabular}
\end{document}