为什么当环境中有\paragraph{}
(或\subparagraph{}
)时会出现错误quote
?
对于下面的例子
\documentclass[]{article}
\begin{document}
\begin{quote}
\paragraph{My header}
Some text.
\end{quote}
\end{document}
我有
$ pdflatex --version
pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013)
$ pdflatex bug-sample.tex
...
! LaTeX Error: Something's wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.7 \end{quote}
答案1
这不是答案,而是一种解决方法:
\documentclass{article}
\begin{document}
\begin{quote}
\mbox{}%
\paragraph{My heading} starts something.
\end{quote}
\end{document}