答案1
使用tabular
a 的内部tikzpicture
可以达到目的(但很可能还有其他可能性,例如,你可以使用 Ti钾Z matrix
)。
\documentclass[tikz,border=3.14]{standalone}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}
\node[inner sep=0]
(list)
{%
\begin{tabular}{@{}l@{}}
Li\\Cs\\Rb\\K\\Ba\\Sr\\Ca\\Na\\Mg\\Be\\Al\\\\C\\\\Zn\\Cr\\Fe\\Cd\\Co\\
Ni\\Sn\\Pb\\\\H\\\\Sb\\As\\Bi\\Cu\\Ag\\Pd\\Hg\\Pt\\Au
\end{tabular}%
};
\draw[->,-Stealth,very thick]
(list.south west) ++(-1,0)coordinate(tmp)
-- (tmp|-list.north)
node[above]{\begin{tabular}{@{}c@{}}Increasing\\activity\end{tabular}};
\end{tikzpicture}
\begin{tikzpicture}
\path
(0,0) node[inner sep=0] (list)
{%
\begin{tabular}{@{}l@{}}
F\\Cl\\Br\\I
\end{tabular}%
}
(list.south east) ++(1,0) node[inner sep=0,anchor=south west] (weak)
{weakest oxidizing agent, least readily becomes reduced}
(list.north-|weak.west) node[inner sep=0,anchor=north west,text=orange] (strong)
{strongest oxidizing agent, most readily becomes reduced}
;
\draw[->,-Stealth,very thick,orange]
(strong.south west) ++(5pt,-5pt) coordinate(tmp)
(tmp|-weak.north) ++(0,5pt) -- (tmp)
;
\end{tikzpicture}
\end{document}
答案2
无需额外 Ti钾你可以用 Z 来做\uparrow
(以及一些技巧)。
\documentclass{article}
\usepackage{xcolor}
\usepackage{calc}
\newlength{\templen}
\begin{document}
\begin{table}[!htp]
\centering
\setlength{\templen}{(\widthof{Increasing}-\widthof{$\uparrow$})/2}
\begin{tabular}{@{}l@{}}
\begin{tabular}{@{}c@{}}
Increasing \\
activity
\end{tabular} \\
$\hspace*{\templen}
\left\uparrow
\hspace*{\templen}
\begin{tabular}{@{}l@{}}
Li\\Cs\\Rb\\K\\Ba\\Sr\\Ca\\Na\\Mg\\Be\\Al\\[1ex]
C\\[1ex]
Zn\\Cr\\Fe\\Cd\\Co\\Ni\\Sn\\Pb\\[1ex]
H\\[1ex]
Sb\\As\\Bi\\Cu\\Ag\\Pd\\Hg\\Pt\\Au
\end{tabular}
\right.$
\end{tabular}
\caption{Elements in order of increasing activity}
\end{table}
\begin{table}[!htp]
\centering
\begin{tabular}{@{}ll@{}}
F & \color{red!80!blue}strongest oxidizing agent, most readily becomes reduced \\
\begin{tabular}{@{}l@{}} Cl \\ Br \end{tabular} &
\color{orange}$\left\uparrow \vphantom{\begin{tabular}{@{}l@{}} Cl \\ Br \end{tabular}}\right.$ \\
I & weakest oxidizing agent, least readily becomes reduced
\end{tabular}
\caption{Something else}
\end{table}
\end{document}