1
数学环境简介
EthanDeng edited this page 2019-11-16 10:31:40 +08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

在我们这个模板中我们定义了两种不同的定理模式mode包括简单模式simple和炫彩模式fancy默认为 fancy 模式,不同模式的选择为

\documentclass[simple]{elegantbook} %or
\documentclass[mode=simple]{elegantbook}

在我们这个模板中,定义了四大类环境

  • 定理类环境:包含标题和内容两部分,全部定理类环境的编号均以章节编号。根据格式的不同分为 3 种
    • definition 环境,颜色为 main
    • theorem、lemma、corollary 环境,颜色为 second
    • proposition 环境,颜色为 third。
  • 示例类环境:有 example、problem、exercise 环境(对应于例、例题、练习),自动编号,编号以章节为单位,其中 exercise 有提示符。
  • 提示类环境:有 note 环境,特点是:无编号,有引导符。
  • 结论类环境:有 conclusion、assumption、propertyremark、solution 环境,三者均以粗体的引导词为开头,和普通段落格式一致。

定理类环境的使用

由于本模板使用了 tcolorbox 宏包来定制定理类环境,所以和普通的定理环境的使用有些许区别,定理的使用方法如下:

\begin{theorem}{theorem name}{label}
The content of theorem.
\end{theorem}

第一个必选项 theorem name 是定理的名字,第二个必选项 label 是交叉引用时所用到的标签,交叉引用的方法为 \ref{thm:label}。请注意,交叉引用时必须加上前缀 thm:

其他相同用法的定理类环境有:

环境名 标签名 前缀 交叉引用
definition label def \ref{def:label}
theorem label thm \ref{thm:label}
lemma label lem \ref{lem:label}
corrlary label cor \ref{cor:label}
proposition label pro \ref{pro:label}

其他数学环境的使用

其他三种数学环境因为没有选项,可以直接使用,比如 example 环境

\begin{example}
This is the content of example environment.
\end{example}

这几个都是同一类环境,区别在于

  • 示例环境(example)、练习(exercise)与例题(problem)章节自动编号;
  • 注意(note),练习(exercise)环境有提醒引导符;
  • 结论(conclusion)等环境都是普通段落环境,引导词加粗。