使文本在枚举标签后面流动

使文本在枚举标签后面流动

我不确定正确的术语是什么,所以我只展示我想要的图片。

这是枚举的默认行为:

默认枚举行为

这就是我想要的:

期望枚举行为

示例代码:

\documentclass[a5paper,12pt,titlepage]{article}
\usepackage[a5paper]{geometry}

\begin{document}
\noindent~~~1.~ This is some dummy text to demonstrate what I want. It should flow to the left behind enumeration labels (what's the correct terminology?)

~

\noindent~~~2.~ This is also dummy text.

\end{document}

答案1

在此处输入图片描述

使用enumitem包及其选择wide很简单。对于本地设置:

\documentclass[a5paper,12pt]{article}
\usepackage[a5paper]{geometry}
\usepackage{enumitem}

\begin{document}
\begin{enumerate}[wide]
\item   This is some dummy text to demonstrate what I want. It should flow to the left behind enumeration labels (what's the correct terminology?)
\item   This is also dummy text.
    \end{enumerate}
\end{document}

当您希望以这种方式枚举所有列表时:

\documentclass[a5paper,12pt]{article}
\usepackage[a5paper]{geometry}
\usepackage{enumitem}
\setlist[enumerate]{wide}

\begin{document}
\begin{enumerate}
\item   This is some dummy text to demonstrate what I want. It should flow to the left behind enumeration labels (what's the correct terminology?)
\item   This is also dummy text.
    \end{enumerate}
\end{document}

有关更多选项和调整,请参阅enumitem包的文档。

相关内容