如何模拟此枚举显示

如何模拟此枚举显示

我想模仿以下枚举显示:

在此处输入图片描述

请注意放大的项目编号、它们的颜色、项目编号后面没有句点、它们如何从项目内容第一行顶部下方开始,以及项目编号如何跨越两行输出。

问题:如何修改包含跨多页枚举的以下代码,以模拟上述显示?

\documentclass[12pt,openany]{book}
\textwidth 3.85in
\begin{document}
\chapter{}
\begin{enumerate}
\item There is no excuse for those who could be scholars and are not.
\item Study. Obedience: non multa, sed multum — not many things, but well.
\item There is no excuse for those who could be scholars and are not.
\chapter{}
\item Study. Obedience: non multa, sed multum — not many things, but well.
\item
\item
\end{enumerate}
\end{document}

产生

在此处输入图片描述

在此处输入图片描述

谢谢。

答案1

您的物品至少应该有两行。

\documentclass[12pt,openany]{book}
\usepackage{enumitem}
\usepackage{showframe}% just for the example

\newlist{advice}{enumerate}{1}
\setlist[advice]{
  label=\formatadvicenumber{\arabic*},
  ref=\arabic*,
  leftmargin=4em,
  resume,
}
\NewDocumentCommand{\formatadvicenumber}{m}{%
  \raisebox{\dimexpr0.5\ht\strutbox-\height}[0pt][0pt]{\LARGE #1}%
}

\setlength{\textwidth}{3.85in}

\begin{document}

\chapter{}

\begin{advice}
\item There is no excuse for those who could be scholars and are not.
\item Study. Obedience: non multa, sed multum — not many things, but well.
\item There is no excuse for those who could be scholars and are not.
\end{advice}

\chapter{}

\begin{advice}
\item Study. Obedience: non multa, sed multum — not many things, but well.
\item
\item
\end{advice}

\end{document}

我使用它resume是因为\chapter列表内部存在很大争议。

在此处输入图片描述

相关内容