参照定理环境枚举项

参照定理环境枚举项

在我的论文的结论部分,我使用enumerate环境创建了一个枚举列表。

\begin{enumerate}[label=\textbf{Property \arabic*.}, leftmargin=25mm]
\item Stationarity
\item Autocorrelation
\end{enumerate}

使用这个枚举列表,我使用新定义的定理环境概述了我在论文中发现并列出的几个属性:

\newtheorem{property}{Property})

我在文章中引用了

\begin{property}\label{prop:stationarity}[Stationarity] The data xyz is stationary.\end{property}

在文本中,我可以轻松地使用以下引用来引用这些属性:

As we have found in property \ref{prop:stationarity}, data xyz is...

现在,我想在枚举列表中执行类似操作,但我希望项目本身是属性的引用。简单来说,我想单击枚举列表中的“属性 1”,然后引用论文中定义的实际属性 1。

答案1

Property 1从编程角度来看, (您在文档中看到的打印内容)和(您提供的标签/引用内容)之间没有任何关系prop:stationarity。因此,很难自动化这种交叉引用方案。

相反,可以使用手动交叉引用方案:

在此处输入图片描述

\documentclass{article}
\usepackage{enumitem,hyperref}
\newtheorem{property}{Property}
\begin{document}

\begin{property}[Stationarity]\label{prop:stationarity}
The data $xyz$ is stationary.
\end{property}

As we have found in Property~\ref{prop:stationarity}, data $xyz$ is\ldots

\begin{enumerate}[leftmargin=25mm]
  \item[{\hyperref[prop:stationarity]{Property~\ref*{prop:stationarity}}}] Stationarity
  \item[Property~2] Autocorrelation
\end{enumerate}
\end{document}

相关内容