在这种情况下,我该如何对齐这两个项目:
\documentclass{article}
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}
\begin{document}
\begin{theorem}
here is my theorem.
\begin{itemize}
\item[(a)-(f)] Same as Conditions (a)-(f) of Lamma 1.
\item[(g)] a new Condition.
\end{itemize}
\end{theorem}
\end{document}
在当前情况下,第一项中的 (a) 与第二项中的 (g) 不对齐。我还希望这些项出现在定理内部,而不是与定理具有相同的缩进。
答案1
如果只是针对特殊情况,请尝试以下操作:
\documentclass{article}
\begin{document}
\begin{itemize}
\item[(a)-(f)] Same as Conditions (a)-(f) of Lamma 1.
\item[(g)\phantom{-(f)}] a new Condition.
\end{itemize}
\end{document}
或这个:
\documentclass{article}
\begin{document}
\begin{itemize}
\item[\hbox to 1cm{(a)-(f)}] Same as Conditions (a)-(f) of Lamma 1.
\item[\hbox to 1cm{(g)}] a new Condition.
\end{itemize}
\end{document}
针对已编辑的问题尝试此操作:
\documentclass{article}
\usepackage{amsthm,enumitem}%%added enumitem
\newtheorem{theorem}{Theorem}
\begin{document}
\begin{theorem}
here is my theorem.
\begin{itemize}[leftmargin=.5in]
\item[\hbox to 1cm{(a)-(f)}] Same as Conditions (a)-(f) of Lamma 1.
\item[\hbox to 1cm{(g)}] a new Condition.
\end{itemize}
\end{theorem}
\end{document}