删除枚举环境中枚举环境的缩进

删除枚举环境中枚举环境的缩进

我有以下代码:

\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]

相关内容