编译下面的 mwe 将说明为什么我希望左侧的字母 d 与名称 2 位于同一行。我该如何实现这一点?
\documentclass{article}
\usepackage{amsmath, enumitem}
\begin{document}
\begin{enumerate}[label=\texttt{\alph*},align=left,ref=\texttt{\alph*}]
\item $\forall y(\textnormal{Formula 1})$\null\hfill P
\item $\begin{aligned}{\emph{Name 0}}
\forall x(\textnormal{Formula 2} & \forall n(\textnormal{Formula 3}\\ & \forall m,n(\textnormal{Formula 4})\end{aligned}$
\item For $\alpha(y,z)$ a first order condition so that \ldots \null\hfill Name 1
\item \[
\begin{aligned}
\forall x(\Sigma(x)\leftrightarrow & \Pi \wedge \\& \forall m,n((m, y)\})
\end{aligned}
\tag{Name 2}
\]
\end{enumerate}
\end{document}
答案1
对于项目 d,我使用了$...$
而不是\[...\]
,我将 改为\tag
简单的\hfill
,并且我对环境[t]
进行了操作对齐aligned
。
\documentclass{article}
\usepackage{amsmath, enumitem}
\begin{document}
\begin{enumerate}[label=\texttt{\alph*},align=left,ref=\texttt{\alph*}]
\item $\forall y(\textnormal{Formula 1})$\null\hfill P
\item $\begin{aligned}{\emph{Name 0}}
\forall x(\textnormal{Formula 2} & \forall n(\textnormal{Formula 3}\\ & \forall m,n(\textnormal{Formula 4})\end{aligned}$
\item For $\alpha(y,z)$ a first order condition so that \ldots \null\hfill Name 1
\item $
\begin{aligned}[t]
\forall x(\Sigma(x)\leftrightarrow & \Pi \wedge \\& \forall m,n((m, y)\})
\end{aligned}
$\hfill Name 2
\end{enumerate}
\end{document}
如果您希望“d”和“Name 2”相对于表达式垂直居中aligned
,请从 中删除该[t]
选项aligned
。无论哪种情况,“d”和“Name 2”都将垂直对齐。