使用 \paragraph 合并多个枚举

使用 \paragraph 合并多个枚举

\paragraph我正在尝试在环境中使用enumerate,但我一直收到 ! LaTeX Error: Something's wrong--perhaps a missing \item.

使用多个enumerates(无论是嵌套的还是连续的)似乎都会触发这种情况。

\documentclass{article}

\begin{document}

  \begin{enumerate}
    \paragraph{A.1}%This works
    \item
    Working.
  \end{enumerate}

  \paragraph{B}
    This combined with the next enumerate (in any order) allows {\textbackslash}paragraph to work again.
  \begin{enumerate}
%     \paragraph{C.1}%TODO this command breaks: ! LaTeX Error: Something's wrong--perhaps a missing \item.
    \item
    Broken.
  \end{enumerate}

    \begin{enumerate}
    \paragraph{D.1}%This also works
    \item
    Also working.
      \begin{enumerate}
%           \subparagraph{D.1.a}%TODO this command breaks: ! LaTeX Error: Something's wrong--perhaps a missing \item.
      \item
      Broken.
      \end{enumerate}
  \end{enumerate}

\end{document}

相关内容