我想给三个项目的枚举贴上标签,以便稍后像等式一样使用。
作为第一个解决方案,我尝试在中间的物品上贴上标签,但该物品比其他物品长,需要您的线条。
我当前的解决方案是可行的,但它一点也不优雅:
\begin{equation}\label{en:Moves}
\begin{aligned}
&\textnormal{1. An MD trajectory of the $D$ real particles while one of them is removed.}\\
&\textnormal{\parbox{12.3cm}{2. An MD trajectory of the $D$ real particles while a new particle is inserted making a reservoir particle become real.}}\\
&\textnormal{3. An MD trajectory of the $D$ real particles.}
\end{aligned}
\end{equation}
这是我没有得到的输出:
我希望第二项带有“制作”一词的项目与其他项目对齐。
答案1
只需使用enumerate
并在每个后面放置标签\item
:
如果您坚持的话,我会留下这种\parbox
方法,但我不推荐。
\documentclass{article}
\begin{document}
\begin{enumerate}
\item An MD trajectory of the $D$ real particles while one of them is removed.\label{item1}
\item \parbox{12.3cm}{An MD trajectory of the $D$ real particles while a new particle is inserted making a reservoir particle become real.}\label{item2}
\item An MD trajectory of the $D$ real particles while a new particle is inserted making a reservoir particle become real.
\item An MD trajectory of the $D$ real particles.\label{item3}
\end{enumerate}
See items~\ref{item1},\ref{item2}, and \ref{item3}
\end{document}
答案2
这是一个稍微奇怪的事情,但我想你可以在方程环境中放置一个小页面。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}\label{en:Moves}
\begin{minipage}{0.9\textwidth}
\begin{enumerate}
\item An MD trajectory of the $D$ real particles while one of them is removed.
\item An MD trajectory of the $D$ real particles while a new particle is inserted making a
reservoir particle become real.
\item An MD trajectory of the $D$ real particles.
\end{enumerate}
\end{minipage}
\end{equation}
\end{document}