我想知道是否有可能在方程中做到类似的事情。
我的代码在这里
\documentclass[12pt]{article}
%\usepackage[english]{babel}
%\usepackage{amsmath,amsthm}
%\usepackage{amsfonts}
\usepackage[T1]{fontenc}
\usepackage{mathpazo}
\usepackage{tikz}
\usetikzlibrary{arrows}
\newcommand{\tikzmark}[2]{%
\tikz[remember picture,baseline=(#1.base)]
\node[text=black,anchor=center,inner sep=1pt] (#1) {#2};}
\begin{document}
$$\tikzmark{a}{a}=\tikzmark{c}{c}$$
\tikz[overlay,remember picture]{\draw[blue,thick,->] (a.north) to [bend left=45] node[anchor=south]{$=$}(c.north);}
\end{document}
我不知道底部的绘制箭头。
答案1
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mathpazo}
\usepackage{tikz}
\usetikzlibrary{arrows}
\newcommand{\tikzmark}[2]{%
\tikz[remember picture,baseline=(#1.base)]
\node[text=black,anchor=center,inner sep=1pt] (#1) {#2};}
\begin{document}
\[\tikzmark{a}{a}=\tikzmark{c}{c}\]
\tikz[overlay,remember picture]{\draw[blue,thick,->]
(a.north) to [bend left=45] node[above]{\scriptsize$=$}(c.north);}
\tikz[overlay,remember picture]{\draw[blue,thick,->]
(a.south) to [bend right=45] node[below]{\scriptsize$=$}(c.south);}
\end{document}
答案2
不使用tikz
:
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amssymb}
\usepackage{graphics}
\newcommand{\arroweqover}{\substack{\mathstrut \mkern7mu=\\ \scalebox{2.5}{$\mkern4mu\curvearrowright$}}}
\newcommand{\arrowequnder}{\substack{\rotatebox{180}{\scalebox{2.5}{$\mkern-4mu\curvearrowleft$}}\\ \mathstrut\mkern7mu=}}
\begin{document}
\[
\overset{\arroweqover}{\underset{\arrowequnder}{A=c}}
\]
\end{document}