我想检测每个定理开头的顺序

我想检测每个定理开头的顺序

我想要检测每个定理开头的顺序。

\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} 

感谢!

相关内容