-
Notifications
You must be signed in to change notification settings - Fork 0
/
thucourse.sty
60 lines (46 loc) · 1.54 KB
/
thucourse.sty
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
\ProvidesPackage{thucourse}
\usepackage[UTF8, scheme=plain, fontset=none]{ctex}
\setmainfont{Sabon LT Std}
\setsansfont{Myriad Pro}
\setmonofont{Input Mono}
\setCJKmainfont{Songti SC}
\setCJKsansfont{PingFang SC}
\setCJKmonofont{Kaiti SC}
\usepackage{multicol}
\usepackage{graphicx}
\usepackage{siunitx}
\newcommand{\zskip}{\!\!\!}
\newcommand{\Zskip}{\zskip\zskip\zskip}
\newenvironment<>{background}
{\setbeamercolor{block title}{bg=darkgray}\begin{block}{\tiny\bf 物理背景}\begin{scriptsize}}
{\end{scriptsize}\end{block}}
\newenvironment<>{concept}
{\begin{alertblock}{\tiny\bf 物理概念}}
{\end{alertblock}}
\newenvironment<>{physics}
{\begin{block}{\tiny\bf 物理图像}\begin{scriptsize}}
{\end{scriptsize}\end{block}}
\newenvironment<>{formula}[1]
{\begin{minipage}{\linewidth}\begin{exampleblock}{\tiny\bf #1}}
{\end{exampleblock}\end{minipage}\\[10pt]}
\newenvironment<>{derivation}
{\begin{minipage}{\linewidth}\setbeamercolor{block title}{bg=lightgray}\begin{block}{\tiny\bf 推导}\begin{scriptsize}}
{\end{scriptsize}\end{block}\end{minipage}\\[10pt]}
%--------------------------------------------------------------------------------
\mode<article>
{\usepackage{fullpage}}
\mode<presentation>
{\usetheme{Darmstadt}
\usecolortheme{whale}
\usefonttheme[onlymath]{serif}}
\graphicspath{{figures/}}
\AtBeginDocument
{\sisetup{math-rm=\mathrm, text-rm=\rmfamily}}
\AtBeginSection[]
{
\begin{frame}
\frametitle{本节目录}
\tableofcontents[currentsection,hideothersubsections]
\end{frame}
}
\endinput