![使用不带缩进的枚举](https://linux22.com/image/334710/%E4%BD%BF%E7%94%A8%E4%B8%8D%E5%B8%A6%E7%BC%A9%E8%BF%9B%E7%9A%84%E6%9E%9A%E4%B8%BE.png)
我有一个枚举列表,它从文本边缘的左侧开始。如何删除它,以便单词“步骤 1”与文档的其余部分从相同的左侧边缘开始?
\documentclass[paper=a4, fontsize=11pt]{scrartcl} % A4 paper and 11pt font size
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{enumitem}
\begin{document}
\noindent
Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text
\begin{enumerate} [label=Step \arabic{enumi}.,ref=Step \arabic{enumi}]
\item Step A
\item Step b
\item Step C
\item Step D
\end{enumerate}
\noindent
Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text
\end{document}
答案1
有以下 3 种可能性:
\documentclass[paper=a4, fontsize=11pt]{scrartcl} % A4 paper and 11pt font size
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{enumitem}
\begin{document}
\noindent
Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text
\begin{enumerate} [label=Step \arabic{enumi}.,ref=Step \arabic{enumi}, leftmargin=*]
\item Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A
\item Step B
\item Step C
\item Step D
\end{enumerate}
\noindent
Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text
\begin{enumerate} [label=Step \arabic{enumi}.,ref=Step \arabic{enumi}, wide=0pt]
\item Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A
\item Step B
\item Step C
\item Step D
\end{enumerate}
\noindent
Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text
\begin{enumerate} [label=Step \arabic{enumi}.,ref=Step \arabic{enumi}, align=left]
\item Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A Step A
\item Step B
\item Step C
\item Step D
\end{enumerate}
\end{document}
答案2
不清楚,真正的意思是什么,我leftmargin=*
在这里申请:
\documentclass[paper=a4, fontsize=11pt]{scrartcl} % A4 paper and 11pt font size
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{enumitem}
\begin{document}
\noindent
Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text
\begin{enumerate}[label={Step \arabic{enumi}}.,ref={Step \arabic{enumi}},leftmargin=*]
\item Step A
\item Step b
\item Step C
\item Step D
\end{enumerate}
\noindent
Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text
\end{document}