如何使用枚举对齐自定义列表

如何使用枚举对齐自定义列表
\documentclass[11pt]{article}

\setlength{\topmargin}{0pt}
\setlength{\textheight}{9in}
\setlength{\headheight}{20pt}
\setlength{\headsep}{20pt}
\setlength{\oddsidemargin}{0.25in}
\setlength{\textwidth}{6in}
\pagestyle{plain}

\usepackage{graphics}
\usepackage[pdftex]{color,graphicx}
\usepackage{amsthm}
\usepackage{relsize}
\usepackage{amsmath,amsfonts,amssymb,amsthm}
\usepackage{mathtools}
\usepackage{commath}
\usepackage{enumerate}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mhequ}
\usepackage{framed}
\usepackage{mathtools}
\usepackage{mathrsfs}
\usepackage{enumitem}
\begin{document}
\setlength{\parindent}{0cm}
\newlist{steps}{enumerate}{1}
\setlist[steps, 1]{start = 0, label = Step \arabic*:}

Here is the beginning of my paragraph. Here is the beginning of my paragraph.Here is the beginning of my paragraph.Here is the beginning of my paragraph.Here is the beginning of my paragraph.

\begin{steps}
\item 
\item
\end{steps}
\end{document}

在此处输入图片描述

我使用 定义了自定义列表enumerate。但是,Step 0, 1, ...未与文档中的其他段落对齐。我该如何缩进此自定义列表?

答案1

您可以使用widewidest选项。

\documentclass[11pt]{article}

\setlength{\topmargin}{0pt}
\setlength{\textheight}{9in}
\setlength{\headheight}{20pt}
\setlength{\headsep}{20pt}
\setlength{\oddsidemargin}{0.25in}
\setlength{\textwidth}{6in}
\pagestyle{plain}

\usepackage{graphics}
\usepackage[pdftex]{color,graphicx}
\usepackage{amsthm}
\usepackage{relsize}
\usepackage{amsmath,amsfonts,amssymb,amsthm}
\usepackage{mathtools}
\usepackage{commath}
\usepackage{enumerate}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mhequ}
\usepackage{framed}
\usepackage{mathtools}
\usepackage{mathrsfs}
\usepackage{enumitem}
\begin{document}
\setlength{\parindent}{0cm}
\newlist{steps}{enumerate}{1}
\setlist[steps, 1]{start = 0, label = Step \arabic*:,wide=3pt, widest=step 00:}

Here is the beginning of my paragraph. Here is the beginning of my paragraph. Here is the beginning of my paragraph.Here is the beginning of my paragraph.Here is the beginning of my paragraph.

\begin{steps}
\item 
\item
\end{steps}
\end{document}

在此处输入图片描述

相关内容