LaTeX 对齐定理的不同部分

LaTeX 对齐定理的不同部分

我在用着

 pdflatex test.tex 
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
 restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2011/06/27>
Babel <3.9f> and hyphenation patterns for 78 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class

我怎样才能对齐定理中的部分 a)和 b),如下所示:

a) For each a prime prime prime prime prime prime prime prime prime 
   prime prime prime prime prime prime prime 
b) For each a prime prime prime prime prime prime prime prime prime 
   prime prime prime prime prime prime prime

因为我只有

   a) For each a prime prime prime prime prime prime prime prime prime 
prime prime prime prime prime prime prime
   b) For each a prime prime prime prime prime prime prime prime prime 
prime prime prime prime prime prime prime

我试过

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{stmaryrd}
\usepackage{euscript}
\usepackage[nottoc,numbib]{tocbibind}
\linespread{1.6}
\begin{document}
\newtheorem{lem}{Lemma}[section]
\begin{lem}
\label{lemTwentyNineTwo}
Let $\lambda$ be the test sentence.

$(a)$ For each $a$ prime prime prime prime prime prime prime prime prime prime prime prime prime prime prime prime

$(b)$ For each a prime prime prime prime prime prime prime prime prime 
prime prime prime prime prime prime prime
\end{lem}
\end{document}

答案1

您可以使用该enumitem包来定义自定义枚举列表环境,其中列表项“编号”为(a)(b)等,而不是通常的1.2.等。

下面的MWE实现了这个想法。

在此处输入图片描述

\documentclass{article}
\usepackage{enumitem}
\newlist{enumthm}{enumerate}{1}
\setlist[enumthm]{label=(\alph*)}

\newtheorem{thm}{Theorem}
\begin{document}
\begin{thm} Consider bla bla bla
\begin{enumthm}
\item For each a prime prime prime prime prime prime prime prime prime prime prime prime prime prime prime prime
\item For each a prime prime prime prime prime prime prime prime prime prime prime prime prime prime prime prime
\end{enumthm}
\end{thm}
\end{document}

相关内容