
リストに中央揃えの単一の式番号を適用することは可能ですか? 最初のリストでは、aligned wraps with equation を使用していますが、1) 適切に表示するには手動でかなりの間隔を空ける必要があり、2) 長い項目は正しく動作しません。項目 (iii) は、書式設定が崩れ、抑制できないため、コメント アウトされています。2 番目のリストの列挙は、書式設定は完璧ですが、式番号がありません。何かご提案があれば、ぜひお知らせください。
\documentclass[12pt, leqno]{book}
\usepackage{mathtools,amsthm}
\usepackage[shortlabels]{enumitem}
\newcommand{\blank}[1]{\hspace*{#1}}
\newcommand\abs[1]{\lvert#1\rvert}
\newcommand\dvd[2]{#1\!\mid\!#2}
\begin{document}
\noindent Using the equation env, this list is numbered and does what I want, except I'm struggling with
how to treat long lines (as in item (iii) which is commented out).
\begin{equation}
\begin{aligned}
&\text{(i) } \enspace \text{If $a>b$ then $a+c > b+c$ for every $c \in D$.} \blank{15mm} \\
&\text{(ii) } \> \text{If $a>b$ and $c>0$, then $ac>bc$.} \\
% &\text{(iii) } \text{If If $a \neq 0$ and $\dvd{d}{a}$, then $\abs{d} \leq \abs{a}$. Moreover, if $a \neq 0$, and $d \neq \pm a$, then $\abs{d} < \abs{a}$. } \\
&\text{(iv) } \text{If $a>b$ and $b>c$, then $a>c$.} \\
&\text{(v) } \> \text{If $a \neq 0$, then $a^2 > 0$.} \\
\end{aligned}
\end{equation}
\noindent Using the enumerate env handles the items perfectly with the desired formatting. I just
don't get a centered equation number.
\begin{enumerate}[labelindent=\parindent, leftmargin=*, label=(\roman*),widest=viii, align=left, noitemsep]
\item If $a>b$ then $a+c > b+c$ for every $c \in D$.
\item If $a>b$ and $c>0$, then $ac>bc$.
\item If If $a \neq 0$ and $\dvd{d}{a}$, then $\abs{d} \leq \abs{a}$. Moreover, if $a \neq 0$, and $d \neq \pm a$, then $\abs{d} < \abs{a}$.
\item If $a>b$ and $b>c$, then $a>c$.
\item If $a \neq 0$, then $a^2 > 0$.
\end{enumerate}
\end{document}
答え1
enumerate 環境を に入れるだけです\parbox
。ちなみに、ここでは項目番号を右揃えにすると見栄えが良くなると思います。また、この機会に \abs
`mathtools (可変サイズにするため) で再定義しました。
\documentclass[12pt, leqno]{book}
\usepackage{mathtools,amsthm}
\usepackage[showframe]{geometry}
\usepackage[shortlabels]{enumitem}
\newcommand{\blank}[1]{\hspace*{#1}}
\DeclarePairedDelimiter\abs\lvert\rvert
%\newcommand\abs[1]{\lvert#1\rvert}
\newcommand\dvd[2]{#1\!\mid\!#2}
\begin{document}
\noindent Using the enumerate env handles the items perfectly with the desired formatting. I just get a centred equation number.
\begin{equation}
\parbox{0.9\linewidth}{\begin{enumerate}[labelindent=\parindent, leftmargin=*, label=(\roman*),widest=viii, labelsep=0.8em, noitemsep]
\item If $a>b$ then $a+c > b+c$ for every $c \in D$.
\item If $a>b$ and $c>0$, then $ac>bc$.
\item If If $a \neq 0$ and $\dvd{d}{a}$, then $\abs{d} \leq \abs{a}$. Moreover, if $a \neq 0$, and $d \neq \pm a$, then $\abs{d} < \abs{a}$.
\item If $a>b$ and $b>c$, then $a>c$.
\item If $a \neq 0$, then $a^2 > 0$.
\end{enumerate}}
\end{equation}
\end{document}