使用不带缩进的枚举

使用不带缩进的枚举

我有一个枚举列表,它从文本边缘的左侧开始。如何删除它,以便单词“步骤 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}

在此处输入图片描述

相关内容