enumthm에서 특정 항목을 참조하는 방법

enumthm에서 특정 항목을 참조하는 방법

LaTeX를 사용하여 정의를 작성해 보았습니다. 괜찮아 보이는데 마지막 항목에 하드 코딩된 (d) 항목을 피하는 다른 방법이 있나요?

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{euscript}
\usepackage{enumitem}
\usepackage{textcomp}
\newlist{enumthm}{enumerate}{1}
\setlist[enumthm]{label=(\alph*)}
\newcommand\restr[2]{{% we make the whole thing an ordinary symbol
  \left.\kern-\nulldelimiterspace % automatically resize the bar with \right
  #1 % the function
  \vphantom{\big|} % pretend it's a little taller at normal size
  \right|_{#2} % this is the delimiter
  }}
\linespread{1.6}
\newtheorem{thm}{Theorem}[section]
\newtheorem{defn}[thm]{Definition}
\begin{document}
\begin{defn}
Let $X$ be a topological space. A \emph{presheaf} $\mathcal{F}$ (of Abelian groups) on $X$ consists an Abelian group $\mathcal{F}(U)$ for every open subset $U$ of $X$, and a group homomorphism (\emph{restriction map}) $\rho_{UV}:\mathcal{F}(U)\to\mathcal{F}(V)$ for every pair of open subsets $V\subseteq U$ which has the following properties:
\begin{enumthm}
\item $\mathcal{F}(\emptyset )=0$;
\item $\rho_{UU}=\operatorname{Id}$;
\item If we have three open subsets $W\subseteq V\subseteq U$, then $\rho_{UW}=\rho_{VW}\circ\rho_{UV}$.\\
A presheaf is said to be a \emph{sheaf} if in addition
\item (Uniqueness) Let $U$ be an open subset of $X$, $s\in\mathcal{F}$, $\{U_i\}_i$ a covering of $U$ by open subsets $U_i$. If $\restr{s}{U_i}=0$ for every $i$, then $s=0$.
\item (Glueing local sections) Let us keep the notation of (d). Let $s_i\in\mathcal{F}(U_i),i\in I$, be sections such that $\restr{s_i}{{U_i\cap U_j}}=\restr{s_j}{U_i\cap U_j}$. Then there exists a section $s\in \mathcal{F}(U)$ such that $\restr{s}{U_i}=s_i$ (this section $s$ is unique by condition (d)).
\end{enumthm}
\end{defn}
\end{document}

답변1

다른 번호가 매겨진 요소와 마찬가지로 \label및를 사용할 수 있습니다 . 예를 들어 네 번째 항목에 \ref추가하고 다섯 번째 항목에 사용합니다.\label{item:unique}\ref{item:unique}

아래 코드에서는 \restr정의 방법을 모르기 때문에 제거했습니다.

\documentclass{article}
\usepackage{enumitem,amsthm,amsmath}
\newlist{enumthm}{enumerate}{1}
\setlist[enumthm]{label=(\alph*)}
\newtheorem{thm}{Theorem}[section]
\newtheorem{defn}[thm]{Definition}
\begin{document}

\begin{defn}
Let $X$ be a topological space. A \emph{presheaf} $\mathcal{F}$ (of Abelian groups) on $X$ consists an Abelian group $\mathcal{F}(U)$ for every open subset $U$ of $X$, and a group homomorphism (\emph{restriction map}) $\rho_{UV}:\mathcal{F}(U)\to\mathcal{F}(V)$ for every pair of open subsets $V\subseteq U$ which has the following properties:
\begin{enumthm}
\item $\mathcal{F}(\emptyset )=0$;
\item $\rho_{UU}=\operatorname{Id}$;
\item If we have three open subsets $W\subseteq V\subseteq U$, then $\rho_{UW}=\rho_{VW}\circ\rho_{UV}$.\\
A presheaf is said to be a \emph{sheaf} if in addition
\item (Uniqueness) Let $U$ be an open subset of $X$, $s\in\mathcal{F}$, $\{U_i\}_i$ a covering of $U$ by open subsets $U_i$. If ${s}{U_i}=0$ for every $i$, then $s=0$.
\label{item:unique}
\item (Glueing local sections) Let us keep the notation of \ref{item:unique}. Let $s_i\in\mathcal{F}(U_i),i\in I$, be sections such that ${s_i}{{U_i\cap U_j}}={s_j}{U_i\cap U_j}$. Then there exists a section $s\in \mathcal{F}(U)$ such that ${s}{U_i}=s_i$ (this section $s$ is unique by condition \ref{item:unique}).
\end{enumthm}
\end{defn}

\end{document}

관련 정보