Search Google

Wednesday, March 07, 2007

Numbering theorem/lemma in LaTeX

請參考這個網頁的"Automatic theorem numbering"。

簡言之:
在\begin{document}之前宣告
\newtheorem{thm}{Theorem}[section]
\newtheorem{cor}[thm]{Corollary}
\newtheorem{lem}[thm]{Lemma}

在文中使用
\begin{thm}\label{...} .... \end{thm}
\begin{cor}\label{...} .... \end{cor}
\begin{lem}\label{...} .... \end{lem}
宣告theorem, corollary, and lemma。

No comments: