答案1
正如 frougon 提到的,该tikzmark
包可以在这里使用。(请注意,有些版本有一些小错误,因此如果在第一次运行中遇到错误,您可能只需按 Enter 键即可。在后续运行中,这些错误将消失。)
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{tikzmark,arrows.meta,bending}
\begin{document}
\tikz[baseline={(nd.base)},nodes={inner sep=0pt,outer sep=0pt},remember picture]{
\node(nd){$\subnode{y}{y}=\log_{\subnode{b}{b}}(\subnode{x}{x})$};
\draw[-{Latex[bend]},shorten >=2pt,shorten <=2pt](y.north) to[out=80,in=100]
node[midway,above=1pt,font=\sffamily\tiny]{equals} (x.north);
\draw[-{Latex[bend]},shorten >=2pt,shorten <=2pt](x.south) to[out=-100,in=-70]
node[midway,below=1pt,font=\sffamily\tiny]{the power of} (y.south);}
means $b^y=x$
\medskip
\tikz[baseline={(nd2.base)},nodes={inner sep=0pt,outer sep=0pt},remember picture]{
\node(nd2){$\subnode{b2}{b}^{\subnode{y2}{y}}=\subnode{x2}{x}$};
\draw[-{Latex[bend]},shorten <=2pt](x2.north) to[out=100,in=80]
node[midway,above=1pt,font=\sffamily\tiny]{equals} (y2.north);
\draw[-{Latex[bend]},shorten >=2pt,shorten <=2pt](b2.south) to[out=-80,in=-100]
node[midway,below=1pt,font=\sffamily\tiny]{log of} (x2.south);}
means $y=\log_b(x)$
\end{document}