Open DailyShana opened 1 month ago
A code line like \newtheorem{thm}{Theorem}
was missing from the original example.
As you mentioned in tex comment, the text after displayed equation triggers the error.
A slightly simplified example:
\documentclass{article}
\usepackage{wrapstuff}
\begin{document}
\begin{wrapstuff}[l]
\fbox{\phantom{\rule{3cm}{2cm}}}
\end{wrapstuff}
\begin{trivlist}
\item[]
\[ a^2+b^2=c^2 \]
abc
\end{trivlist}
\end{document}
Yes, I forgot \newtheorem
.
proof environment will have error without the line after displayed equation, probably because of the implicit qed symbol.
\documentclass{ctexart}
\usepackage{wrapstuff}
\usepackage{graphicx}
\usepackage{amsthm}
\begin{document}
\begin{wrapstuff}[l]
\includegraphics[width=4cm]{example-image.pdf}
\end{wrapstuff}
\begin{proof}
\[a^2+b^2=c^2\]
\end{proof}
\end{document}
MME:
log: