LaTeX エラー: 環境例が定義されていません

LaTeX エラー: 環境例が定義されていません

exampleIEEEtran テンプレートでキーワードを使用する必要がありますが、次のエラーが発生します:

Error: LaTeX Error: Environment example undefined.
Error: LaTeX Error: \begin{document} ended by \end{example}.

これが私のテストスクリプトです:

\documentclass[conference]{IEEEtran}

\begin{document}

\begin{example} Here is my example \end{example}

\end{document}

この問題をどのように解決すればよいか明確に教えていただけますか?

答え1

定理のような環境を で定義する必要があります\newtheorem

\documentclass[conference]{IEEEtran}
\newtheorem{example}{Example}
\begin{document}
\begin{example} Here is my example \end{example}
\end{document}

ここに画像の説明を入力してください

関連情報