summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/easybook/doc/chapter1.tex
blob: cca66cef3319922ae3b91b26818baabecf475947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
% Chapter 1

\chapter{多彩盒子}

\begin{outline}
\index{zhaiyao@摘要盒子}
  \item 这是一个摘要盒子。
  \item 它的标题是可选参数,默认标题是摘要。
\end{outline}

\section{定理}
\index{d@定理}
\begin{theorem}[(中文定理\footnote{选自鲁迅的祝福\ref{theorem:gauss formula}。})]
\label{theorem:gauss formula}
\index{d@定理!g@中文定理}
\zhlipsum*[31][name = zhufu]
\end{theorem}

\begin{definition}[(English definition)]
\index{d@定理!s@English definition}
\lipsum*[19]
\end{definition}

\begin{lemma}
这是一个引理。
\end{lemma}

\begin{corollary}
这是一个推论。
\end{corollary}

\begin{proposition}
这是一个性质。
\end{proposition}

\clearpage
\begin{example}
这是一个例。
\end{example}

\begin{remark}
这是一个注。
\end{remark}

\begin{proof}
这是一个证明,末尾自动添加证明结束符。
\end{proof}

\begin{easybox}[DarkCyan](An introduction to aspirin on Wikipedia)
\index{z@自定义盒子}
  \zhlipsum*[59][name = aspirin]
  \tcblower
  \zhlipsum*[59][name = aspirin]
\end{easybox}

\begin{ebparbox}*[Teal](阿司匹林)
  \zhlipsum*[59][name = aspirin]
\end{ebparbox}

\begin{ebparbox}
  \zhlipsum*[59][name = aspirin]
\end{ebparbox}

\begin{exercise}+[LightBlue][1.](习题)[after skip = 3ex][\zhlipsum*[20][name = zhufu]]
\index{x@习题环境}
  \item \zhlipsum*[20][name = zhufu]
    \begin{tasks}
      \task \zhlipsum*[20][name = zhufu]
    \end{tasks}
\end{exercise}