看了百度首頁上的一些帖子飒货,要么是沒有講多個(gè)數(shù)學(xué)內(nèi)容如何組織編號(hào)的問題感凤,要么是一些基礎(chǔ)的用法說明不夠齊整丸相,于是整理了一番,暫時(shí)感覺“夠用”竟秫。
1
\newtheorem 是定義 “命題娃惯,定理,肥败,定義趾浅,引理,假設(shè)馒稍,說明皿哨,證明,推論筷黔,例子” 等數(shù)學(xué)內(nèi)容的命令往史。調(diào)用時(shí)需要引用包:\usepackage{amsthm}
。
常用的 “數(shù)學(xué)內(nèi)容” :Proposition佛舱,Theorem,Definition挨决,Lemma请祖,Assumption,Remark脖祈,Proof肆捕,Corollary,Example
2
該命令不使用參數(shù)區(qū)分這些數(shù)學(xué)內(nèi)容盖高,而是提供了三種顯示風(fēng)格:
\theoremstyle{plain}
\theoremstyle{definition}
\theoremstyle{remark}
3
每一個(gè)數(shù)學(xué)內(nèi)容都必須定義一個(gè)唯一的 theorem 環(huán)境慎陵,環(huán)境定義在\begin{document}
之前:
\newtheorem{環(huán)境名}{數(shù)學(xué)內(nèi)容}[section]
例如 \newtheorem{asm}{Assumption}[section]
[chapter] [section] [subsection] 指定了該數(shù)學(xué)內(nèi)容的編號(hào)是按 章/節(jié)/小節(jié) 命名的眼虱。
在正文中使用\begin{環(huán)境名}[名稱]... \end{環(huán)境名}
調(diào)用已經(jīng)定義好的環(huán)境。([名稱]可缺省)
例如 \begin{asm}[PE condition] ... \end{asm}
4
另一種更為常見的編號(hào)方式形如 "Definition 1, Definition 2..." "Assumption 1, Assumption 2..."席纽,即同種類型的數(shù)學(xué)內(nèi)容共同組成一組編號(hào)捏悬。因?yàn)樵撁罱M不區(qū)分?jǐn)?shù)學(xué)內(nèi)容的使用方式,所以我們需要手工組織哪些環(huán)境是同組編號(hào)的:
% 管理一組“定理”
\theoremstyle{definition}
\newtheorem{theo}{Theorem}
% 與環(huán)境 theo 同組編號(hào)
\newtheorem{theo2}[theo]{Theorem}
\newtheorem{theo3}[theo]{Theorem}
% 管理一組“說明”
\theoremstyle{remark}
\newtheorem{rmk}{Remark}
% 與環(huán)境 rmk 同組編號(hào)
\newtheorem{rmk2}[rmk]{Remark}
\newtheorem{rmk3}[rmk]{Remark}
\newtheorem{rmk4}[rmk]{Remark}
5
有一些數(shù)學(xué)內(nèi)容一般是不需要進(jìn)行編號(hào)的润梯,如Proof过牙,在定義時(shí)添加一個(gè)星號(hào)即可:
\newtheorem*{prf}{Proof}
不過,latex自帶一個(gè)proof環(huán)境纺铭,在正文中可以直接調(diào)用:
\begin{proof} ... \end{proof}
小結(jié)
三種顯示風(fēng)格寇钉,三種編號(hào)方式(注意 [] 的內(nèi)容、位置)舶赔。