我正在使用 TeXStudio。请问如何将悬挂缩进应用于段落?例如,
步骤1.我正在使用TeXStudio撰写论文。
第二行需要与“我正在使用 TeXstudio”对齐,而不是与“步骤 1”对齐。有人能帮我解决这个问题吗?或者给我一些链接看看。非常感谢,
答案1
您可以使用列表;使用enumitem
您可以轻松定义一个专用列表(基于enumerate
),以生成所需的格式:
\documentclass{article}
\usepackage{enumitem}
\newlist{Steps}{enumerate}{1}
\setlist[Steps,1]{label=Step~\arabic*.,leftmargin=*}
\begin{document}
Some test text and some more text and some more text and some more text and some more text and some more text and some more text
\begin{Steps}
\item Some test text and some more text and some more text and some more text and some more text and some more text and some more text
\item Some test text and some more text and some more text and some more text and some more text and some more text and some more text
\end{Steps}
\end{document}