新浪博客

latex中的定理和证明环境

2016-09-06 15:04阅读:
内容摘要:定理和证明环境的使用
ewtheorem命令可以定义定理和证明之类的环境,其语法如下:
语法:{环境名}[编号延续]{显示名}[编号层次]
下面定制四个环境:定义、定理、引理和推论,​它们都在一个section内统一编号,引理和推论会延续定理的编号。代码如下:
ewtheorem{definition}{定义}[section]
ewtheorem{theorem}{定理}[section]
ewtheorem{lemma}[theorem]{引理}
ewtheorem{corollary}[theorem]{推论}
例子:​
\begin{definition}​
This is a definition!
\end{definition}
\begin{theorem}
This is a theorem!
\end{theorem}
\begin{lemma}
This is a lemma!
\end{lemma}
\begin{corollary}
This is a corollary!
\end{corollary}
效果:
latex中的定理和证明环境

amsthm宏包提供proof环境用来输入证明,它会在证明结尾加一个QED符号。
例子代码:​
%导言区加上\usepackage{amsthm}​
​\begin{document}
\begin{proof}[证明]
This is the process of proof!
\end{proof}
效果:
latex中的定理和证明环境
​注意:amsthm宏包和ntheorem宏包有冲突!

我的更多文章

下载客户端阅读体验更佳

APP专享