├── .github
└── example.gif
├── .gitignore
├── LICENSE
├── README.md
├── beamerthemeucas.sty
├── build.sh
├── logo
├── CAS.pdf
└── UCAS.pdf
├── main.tex
├── ref.bib
└── sublogo
├── AMSS.pdf
├── AMSS2018.pdf
└── UCAS.pdf
/.github/example.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/icgw/ucas-beamer/cc75a0af0addaed81482af17055b68df47225338/.github/example.gif
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Core latex/pdflatex auxiliary files:
2 | *.aux
3 | *.lof
4 | *.log
5 | *.lot
6 | *.fls
7 | *.out
8 | *.toc
9 | *.fmt
10 | *.fot
11 | *.cb
12 | *.cb2
13 |
14 | ## Intermediate documents:
15 | *.dvi
16 | *-converted-to.*
17 | # these rules might exclude image files for figures etc.
18 | # *.ps
19 | # *.eps
20 | # *.pdf
21 |
22 | ## Generated if empty string is given at "Please type another file name for output:"
23 | .pdf
24 |
25 | ## Bibliography auxiliary files (bibtex/biblatex/biber):
26 | *.bbl
27 | *.bcf
28 | *.blg
29 | *-blx.aux
30 | *-blx.bib
31 | *.run.xml
32 |
33 | ## Build tool auxiliary files:
34 | *.fdb_latexmk
35 | *.synctex
36 | *.synctex(busy)
37 | *.synctex.gz
38 | *.synctex.gz(busy)
39 | *.pdfsync
40 |
41 | ## Auxiliary and intermediate files from other packages:
42 | # algorithms
43 | *.alg
44 | *.loa
45 |
46 | # achemso
47 | acs-*.bib
48 |
49 | # amsthm
50 | *.thm
51 |
52 | # beamer
53 | *.nav
54 | *.pre
55 | *.snm
56 | *.vrb
57 |
58 | # changes
59 | *.soc
60 |
61 | # cprotect
62 | *.cpt
63 |
64 | # elsarticle (documentclass of Elsevier journals)
65 | *.spl
66 |
67 | # endnotes
68 | *.ent
69 |
70 | # fixme
71 | *.lox
72 |
73 | # feynmf/feynmp
74 | *.mf
75 | *.mp
76 | *.t[1-9]
77 | *.t[1-9][0-9]
78 | *.tfm
79 |
80 | #(r)(e)ledmac/(r)(e)ledpar
81 | *.end
82 | *.?end
83 | *.[1-9]
84 | *.[1-9][0-9]
85 | *.[1-9][0-9][0-9]
86 | *.[1-9]R
87 | *.[1-9][0-9]R
88 | *.[1-9][0-9][0-9]R
89 | *.eledsec[1-9]
90 | *.eledsec[1-9]R
91 | *.eledsec[1-9][0-9]
92 | *.eledsec[1-9][0-9]R
93 | *.eledsec[1-9][0-9][0-9]
94 | *.eledsec[1-9][0-9][0-9]R
95 |
96 | # glossaries
97 | *.acn
98 | *.acr
99 | *.glg
100 | *.glo
101 | *.gls
102 | *.glsdefs
103 |
104 | # gnuplottex
105 | *-gnuplottex-*
106 |
107 | # gregoriotex
108 | *.gaux
109 | *.gtex
110 |
111 | # hyperref
112 | *.brf
113 |
114 | # knitr
115 | *-concordance.tex
116 | # TODO Comment the next line if you want to keep your tikz graphics files
117 | *.tikz
118 | *-tikzDictionary
119 |
120 | # listings
121 | *.lol
122 |
123 | # makeidx
124 | *.idx
125 | *.ilg
126 | *.ind
127 | *.ist
128 |
129 | # minitoc
130 | *.maf
131 | *.mlf
132 | *.mlt
133 | *.mtc[0-9]*
134 | *.slf[0-9]*
135 | *.slt[0-9]*
136 | *.stc[0-9]*
137 |
138 | # minted
139 | _minted*
140 | *.pyg
141 |
142 | # morewrites
143 | *.mw
144 |
145 | # nomencl
146 | *.nlo
147 |
148 | # pax
149 | *.pax
150 |
151 | # pdfpcnotes
152 | *.pdfpc
153 |
154 | # sagetex
155 | *.sagetex.sage
156 | *.sagetex.py
157 | *.sagetex.scmd
158 |
159 | # scrwfile
160 | *.wrt
161 |
162 | # sympy
163 | *.sout
164 | *.sympy
165 | sympy-plots-for-*.tex/
166 |
167 | # pdfcomment
168 | *.upa
169 | *.upb
170 |
171 | # pythontex
172 | *.pytxcode
173 | pythontex-files-*/
174 |
175 | # thmtools
176 | *.loe
177 |
178 | # TikZ & PGF
179 | *.dpth
180 | *.md5
181 | *.auxlock
182 |
183 | # todonotes
184 | *.tdo
185 |
186 | # easy-todo
187 | *.lod
188 |
189 | # xindy
190 | *.xdy
191 |
192 | # xypic precompiled matrices
193 | *.xyc
194 |
195 | # endfloat
196 | *.ttt
197 | *.fff
198 |
199 | # Latexian
200 | TSWLatexianTemp*
201 |
202 | ## Editors:
203 | # WinEdt
204 | *.bak
205 | *.sav
206 |
207 | # Texpad
208 | .texpadtmp
209 |
210 | # Kile
211 | *.backup
212 |
213 | # KBibTeX
214 | *~[0-9]*
215 |
216 | # auto folder when using emacs and auctex
217 | /auto/*
218 |
219 | # expex forward references with \gathertags
220 | *-tags.tex
221 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Guowei Chen
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # `UCAS Beamer` (LaTeX)
2 | ![UCAS Beamer][UCAS Beamer Gif]
3 |
4 | ## 简介
5 | * 简洁、优雅、严肃的 Beamer (LaTeX) 中文模板,供中国科学院大学本科生、硕士生、博士生、等科研工作者学习使用。如果你有任何疑问,无需犹豫,通过 [E-mail](mailto:icgw@outlook.com) 联系我。
6 | * 查看 \[[样例](https://github.com/icgw/ucas-beamer/releases/download/v1.2/template-zh.pdf)\] \[[下载](https://github.com/icgw/ucas-beamer/archive/zh-CN.zip)\]
7 | * 此外,如果你想要 PowerPoint 模版,推荐使用 \[[中国科学院大学官方提供的 PowerPoint 模板][UCAS PPT template Page]\] \[[下载][UCAS PPT template download link]\]
8 |
9 | ## 安装 TeX Live
10 | * [官方安装](https://www.tug.org/texlive/)
11 | * [清华大学开源软件镜像站](https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/)
12 |
13 | ## 在线使用
14 | * 推荐:[Overleaf](https://www.overleaf.com) 在线 LaTeX 编辑器
15 |
16 | ## 使用方法
17 | * 离线使用 (需要安装和配置 TeX 编译环境)
18 | - 方式一:安装完 TeX Live 之后,先用 `xelatex` 对 `main.tex` 编译一次 (生成文本内容和辅助文件),再用 `biber` 编译一次 (通过辅助文件抽取文献引用信息),最后用 `xelatex` 连续编译两次 (将引用标记插入文本内容、生成目录、添加链接等)
19 | - 方式二:`./build.sh main` (Linux 或 Mac)
20 | * 在线使用 (无需安装 TeX 环境但需要连接至互联网)
21 | 1. 下载此模板压缩包并上传至 Overleaf 的 Project
22 | - 模板 \[[下载](https://github.com/icgw/ucas-beamer/releases)\]
23 | - `New Project` - `Upload Project` - `Select a .zip file`
24 | 2. 编译方式选为 `XeLaTeX`
25 | - `Menu` - `Settings` - `Compiler` - `XeLaTeX`
26 | - `Recompile`
27 |
28 | ## 许可说明
29 | 
本作品采用知识共享署名-相同方式共享 4.0 国际许可协议进行许可。
30 |
31 | [UCAS PPT template Page]: http://onestop.ucas.edu.cn/Home/Info/e1e7b553-14c1-42f3-910a-88d25ebf9c48
32 | [UCAS PPT template download link]: http://onestop.ucas.edu.cn/Content/Upload/2019/4/2.zip
33 | [UCAS Beamer Gif]: https://raw.githubusercontent.com/icgw/ucas-beamer/zh-CN/.github/example.gif
34 |
--------------------------------------------------------------------------------
/beamerthemeucas.sty:
--------------------------------------------------------------------------------
1 | \NeedsTeXFormat{LaTeX2e}
2 | \ProvidesPackage{beamerthemeucas}[2020/07/13]
3 |
4 | \mode
5 |
6 | \DeclareOptionBeamer{logo}{\def\ucasbeamer@option@logo{#1}}
7 | \ExecuteOptionsBeamer{logo=UCAS}
8 |
9 | \DeclareOptionBeamer{sublogo}{\def\ucasbeamer@option@sublogo{#1}}
10 | \ExecuteOptionsBeamer{sublogo=AMSS}
11 |
12 | \RequirePackage{booktabs}
13 |
14 | % 无标号的脚注
15 | \newcommand\blfootnote[1]{%
16 | \begingroup
17 | \renewcommand\thefootnote{}\footnote{#1}%
18 | \addtocounter{footnote}{-1}%
19 | \endgroup
20 | }
21 |
22 | % 设置字体
23 | \usefonttheme{professionalfonts}% 数学公式字体
24 |
25 | \ProcessOptionsBeamer%
26 |
27 | % 定义主形象标志 (logo) 和 子形象标识 (sublogo) 的文件夹路径
28 | \def\ucasbeamer@pathname@logo{logo/}
29 | \def\ucasbeamer@pathname@sublogo{sublogo/}
30 |
31 | % 定义主形象标志的文件名
32 | \def\ucasbeamerfilenamelogo{%
33 | \ucasbeamer@pathname@logo \ucasbeamer@option@logo%
34 | }
35 |
36 | % 定义子形象标志的文件名
37 | \def\ucasbeamerfilenamesublogo{%
38 | \ucasbeamer@pathname@sublogo \ucasbeamer@option@sublogo%
39 | }
40 |
41 | % --------------------------------- 预设长度 --------------------------------- %
42 | % 定义边界间隔距离
43 | \newlength{\ucasbeamermargin}
44 | \setlength{\ucasbeamermargin}{14pt}
45 |
46 | % 定义页脚占据的高度
47 | \newlength{\ucasbeamerfootlineheight}
48 | \setlength{\ucasbeamerfootlineheight}{8pt}
49 | % 定义页脚与底边界的距离
50 | \newlength{\ucasbeamerfootlinebottompadding}
51 | \setlength{\ucasbeamerfootlinebottompadding}{6pt}
52 |
53 | % 定义主形象标志的最大宽度
54 | \newlength{\ucasbeamersublogomaxwidth}
55 | \setlength{\ucasbeamersublogomaxwidth}{72pt}
56 | % 定义子形象标识的最大高度
57 | \newlength{\ucasbeamersublogomaxheight}
58 | \setlength{\ucasbeamersublogomaxheight}{36pt}
59 |
60 | % 定义展示页面标题与上边界的间隔
61 | \newlength{\ucasbeamertoppadding}
62 | \setlength{\ucasbeamertoppadding}{12pt}
63 |
64 | % 定义扉页 (title page) 左上角标志的高度
65 | \newlength{\ucasbeamerlogoheighttitlepage}
66 | \setlength{\ucasbeamerlogoheighttitlepage}{36pt}
67 |
68 | % 定义扉页之后 (Not title page) 左上角标志的高度
69 | \newlength{\ucasbeamerlogoheight}
70 | \setlength{\ucasbeamerlogoheight}{24pt}
71 |
72 | % --------------------------------- 预设颜色 --------------------------------- %
73 | \definecolor{ucasbeamer@base}{RGB}{0, 64, 152} % 底色:孔雀蓝
74 | \definecolor{ucasbeamer@graybase}{RGB}{240, 240, 240}
75 | \definecolor{ucasbeamer@gray}{RGB}{130, 130, 130}
76 | \definecolor{ucasbeamer@orange}{RGB}{240, 140, 0}
77 | \definecolor{ucasbeamer@red}{RGB}{210, 26, 66}
78 | \definecolor{ucasbeamer@green}{RGB}{0, 127, 0}
79 |
80 | % -------------------------------- 自定义命令 -------------------------------- %
81 | \providecommand{\red}[1]{{\color{ucasbeamer@red}{#1}}}
82 | \providecommand{\green}[1]{{\color{ucasbeamer@green}{#1}}}
83 |
84 | % -------------------------------- 自定义设置 -------------------------------- %
85 | % 使用页眉(章节题目)
86 | \useoutertheme{infolines}
87 | % 设置 \pause 之后的内容从半透明到完全显示的动态变化
88 | \setbeamercovered{dynamic}
89 | % 设置页码边距
90 | \setbeamersize{%
91 | text margin left=\ucasbeamermargin,
92 | text margin right=\ucasbeamermargin}
93 |
94 | % 设置展示页面的标题与副标题
95 | \setbeamertemplate{frametitle}{%
96 | \vspace{\ucasbeamertoppadding}
97 | \vtop{{%
98 | \usebeamerfont{frametitle}{\insertframetitle}%
99 | \ifx\insertframesubtitle\empty\else\\
100 | \usebeamerfont{framesubtitle}{\insertframesubtitle}
101 | \fi}
102 | \vfill}}
103 |
104 | % 取消底部的导航栏
105 | \setbeamertemplate{navigation symbols}{}
106 |
107 | % 设置背景
108 | \setbeamertemplate{background canvas}{%
109 | \ifnum\value{page}=1
110 | \let\ucasbeamertemplength\ucasbeamerlogoheighttitlepage%
111 | \else
112 | \let\ucasbeamertemplength\ucasbeamerlogoheight%
113 | \fi
114 | \leavevmode\hskip\ucasbeamermargin%
115 | \includegraphics[height=\ucasbeamertemplength]{\ucasbeamerfilenamelogo}
116 | }
117 |
118 | % 设置页脚的信息(姓名、题目、日期、页码)
119 | \setbeamertemplate{footline}{%
120 | \hskip\ucasbeamermargin%
121 | \usebeamercolor[fg]{author in head/foot}%
122 | \usebeamerfont{author in head/foot}\insertshortauthor%
123 | \lower2pt\hbox{\Large$\cdot$}
124 | \usebeamercolor[fg]{title in head/foot}%
125 | \usebeamerfont{title in head/foot}\insertshorttitle%
126 | \lower2pt\hbox{\Large$\cdot$}
127 | \usebeamercolor[fg]{date in head/foot}%
128 | \usebeamerfont{date in head/foot}\insertshortdate%
129 | \hfill
130 | \insertframenumber{} / \inserttotalframenumber%
131 | \hskip\ucasbeamermargin%
132 | \vrule width 0pt height \ucasbeamerfootlineheight%
133 | depth \ucasbeamerfootlinebottompadding}
134 |
135 | % 设置扉页
136 | \setbeamertemplate{title page}{%
137 | \vfill
138 | \begin{center}
139 | {\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle}%
140 | \medskip
141 |
142 | {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle}%
143 | \vfill
144 |
145 | {\usebeamerfont{author} \insertauthor}%
146 | \medskip
147 |
148 | {\usebeamerfont{institute} \insertinstitute}%
149 | \medskip
150 |
151 | \includegraphics%
152 | [
153 | width=.6\textwidth,
154 | height=.15\textheight,
155 | keepaspectratio
156 | ]{\ucasbeamerfilenamesublogo}%
157 | \vfill
158 |
159 | {\usebeamerfont{date}\centering \insertdate}%
160 | \end{center}
161 | }
162 |
163 | % 设置结构 (structure) 的字体及前景颜色
164 | \setbeamerfont{structure}{series=\bfseries}
165 | \setbeamercolor{structure}{fg=ucasbeamer@gray}
166 |
167 | % 设置警示 (alerted) 的字体及前景颜色
168 | \setbeamerfont{alerted text}{series=\bfseries}
169 | \setbeamercolor{alerted text}{fg=ucasbeamer@orange}
170 |
171 | % 设置题目 (title) 的字体、大小及颜色
172 | \setbeamerfont{title}{size=\Large, series=\bfseries}
173 | \setbeamercolor{title}{fg=ucasbeamer@base}
174 | \setbeamerfont{title in head/foot}{size=\tiny, series=\bfseries}
175 | \setbeamercolor{title in head/foot}{parent=structure}
176 |
177 | % 设置作者的字体及大小
178 | \setbeamerfont{author}{series=\bfseries, size=\small}
179 | \setbeamerfont{author in head/foot}{size=\tiny, series=\bfseries}
180 | \setbeamercolor{author in head/foot}{parent=structure}
181 |
182 | % 设置日期的字体大小
183 | \setbeamerfont{date}{size=\footnotesize}
184 | \setbeamerfont{date in head/foot}{size=\tiny, series=\bfseries}
185 | \setbeamercolor{date in head/foot}{parent=structure}
186 |
187 | % 设置项目符号 (item) 为方形 (square)
188 | \setbeamertemplate{itemize items}[square]
189 | % 设置子项目符号 (subitem) 为三角形 (triangle)
190 | \setbeamertemplate{itemize subitem}[triangle]
191 | % 设置子项目的子项目符号 (subsubitem) 为圆形 (circle)
192 | \setbeamertemplate{itemize subsubitem}[circle]
193 |
194 | % 设置 脚注 (footnote) 的字体大小、脚注的标号属性
195 | \setbeamerfont{footnote}{size=\footnotesize}
196 | \setbeamercolor{footnote mark}{parent=structure}
197 |
198 | % 设置幻灯片标题、副标题、章节、子章节的字体及大小
199 | \setbeamerfont{frametitle}{size=\Large, series=\bfseries}
200 | \setbeamercolor{frametitle}{parent=title}
201 |
202 | \setbeamerfont{framesubtitle}{size=\large, series=\bfseries}
203 | \setbeamercolor{framesubtitle}{parent=subtitle}
204 |
205 | \setbeamerfont{section in head/foot}{parent=structure}
206 | \setbeamercolor{section in head/foot}{parent=structure}
207 |
208 | \setbeamerfont{subsection in head/foot}{parent=normal text}
209 | \setbeamercolor{subsection in head/foot}{parent=structure}
210 |
211 | % 设置定理区块显示序号
212 | \setbeamertemplate{theorems}[numbered]
213 |
214 | % 设置证明区块
215 | \addtobeamertemplate{proof begin}{%
216 | \setbeamercolor{block title}{fg=white, bg=ucasbeamer@red!80!white}%
217 | \setbeamercolor{block body}{fg=black, bg=ucasbeamer@red!20!white}%
218 | }{}
219 |
220 | % 设置展示块是否有阴影显示
221 | \setbeamertemplate{blocks}[rounded][shadow=true]
222 |
223 | % 设置展示块,一般块、示例块、警醒块 (block title) 的标题颜色,前景色与背景色
224 | \setbeamercolor{block title}{fg=white, bg=ucasbeamer@base}
225 | \setbeamercolor{block title example}{%
226 | use=alerted text, fg=white, bg=ucasbeamer@gray}
227 | \setbeamercolor{block title alerted}{%
228 | use=alerted text, fg=white, bg=ucasbeamer@orange}
229 |
230 | % 设置展示块内容的文本颜色、背景颜色
231 | \setbeamercolor{block body}{%
232 | parent=normal text, use=block title,
233 | bg=block title.bg!10!bg}
234 | \setbeamercolor{block body example}{%
235 | parent=normal text, bg=ucasbeamer@graybase}
236 | \setbeamercolor{block body alerted}{%
237 | parent=normal text, use=block title alerted,
238 | bg=block title alerted.bg!10!bg}
239 |
240 | % 设置参考文献显示书本、网络、文章的标志
241 | \setbeamertemplate{bibliography item}{%
242 | \ifboolexpr{test {\ifentrytype{book}} or test {\ifentrytype{mvbook}}
243 | or test {\ifentrytype{collection}} or test {\ifentrytype{mvcollection}}
244 | or test {\ifentrytype{reference}} or test {\ifentrytype{mvreference}} }
245 | {\setbeamertemplate{bibliography item}[book]}
246 | {\ifentrytype{online}
247 | {\setbeamertemplate{bibliography item}[online]}
248 | {\setbeamertemplate{bibliography item}[article]}}%
249 | \usebeamertemplate{bibliography item}}
250 |
251 | \mode
252 | \endinput
253 |
--------------------------------------------------------------------------------
/build.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | #
3 | # build.sh
4 | # Copyright (C) 2019 Guowei Chen
5 | #
6 | # Distributed under terms of the GPL license.
7 | #
8 | set -e
9 |
10 | #
11 | # 获取 TeX 文件名
12 | #
13 | if [[ $# == "1" ]]; then
14 | fileName=`echo *.tex`
15 | else
16 | echo "---------------------------------------------------------------------------"
17 | echo "Usage: "$0" "
18 | echo "TeX engine XeLaTeX"
19 | echo "Bib engine Biber"
20 | echo "---------------------------------------------------------------------------"
21 | exit
22 | fi
23 | fileName=${fileName%".tex"}
24 |
25 | #
26 | # 设置 TeX 编译方式
27 | #
28 | texC="xelatex"
29 |
30 | #
31 | # 设置文献信息编译方式
32 | #
33 | bibC="biber"
34 |
35 | # 设置 LaTeX 环境变量和搜索路径为当前目录
36 | export TEXINPUTS=".//:$TEXINPUTS" # *.tex 的路径
37 | export BIBINPUTS=".//:$BIBINPUTS" # *.bib 的路径
38 | export BSTINPUTS=".//:$BSTINPUTS" # *.bst 的路径
39 |
40 | tmpDir="temp"
41 | if [[ ! -d ${tmpDir} ]]; then
42 | mkdir -p ${tmpDir}/
43 | fi
44 |
45 | # 编译文本内容和辅助文件
46 | ${texC} -output-directory=${tmpDir} ${fileName} || exit
47 |
48 | # 编译引用和链接
49 | if [[ -n ${bibC} ]]; then
50 | # 在辅助文件中添加路径
51 | sed -i -e "s|\@input{|\@input{${tmpDir}/|g" ${tmpDir}/"$fileName".aux
52 | # 通过辅助文件抽取文献引用格式
53 | ${bibC} ${tmpDir}/${fileName} || exit
54 | # 插入引用标记到文本内容
55 | ${texC} -output-directory=${tmpDir} ${fileName} || exit
56 | # 重新精炼引用和链接
57 | ${texC} -output-directory=${tmpDir} ${fileName} || exit
58 | fi
59 |
60 | # 设置 PDF 阅读器
61 | if [[ `uname` == "Linux" ]]; then
62 | pdfViwer="xdg-open"
63 | else
64 | pdfViwer="open"
65 | fi
66 |
67 | ${pdfViwer} ./${tmpDir}/${fileName}.pdf || exit
68 | echo "---------------------------------------------------------------------------"
69 | echo "${texC} ${bibC} ${fileName}.tex finished..."
70 | echo "---------------------------------------------------------------------------"
71 |
--------------------------------------------------------------------------------
/logo/CAS.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/icgw/ucas-beamer/cc75a0af0addaed81482af17055b68df47225338/logo/CAS.pdf
--------------------------------------------------------------------------------
/logo/UCAS.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/icgw/ucas-beamer/cc75a0af0addaed81482af17055b68df47225338/logo/UCAS.pdf
--------------------------------------------------------------------------------
/main.tex:
--------------------------------------------------------------------------------
1 | % 默认页面大小 4:3
2 | \documentclass[10pt]{ctexbeamer}
3 | % 页面大小 16:10
4 | % \documentclass[10pt, aspectratio=1610]{ctexbeamer}
5 | % 页面大小 16:9
6 | % \documentclass[10pt, aspectratio=169]{ctexbeamer}
7 | % 页面大小 14:9
8 | % \documentclass[10pt, aspectratio=149]{ctexbeamer}
9 | % 页面大小 1.41:1
10 | % \documentclass[10pt, aspectratio=141]{ctexbeamer}
11 | % 页面大小 5:4
12 | % \documentclass[10pt, aspectratio=54]{ctexbeamer}
13 | % 页面大小 3:2
14 | % \documentclass[10pt, aspectratio=32]{ctexbeamer}
15 |
16 | \usetheme[logo=UCAS, sublogo=AMSS]{ucas}
17 | % logo 的选项: CAS, UCAS
18 | % sublogo 的选项: AMSS, AMSS2018, UCAS
19 |
20 | % 引入参考文献列表的 .bib 文件, 使用 GB/T 7714-2015 的文献著录规则.
21 | \usepackage[backend=biber, style=gb7714-2015]{biblatex}
22 | \addbibresource{ref.bib}
23 |
24 | \title[UCAS Beamer (\LaTeX{})]{中国科学院大学 Beamer (\LaTeX{})}
25 | \subtitle[非官方]{非官方的模版}
26 | \author[G.\,Chen]{\href{mailto:icgw@outlook.com}{陈国威}}
27 | \institute[AMSS, CAS]{中国科学院数学与系统科学研究院}
28 | \date[\today]{\today, 中国北京}
29 | \subject{展示主题}
30 | \keywords{展示, 关键词}
31 |
32 | \begin{document}
33 |
34 | \begin{frame}[plain]
35 | \maketitle
36 | \end{frame}
37 |
38 | \begin{frame}[t]
39 | \frametitle{目录}
40 | \tableofcontents
41 | \end{frame}
42 |
43 | \section[第 1 章缩写标题]{第 1 章标题}\label{sec:1}
44 | \subsection[第 1 节缩写标题]{第 1 节标题}\label{subsec:1-1}
45 |
46 | \begin{frame}[t]
47 | \frametitle{幻灯片标题}
48 | \framesubtitle{幻灯片副标题}
49 | 平凡格式\quad\structure{浅灰格式}\quad\alert{强调格式}
50 | \begin{itemize}
51 | \item 第一级文本内容
52 | \item 若该行文本内容十分长长长长长长长长长则会被强制换行
53 | 这里也可以包含\alert{需要强调的文本}
54 | \begin{itemize}
55 | \item 第二级文本内容
56 | \begin{itemize}
57 | \item 第三级文本内容
58 | \end{itemize}
59 | \alert{\item 第二级强调的文本内容}
60 | \end{itemize}
61 | \end{itemize}
62 | \pause% 动态展示以下内容
63 | \begin{enumerate}
64 | \item 带序号的文本内容
65 | \begin{enumerate}
66 | \item 第二级文本内容且包含数学公式
67 | \[\int^{\infty}_{-\infty}e^{-x^2}dx = \sqrt{\pi}\]
68 | \end{enumerate}
69 | \end{enumerate}
70 | \end{frame}
71 |
72 | \subsection[第 2 节缩写标题]{第 2 节标题}\label{subsec:1-2}
73 |
74 | \begin{frame}[t]
75 | \frametitle{文本区块}
76 | 将文本放入区块内
77 | \begin{block}{普通区块}
78 | 见 \citeauthor{guowei2019ucasbeamer}(\citeyear{guowei2019ucasbeamer}) 提供的模板
79 | \end{block}
80 | \begin{exampleblock}{示例区块}
81 | \red{红色}
82 | \end{exampleblock}
83 | \begin{alertblock}{强调区块}
84 | \green{绿色}
85 | \end{alertblock}
86 | 脚注\footnote{\url{https://github.com/icgw/ucas-beamer}}
87 | \end{frame}
88 |
89 | % \begin{frame}[t]
90 | % \frametitle{图像}
91 | % \begin{figure}
92 | % \includegraphics[width=.5\textwidth, height=.5\textheight, keepaspectratio]{cow-black.mps}
93 | % \caption{荷斯坦黑白花牛}
94 | % \end{figure}
95 | % \end{frame}
96 |
97 | \subsection[第 3 节缩写标题(虽然是缩写也可以很长长长长长长)]{第 3 节标题}\label{subsec:1-3}
98 |
99 | \begin{frame}[t]
100 | \frametitle{表格}
101 | \begin{table}
102 | \begin{tabular}{lcl}\toprule
103 | 姓名 & 出生年份 & 母校 (本科) \\ \midrule
104 | 陶哲轩 & 1975 & 弗林德斯大学 \\
105 | 张益唐 & 1955 & 北京大学 \\
106 | 丘成桐 & 1949 & 香港中文大学 \\ \bottomrule
107 | \end{tabular}
108 | \caption{二十一世纪的数学家}
109 | \end{table}
110 | \end{frame}
111 |
112 | \begin{frame}[t]
113 | \frametitle{引用}
114 | \begin{theorem}[\citeauthor{graham1989concrete}\citeyear{graham1989concrete}]\label{thm1}
115 | \[\textbf{具体 (\red{Concrete})} = \textbf{连续 (\red{Con}tinuous)} + \textbf{离散 (Dis\red{crete})}\]
116 | \end{theorem}
117 | \vfill
118 | \begin{proof}
119 | 证明过程.
120 | \end{proof}
121 | 引用定理~\ref{thm1}.
122 | \blfootnote{\printbibliography[heading=none,keyword={concrete}]}
123 | \end{frame}
124 |
125 | \section[第 2 章缩写标题也可以很长长长长长长长长长]{第二章标题}\label{sec:2}
126 | \subsection*{第 4 节缩写标题 (不在目录显示)}\label{sec:2-1}
127 | \makeatletter
128 | \begin{frame}[t]
129 | \frametitle{自定义字体大小}
130 | \begin{center}
131 | \begin{tabular}{ll}
132 | \Huge $\backslash$Huge & \Huge \structure{24.88 pt} \\
133 | \huge $\backslash$huge & \huge \structure{20.74 pt} \\
134 | \LARGE $\backslash$LARGE & \LARGE \structure{17.28 pt} \\
135 | \Large $\backslash$Large & \Large \structure{14.4 pt} \\
136 | \large $\backslash$large & \large \structure{12 pt} \\
137 | \normalsize $\backslash$normalsize & \normalsize \structure{10 pt} \\
138 | \small $\backslash$small & \small \structure{9 pt} \\
139 | \footnotesize $\backslash$footnotesize & \footnotesize \structure{8 pt} \\
140 | \scriptsize $\backslash$scriptsize & \scriptsize \structure{7 pt} \\
141 | \tiny $\backslash$tiny & \tiny \structure{5 pt}
142 | \end{tabular}
143 | \end{center}
144 | \end{frame}
145 | \makeatother
146 |
147 | \begin{frame}[noframenumbering, allowframebreaks, t]
148 | \frametitle{参考文献}
149 | \nocite{*}% 打印未引用,但已列入 .bib 文件内的文献
150 | \printbibliography%
151 | \end{frame}
152 |
153 | \begin{frame}[plain]
154 | \vfill
155 | \centerline{\Huge 谢谢}
156 | \vfill
157 | \end{frame}
158 |
159 | \end{document}
160 |
--------------------------------------------------------------------------------
/ref.bib:
--------------------------------------------------------------------------------
1 | @online {guowei2019ucasbeamer,
2 | author = {陈国威},
3 | title = {中国科学院大学 Beamer (\LaTeX{}) --- 非官方的模版},
4 | month = {11},
5 | year = {2019},
6 | url = {https://github.com/icgw/ucas-beamer},
7 | note = {非官方的模版}
8 | }
9 |
10 | @online {ctexorg2020ctex,
11 | author = {CTEX.ORG},
12 | title = {\CTeX{} 宏集手册},
13 | month = {6},
14 | year = {2020},
15 | url = {https://mirrors.tuna.tsinghua.edu.cn/CTAN/language/chinese/ctex/ctex.pdf},
16 | }
17 |
18 | @misc {tantau2004user,
19 | title = {User Guide to the Beamer Class},
20 | author = {Tantau, Till and Wright, J and Miletic, V},
21 | year = {2004},
22 | publisher = {Version}
23 | }
24 |
25 | @article{graham1989concrete,
26 | title = {Concrete mathematics: a foundation for computer science},
27 | author = {Graham, Ronald L and Knuth, Donald E and Patashnik, Oren and Liu, Stanley},
28 | journal = {Computers in Physics},
29 | volume = {3},
30 | number = {5},
31 | pages = {106--107},
32 | year = {1989},
33 | publisher = {American Institute of Physics},
34 | keywords = {concrete}
35 | }
36 |
--------------------------------------------------------------------------------
/sublogo/AMSS.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/icgw/ucas-beamer/cc75a0af0addaed81482af17055b68df47225338/sublogo/AMSS.pdf
--------------------------------------------------------------------------------
/sublogo/AMSS2018.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/icgw/ucas-beamer/cc75a0af0addaed81482af17055b68df47225338/sublogo/AMSS2018.pdf
--------------------------------------------------------------------------------
/sublogo/UCAS.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/icgw/ucas-beamer/cc75a0af0addaed81482af17055b68df47225338/sublogo/UCAS.pdf
--------------------------------------------------------------------------------