![我想检测每个定理开头的顺序](https://linux22.com/image/396313/%E6%88%91%E6%83%B3%E6%A3%80%E6%B5%8B%E6%AF%8F%E4%B8%AA%E5%AE%9A%E7%90%86%E5%BC%80%E5%A4%B4%E7%9A%84%E9%A1%BA%E5%BA%8F.png)
我想要检测每个定理开头的顺序。
\documentclass{article}
\usepackage{ifthen,ntheorem}
\newtheorem{ex}{Exam}
\begin{document}
\begin{ex}
\LaTeX{} There is the LaTeX command at the beginning of the theorem.\\
Returns the result as True
\end{ex}
\begin{ex}
There is no LaTeX command at the beginning of the theorem environment
\LaTeX{} \\
Returns the result as False
\end{ex}
\end{document}
感谢!