\paragraph
我正在尝试在环境中使用enumerate
,但我一直收到
! LaTeX Error: Something's wrong--perhaps a missing \item.
使用多个enumerate
s(无论是嵌套的还是连续的)似乎都会触发这种情况。
\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}