mirror of
https://github.com/ElegantLaTeX/ElegantBook.git
synced 2026-01-26 04:14:35 +08:00
Page:
数学环境简介
Pages
AboutPullRequest
Acknowledgement
BaseHideOption
Bibliography
ChapterSummary
ColorThemes
CoverLogo
DeviceModeOption
DisplayStyles
Donation
FAQ
Home
Hyphen
Installation
Introduction
Languages
Lists
MathEnvironments
MinimalExample
OnlineUsage
Preface
ProblemSet
RecruitSupportMembers
SetupInstruction
SideNote
SymbolFont
Updates
UserSelectedWorksPlan
convert
介绍
关于提交
列表环境
协作人员招募
参考文献
在线使用模板
安装
封面徽标
常见问题
捐赠
数学环境简介
旁注
更新说明
最小示例
添加序章
用户作品计划
章后习题
章标题显示风格
章节摘要
符号字体
致谢
装饰物
设备选项
设置说明
语言模式
连字符
颜色主题
Clone
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、property,remark、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)等环境都是普通段落环境,引导词加粗。