2009年5月20日 星期三

latex引用自己的定義編號

\newtheorem{thm}{Theorem}[section] %如果不採用章節做編號,則不用[section]
\newtheorem{defn}[thm]{Definition} %這句定義使得defn環境和thm共享編號
\newtheorem{lem}[thm]{Lemma} %這句定義使得lem環境和thm共享編號
若是latex自己產生的編號
我們不知我們啥時引用到哪個編號
我們就可以使用如下
\begin{thm}
\label{thm1}
……
\end{thm}

引用時
…by Theorem \ref{thm1} on page \pageref{thm1}