像图形一样引用方程式

像图形一样引用方程式

我已经制作了一个带文本的箭头方程 (xymatrix)。现在我需要像图一样引用它。有什么想法可以实现吗?

如果我输入\label{}它将根据方程式进行编号。我需要它根据数字进行编号。

\begin{equation*}
\xymatrix{
\text{some text} \ar@<-2pt>[d]_{A}  \\
\text{more technigal jargon} \ar@<-2pt>[d]_{B} \\
\text{even more} \ar@<-2pt>[u]
} 
\end{equation*}

答案1

equation*不使用方程式(或任何数字)。要么使用类似于with包的equation东西,要么使用方法。\label[figure]{foo}cleveref\tag

\documentclass{article}

\usepackage{xypic}
\usepackage{mathtools}

\usepackage{blindtext}
\usepackage{cleveref}



\begin{document}
\blindtext[3]
\begin{equation}
\xymatrix{%
\text{some text} \ar@<-2pt>[d]_{A}  \\
\text{more technigal jargon} \ar@<-2pt>[d]_{B} \\
\text{even more} \ar@<-2pt>[u]
} \label[figure]{foo}
\end{equation}

In \cref{foo} we see
\end{document}

相关内容