![删除枚举环境中枚举环境的缩进](https://linux22.com/image/341524/%E5%88%A0%E9%99%A4%E6%9E%9A%E4%B8%BE%E7%8E%AF%E5%A2%83%E4%B8%AD%E6%9E%9A%E4%B8%BE%E7%8E%AF%E5%A2%83%E7%9A%84%E7%BC%A9%E8%BF%9B.png)
我有以下代码:
\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]