我有以下代码:
\documentclass{amsart}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[label = \textbf{Exercise \arabic*.}]
\item ajksdjkldjslasdjklasd
\begin{enumerate}[label = \textbf{\alph*.}]
\item ajhsdjajksdasdajksd
\end{enumerate}
\item ajksdkasjdadsasd
\end{enumerate}
\end{document}
其结果为:
如何删除项目 a. 的缩进?我希望将其与项目练习 1/2 对齐。
答案1
也许你想要其中一个?
\documentclass{amsart}
\usepackage[showframe]{geometry}%
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[label=\textbf{Exercise \arabic*.}, wide = 0pt, itemsep=1.5ex]
\item ajksdjkldjslasdjklasd
\begin{enumerate}[label = \textbf{\alph*.},wide =0pt]
\item ajhsdjajksdasdajksd ajhsdjajks dasdajksd ajhsdjajksd asdajksd ajhsdjajks dasdajksd dasdajksd ajhsdjajksd asdajksd ajhsdjajks dasdajksd
\end{enumerate}
\item ajksdkasjdadsasd
\end{enumerate}
\bigskip
\begin{enumerate}[label = \textbf{Exercise \arabic*.}, wide=0pt, itemsep=1.5ex]
\item ajksdjkldjslasdjklasd
\begin{enumerate}[label = \textbf{\alph*.},wide=0pt, labelsep=0.15em, leftmargin=*]
\item ajhsdjajksdasdajksd ajhsdjajks dasdajksd ajhsdjajksd asdajksd ajhsdjajks dasdajksd dasdajksd ajhsdjajksd asdajksd ajhsdjajks dasdajksd
\end{enumerate}
\item ajksdkasjdadsasd
\end{enumerate}
\end{document}
答案2
您可以添加选项左边距=0pt对于 enumii,
\begin{enumerate}[label = \textbf{\alph*.},leftmargin=0pt]