
단일 중심 방정식 #을 목록에 적용할 수 있습니까? 나는 첫 번째 목록에서 방정식으로 정렬된 정렬을 사용하고 있지만 1) 제대로 보이도록 하려면 상당한 양의 수동 간격이 필요하고 2) 긴 항목은 오작동합니다. 항목 (iii)은 서식이 깨지기 때문에 주석 처리되어 있으며 이를 통제할 수 없습니다. 두 번째 목록의 열거는 완벽하게 서식이 지정되어 있지만 방정식 번호가 없습니다. 어떤 제안이라도 주시면 감사하겠습니다.
\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
열거 환경을 \parbox
. 그런데 여기서 오른쪽 정렬을 하면 항목 번호가 더 잘 보이는 것 같아요. 나는 또한 `mathtools를 사용하여 재정의할 기회를 얻었습니다 \abs
(그래서 가변 크기를 가질 수 있습니다):
\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}