前言
amsthm是一个LaTeX的宏包,用来设置定理类环境一、amsthm是什么?
amsthm是一个LaTeX的宏包,用来设置定理类环境
二、使用步骤
1.引入宏包
代码如下(示例):
\usepackage{amsthm}
2.设置格式
定理主要分为四种类型。
第一种是定理类,这里设置\theoremstyle为plain,包括定理,引理,命题,推论。
第二类是定义类环境,,这里设置\theoremstyle为defination
包括定义,例子,练习。
第三类是注意类环境,这里设置\theoremstyle为remark,
包括注,注意,情况,和解。
第四类是证明环境,不需要设置,amsthm宏包里自带格式。
% ==============================================================================
% 定理环境
% ==============================================================================
% 定理类环境
\theoremstyle{plain}% default
\newtheorem{theorem}{\hskip 2em 定理}[section]
\newtheorem{lemma}[theorem]{\hskip 2em 引理}
\newtheorem{proposition}[theorem]{\hskip 2em 命题}
\newtheorem*{corollary}{\hskip 2em 推论}
% 定义类环境
\theoremstyle{definition}
\newtheorem{defination}{\hskip 2em 定义}[section]
\newtheorem{example}{\hskip 2em 例}[section]
\newtheorem{exercise}{\hskip 2em 练习}
% 注意类环境
\theoremstyle{remark}
\newtheorem*{remark}{\hskip 2em 注}
\newtheorem*{note}{\hskip 2em 注意}
\newtheorem{case}{\hskip 2em Case}
\newtheorem{solve}{\hskip 2em 解}
总结
提示:这里对文章进行总结:
以上就是今天要讲的内容,本文仅仅简单介绍了amsthm的使用,而amsthm提供了设置定理类环境的方法。