如何编写带有对列表项的交叉引用的标签列表?

如何编写带有对列表项的交叉引用的标签列表?

我想编写一个带标签的列表,并从文档的其他地方引用其中的项目。我的第一个想法是使用描述环境和 \label 标签,但这似乎不起作用。

\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[colorlinks,hidelinks]{hyperref}
\usepackage{cleveref}
\usepackage{showlabels}
\showlabels{cite}
\showlabels{cref}
\showlabels{crefrange}

\begin{document}
\begin{description}
\item [Open cover] Foo is an open cover for bar. Note that it need
not be a basis for $S$.
\label{mod:cover}

\item [Closed] Foo is closed under finite intersections.
\label{mod:closed}

\item [Continuous] The morphisms of foo are continuous functions in
bar.

\label{mod:continuous}

\item [Restriction]
\label{mod:rest}
If $f: A \to B$ is a morphism, $A' \subseteq A$,
$B' \subseteq B$ and $f[A'] \subseteq B'$ then
$f \restriction_{A'} : A' \to B'$ is a morphism.
\label{mod:restriction}

\item [Inclusion] If $A' \subseteq A$ then
the inclusion map $i: A' \hookrightarrow A$ is a morphism.
\label{mod:inclusion}

\item [Restricted sheaf condition]
Informally, consistent morphisms can be glued together. Whenever
\begin{enumerate}
\item $U_\alpha$ and $V_\alpha$, $\alpha \prec A$,
are objects of foo.
\item $f_\alpha: U_\alpha \to V_\alpha$ are morphisms of foo.
\item
$U = \bigcup_{\alpha \prec A} {U_\alpha} \in foo$.
\item
$V = \bigcup_{\alpha \prec A} {V_\alpha} \in bar$.
\item
$f: U \to V$ is a continuous function and
for every $\alpha \prec A$,
$f$ agrees with $f_\alpha$ on $U_\alpha$
\end{enumerate}
then $f$ is a morphism of $foo$.
\label{mod:sheaf}
\end{description}

Test cref\{mod:closed\}: \cref{mod:closed}

Test autoref\{mod:closed\}: \autoref{mod:closed}

Test refname\{mod:closed\}: \refname{mod:closed}
\end{document}

不生产

Test cref{mod:closed}: item Closed
Test autoref{mod:closed}: item Closed
Test refname{mod:closed}: Closed

或任何类似的东西。

相关内容