├── logo.pdf ├── All-Setting.pdf ├── Madrid-demo.pdf ├── Warsaw-demo.pdf ├── mtheme-demo.pdf ├── Boadilla-demo.pdf ├── Default-demo.pdf ├── PaloAlto-demo.pdf ├── CambridgeUS-demo.pdf ├── Darmstadt-demo.pdf ├── Frankfurt-demo.pdf ├── Madrid-demo-cn.pdf ├── Montpellier-demo.pdf ├── Rochester-demo.pdf ├── Singapore-demo.pdf ├── Warsaw-demo-cn.pdf ├── mtheme-demo-cn.pdf ├── mtheme-spruce-cn.pdf ├── Darmstadt-demo-cn.pdf ├── Frankfurt-demo-cn.pdf ├── mtheme-custom-demo.pdf ├── README.md ├── figures ├── image1-eps-converted-to.pdf └── image2-eps-converted-to.pdf ├── #delete-temp-files.bat ├── compile-pdflatex.sh ├── compile-pdflatex.bat ├── mtheme-demo.tex ├── Boadilla-demo.tex ├── Darmstadt-demo.tex ├── Default-demo.tex ├── CambridgeUS-demo.tex ├── Madrid-demo.tex ├── Montpellier-demo.tex ├── Singapore-demo.tex ├── PaloAlto-demo.tex ├── Warsaw-demo.tex ├── Madrid-demo-cn.tex ├── Darmstadt-demo-cn.tex ├── Frankfurt-demo.tex ├── Rochester-demo.tex └── Frankfurt-demo-cn.tex /logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/logo.pdf -------------------------------------------------------------------------------- /All-Setting.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/All-Setting.pdf -------------------------------------------------------------------------------- /Madrid-demo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/Madrid-demo.pdf -------------------------------------------------------------------------------- /Warsaw-demo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/Warsaw-demo.pdf -------------------------------------------------------------------------------- /mtheme-demo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/mtheme-demo.pdf -------------------------------------------------------------------------------- /Boadilla-demo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/Boadilla-demo.pdf -------------------------------------------------------------------------------- /Default-demo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/Default-demo.pdf -------------------------------------------------------------------------------- /PaloAlto-demo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/PaloAlto-demo.pdf -------------------------------------------------------------------------------- /CambridgeUS-demo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/CambridgeUS-demo.pdf -------------------------------------------------------------------------------- /Darmstadt-demo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/Darmstadt-demo.pdf -------------------------------------------------------------------------------- /Frankfurt-demo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/Frankfurt-demo.pdf -------------------------------------------------------------------------------- /Madrid-demo-cn.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/Madrid-demo-cn.pdf -------------------------------------------------------------------------------- /Montpellier-demo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/Montpellier-demo.pdf -------------------------------------------------------------------------------- /Rochester-demo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/Rochester-demo.pdf -------------------------------------------------------------------------------- /Singapore-demo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/Singapore-demo.pdf -------------------------------------------------------------------------------- /Warsaw-demo-cn.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/Warsaw-demo-cn.pdf -------------------------------------------------------------------------------- /mtheme-demo-cn.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/mtheme-demo-cn.pdf -------------------------------------------------------------------------------- /mtheme-spruce-cn.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/mtheme-spruce-cn.pdf -------------------------------------------------------------------------------- /Darmstadt-demo-cn.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/Darmstadt-demo-cn.pdf -------------------------------------------------------------------------------- /Frankfurt-demo-cn.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/Frankfurt-demo-cn.pdf -------------------------------------------------------------------------------- /mtheme-custom-demo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/mtheme-custom-demo.pdf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # LaTeX Beamer themes 2 | 3 | Classical Beamer theme with extral setting. 4 | 5 | 经典 Beamer 主题添加了一些自定义的元素。 -------------------------------------------------------------------------------- /figures/image1-eps-converted-to.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/figures/image1-eps-converted-to.pdf -------------------------------------------------------------------------------- /figures/image2-eps-converted-to.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andy123t/Beamer-Themes/HEAD/figures/image2-eps-converted-to.pdf -------------------------------------------------------------------------------- /#delete-temp-files.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | del /q *.aux *.bbl *.blg *.log *.out *.toc *.bcf *.xml *.synctex *.nlo *.nls *.bak *.ind *.idx *.ilg *.lof *.lot *.ent-x *.tmp *.ltx *.los *.lol *.loc *.listing *.gz *.userbak *.nav *.snm *.vrb *.synctex(busy) 3 | 4 | 5 | del /q *.nav *.snm *.vrb *.fls *.xdv *.fdb_latexmk -------------------------------------------------------------------------------- /compile-pdflatex.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #-> Get source filename 4 | find . -name "*.tex"|while read FileName; 5 | do 6 | #--- Process FileName.tex --- 7 | echo "$FileName" 8 | echo "${FileName%.tex}" 9 | #-> Compile the main file 10 | pdflatex --synctex=-1 "$FileName" 11 | pdflatex --synctex=-1 "$FileName" 12 | #clear aux files 13 | rm -r *.aux *.bbl *.blg *.log *.out *.toc *.bcf *.xml *.synctex *.nlo *.nls *.bak *.ind *.idx *.ilg *.lof *.lot *.ent-x *.tmp *.ltx *.los *.lol *.loc *.listing *.gz *.userbak *.nav *.snm *.vrb 14 | done 15 | 16 | -------------------------------------------------------------------------------- /compile-pdflatex.bat: -------------------------------------------------------------------------------- 1 | @rem ------------------------------------------------ 2 | @rem LaTeX Automated Compiler 3 | @rem ------------------------------------------------ 4 | @echo off 5 | @rem ------------------------------------------------ 6 | @rem ->> Set tex compiler 7 | @rem ------------------------------------------------ 8 | set CompileName="pdflatex" 9 | @rem ------------------------------------------------ 10 | @rem ------------------------------------------------ 11 | @rem ->> Get source filename 12 | @rem ------------------------------------------------ 13 | for %%F in (*.tex) do ( 14 | set FileName=%%~nF 15 | ) 16 | @rem ------------------------------------------------ 17 | @rem ->> Set environmental variables 18 | @rem ------------------------------------------------ 19 | set TEXINPUTS=.//;%TEXINPUTS% 20 | set BIBINPUTS=.//;%BIBINPUTS% 21 | set BSTINPUTS=.//;%BSTINPUTS% 22 | @rem ------------------------------------------------ 23 | @rem ->> Build textual content 24 | @rem ------------------------------------------------ 25 | %CompileName% %FileName% 26 | %CompileName% %FileName% 27 | @rem ------------------------------------------------ 28 | @rem ->> Delete temporary file 29 | @rem ------------------------------------------------ 30 | del /q *.aux *.bbl *.blg *.log *.out *.toc *.bcf *.xml *.synctex *.nlo *.nls *.bak *.ind *.idx *.ilg *.lof *.lot *.ent-x *.tmp *.ltx *.los *.lol *.loc *.listing *.gz *.userbak *.nav *.snm *.vrb *.synctex(busy) 31 | del /q *.nav *.snm *.vrb *.fls *.xdv *.fdb_latexmk 32 | @rem ------------------------------------------------ 33 | @rem ->> View compiled file 34 | @rem ------------------------------------------------ 35 | echo ------------------------------------------------ 36 | echo %CompileName% %FileName%.tex finished... 37 | echo ------------------------------------------------ 38 | 39 | -------------------------------------------------------------------------------- /mtheme-demo.tex: -------------------------------------------------------------------------------- 1 | \documentclass[notheorems,11pt]{beamer} 2 | 3 | \usetheme{metropolis} 4 | \usepackage{appendixnumberbeamer} 5 | 6 | \usepackage[scale=2]{ccicons} 7 | 8 | \usepackage{pgfplots} 9 | \usepgfplotslibrary{dateplot} 10 | 11 | \metroset{block=fill} 12 | \usepackage{xspace} 13 | \newcommand{\themename}{\textbf{\textsc{metropolis}}\xspace} 14 | 15 | \usefonttheme[onlymath]{serif} 16 | 17 | %----------- Packages ------------- 18 | %\usepackage[latin1]{inputenc} 19 | %\usepackage{times} 20 | %\usepackage[T1]{fontenc} 21 | 22 | \usepackage[english]{babel} 23 | \usepackage{amsmath,amssymb,version} 24 | \usepackage{graphicx,fancybox,mathrsfs,multirow} 25 | \usepackage{booktabs} 26 | \usepackage{epsfig,epstopdf} 27 | \usepackage{url,hyperref} 28 | \usepackage{tabularx,array,makecell} 29 | \usepackage{color,xcolor} 30 | \usepackage{cases} 31 | \usepackage{mathtools} 32 | \usepackage{tikz} 33 | 34 | %\setbeamerfont{normal text}{family=\rmfamily} 35 | %\setbeamerfont{frametitle}{family=\sffamily} 36 | %\setbeamerfont{title}{family=\sffamily} 37 | %%\setbeamerfont{subtitle}{family=\sffamily} 38 | %\setbeamerfont{institute}{family=\rmfamily} 39 | %\setbeamerfont{author}{family=\rmfamily} 40 | %\setbeamerfont{date}{family=\rmfamily} 41 | %\setbeamerfont{headline}{family=\sffamily} 42 | %\setbeamerfont{footline}{family=\rmfamily} 43 | %\setbeamerfont{section in toc}{family=\rmfamily} 44 | %\setbeamerfont{subsection in toc}{family=\rmfamily} 45 | %\AtBeginDocument{\usebeamerfont{normal text}} 46 | 47 | \definecolor{iron}{RGB}{0,82,67} 48 | \setbeamercolor{frametitle}{bg=iron} 49 | %\setbeamercolor{progress bar}{fg=iron,bg=iron} 50 | 51 | %---------- Theorem environment ---------- 52 | \setbeamertemplate{theorems}[nonumbered] %numbered 53 | \newtheorem{theorem}{Theorem} 54 | %\numberwithin{theorem}{section} 55 | \newtheorem{definition}{Definition} 56 | %\numberwithin{definition}{section} 57 | \newtheorem{lemma}{Lemma} 58 | %\numberwithin{lemma}{section} 59 | \newtheorem{proposition}{Proposition} 60 | %\numberwithin{proposition}{section} 61 | \newtheorem{corollary}{Corollary} 62 | %\numberwithin{corollary}{section} 63 | \theoremstyle{example} 64 | \newtheorem{example}{Example} 65 | %\numberwithin{example}{section} 66 | \renewenvironment{proof}[1][Proof]{\textit{#1}:~}{\qed\par} 67 | 68 | \setbeamertemplate{caption}[numbered] 69 | \numberwithin{figure}{section} 70 | \numberwithin{table}{section} 71 | \numberwithin{equation}{section} 72 | 73 | %\title{Metropolis} 74 | %\subtitle{A modern beamer theme} 75 | %\date{\today} 76 | %\author{Matthias Vogelgesang} 77 | %\institute{Center for modern beamer themes} 78 | 79 | %---------- Define new table commands ---------- 80 | \newcolumntype{P}[1]{>{\centering \arraybackslash}p{#1}} 81 | \newcolumntype{L}{X} 82 | \newcolumntype{C}{>{\centering \arraybackslash}X} 83 | \newcolumntype{R}{>{\raggedleft \arraybackslash}X} 84 | 85 | 86 | \title[Short title]{Full Title of the Talk} 87 | \subtitle{A modern beamer theme} 88 | \author[Matthias V.]{Matthias Vogelgesang} % Your name 89 | \institute[CMBT]{Center for modern beamer themes \\ % Your institution for the title page 90 | \medskip 91 | \textit{xyz@math.univ.edu.} % Your email address 92 | } 93 | \date{\today} % Date, can be changed to a custom date 94 | 95 | 96 | \graphicspath{{./figures/}} 97 | 98 | % \titlegraphic{\hfill\includegraphics[height=1.5cm]{logo.pdf}} 99 | 100 | \begin{document} 101 | \maketitle 102 | 103 | % only change the spacing of body text 104 | %\setlength{\baselineskip}{15pt} 105 | 106 | \begin{frame}{Table of contents} 107 | %\bfseries 108 | \setbeamertemplate{section in toc}[sections numbered] 109 | \tableofcontents[hideallsubsections] 110 | \end{frame} 111 | 112 | 113 | %-------------------------------------------------------------------------------- 114 | % PRESENTATION SLIDES 115 | %-------------------------------------------------------------------------------- 116 | 117 | %------------------------------------------------ 118 | \section{First Section} % Sections can be created in order to organize your presentation into discrete blocks, all sections and subsections are automatically printed in the table of contents as an overview of the talk 119 | %------------------------------------------------ 120 | 121 | \subsection{Subsection Example} % A subsection can be created just before a set of slides with a common theme to further break down your presentation into chunks 122 | 123 | \begin{frame} 124 | \frametitle{Paragraphs of Text} 125 | This is paragraphs of text. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. \\~\\ 126 | 127 | The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 128 | \end{frame} 129 | 130 | %------------------------------------------------ 131 | 132 | \begin{frame} 133 | \frametitle{Lists} 134 | 135 | \begin{enumerate} 136 | \item This is a enumerate environment. 137 | \item This is a enumerate environment. 138 | \item This is a enumerate environment. 139 | \end{enumerate} 140 | 141 | \vspace{2ex} 142 | \begin{itemize}[<+-| alert@+>] 143 | \item This is a itemize environment. 144 | \item This is a itemize environment. 145 | \item This is a itemize environment. 146 | \end{itemize} 147 | \end{frame} 148 | 149 | %------------------------------------------------ 150 | 151 | \begin{frame} 152 | \frametitle{Blocks of Highlighted Text} 153 | \begin{block}{Block Title} 154 | This is the block environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 155 | \end{block} 156 | 157 | \begin{exampleblock}{Block Title} 158 | This is the exampleblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 159 | \end{exampleblock} 160 | 161 | \begin{alertblock}{Block Title} 162 | This is the alertblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 163 | \end{alertblock} 164 | \end{frame} 165 | 166 | %------------------------------------------------ 167 | 168 | \begin{frame} 169 | \frametitle{Multiple Columns} 170 | \begin{columns}[c] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment 171 | 172 | \column{0.5\textwidth} 173 | This is a text in first column. 174 | $$E=mc^2$$ 175 | \begin{itemize} 176 | \item First item 177 | \item Second item 178 | \end{itemize} 179 | 180 | \column{0.5\textwidth} 181 | This text will be in the second column 182 | and on a second tought this is a nice looking 183 | layout in some cases. 184 | 185 | \end{columns} 186 | \end{frame} 187 | 188 | %------------------------------------------------ 189 | \section{Second Section} 190 | %------------------------------------------------ 191 | 192 | \begin{frame} 193 | \frametitle{Theorem} 194 | 195 | \begin{definition} 196 | This is a definition environment. 197 | \end{definition} 198 | 199 | 200 | \begin{lemma} 201 | This is a lemma environment. 202 | \end{lemma} 203 | 204 | \begin{proposition} 205 | This is a proposition environment. 206 | \end{proposition} 207 | 208 | \begin{theorem}[Mass--energy] 209 | This is a theorem environment. 210 | \end{theorem} 211 | 212 | \begin{proof} 213 | This is a proof environment. 214 | \end{proof} 215 | \end{frame} 216 | 217 | %------------------------------------------------ 218 | 219 | \begin{frame} 220 | \frametitle{Formula and Table} 221 | 222 | This is Pythagorean's theorem 223 | \begin{equation}\label{Pythagorean} 224 | a^2+b^2=c^2. 225 | \end{equation} 226 | 227 | This is a simple three-line table. 228 | \begin{table} 229 | \caption{Table caption} 230 | \begin{tabular}{l l l} 231 | \toprule 232 | Treatments & Response 1 & Response 2 \\ 233 | \midrule 234 | Treatment 1 & 0.0003262 & 0.562 \\ 235 | Treatment 2 & 0.0015681 & 0.910 \\ 236 | Treatment 3 & 0.0009271 & 0.296 \\ 237 | \bottomrule 238 | \end{tabular} 239 | \end{table} 240 | 241 | \end{frame} 242 | 243 | %------------------------------------------------ 244 | 245 | \begin{frame} 246 | \frametitle{} 247 | The new command PLCR is defined to set the length of the width of the table. They can be used in the tabularx environment. 248 | 249 | \begin{table}[!htp] 250 | \centering 251 | \renewcommand\arraystretch{1.05} 252 | \caption{A sample of the height and weight of students.} 253 | \label{tab2:heightweight} 254 | % PLCR is defined in the preamble 255 | \begin{tabularx}{0.8\textwidth}{lCCC} 256 | \toprule %\Xhline{2\arrayrulewidth} 257 | Number & Age & Height & Weight\\ 258 | \midrule 259 | 1&14&156&42\\ 260 | 2&16&158&45\\ 261 | 3&14&162&48\\ 262 | 4&15&163&50\\ 263 | \cmidrule{2-4} 264 | Mean &15&159.75&46.25\\ 265 | \bottomrule 266 | \end{tabularx} 267 | \end{table} 268 | \end{frame} 269 | 270 | %------------------------------------------------ 271 | 272 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 273 | \frametitle{Verbatim} 274 | \begin{example}[Theorem Slide Code] 275 | \begin{verbatim} 276 | \begin{frame} 277 | \frametitle{Theorem} 278 | \begin{theorem}[Mass--energy equivalence] 279 | $E = mc^2$ 280 | \end{theorem} 281 | \end{frame}\end{verbatim} 282 | \end{example} 283 | 284 | \begin{theorem}[Mass--energy equivalence] 285 | $E = mc^2$ 286 | \end{theorem} 287 | \end{frame} 288 | 289 | %------------------------------------------------ 290 | 291 | \begin{frame} 292 | \frametitle{Figure} 293 | 294 | Uncomment the code on this slide to include your own image from the same directory as the template .TeX file. 295 | \begin{figure}[htp!] 296 | \centering 297 | \includegraphics[width=0.6\linewidth]{image1.eps} 298 | \end{figure} 299 | \end{frame} 300 | 301 | %------------------------------------------------ 302 | 303 | \begin{frame} 304 | \frametitle{Two pictures} 305 | \begin{figure}[htb] 306 | \centering 307 | \begin{minipage}{0.48\linewidth} 308 | \centering 309 | \includegraphics[width=\linewidth]{image1} 310 | \caption{Caption of Figure 1.} 311 | \end{minipage}\hfill 312 | \begin{minipage}{0.48\linewidth} 313 | \centering 314 | \includegraphics[width=\linewidth]{image2} 315 | \caption{Caption of Figure 2.} 316 | \end{minipage} 317 | \end{figure} 318 | \end{frame} 319 | 320 | %------------------------------------------------ 321 | \section{Third Section} 322 | %------------------------------------------------ 323 | 324 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 325 | \frametitle{Citation} 326 | An example of the \verb|\cite| command to cite within the presentation:\\~ 327 | 328 | This statement requires citation \cite{Smith2012}. 329 | \end{frame} 330 | 331 | %------------------------------------------------ 332 | 333 | \begin{frame} 334 | \frametitle{References} 335 | \footnotesize{ 336 | \begin{thebibliography}{99} % Beamer does not support BibTeX so references must be inserted manually as below 337 | \bibitem[Smith, 2012]{Smith2012} John Smith. Title of the publication. \emph{Journal Name}, 12(3):45--678, 2012. 338 | \end{thebibliography} 339 | } 340 | \end{frame} 341 | 342 | %------------------------------------------------ 343 | 344 | \begin{frame}[standout] 345 | \Huge Thank you! 346 | \end{frame} 347 | 348 | 349 | 350 | %\begin{frame}[standout] 351 | % Questions? 352 | %\end{frame} 353 | 354 | %\appendix 355 | 356 | %\begin{frame}[fragile]{Backup slides} 357 | % Sometimes, it is useful to add slides at the end of your presentation to 358 | % refer to during audience questions. 359 | % 360 | % The best way to do this is to include the \verb|appendixnumberbeamer| 361 | % package in your preamble and call \verb|\appendix| before your backup slides. 362 | % 363 | % \themename will automatically turn off slide numbering and progress bars for 364 | % slides in the appendix. 365 | %\end{frame} 366 | 367 | %\begin{frame}[allowframebreaks]{References} 368 | % 369 | % \bibliography{demo} 370 | % \bibliographystyle{abbrv} 371 | % 372 | %\end{frame} 373 | 374 | \end{document} 375 | -------------------------------------------------------------------------------- /Boadilla-demo.tex: -------------------------------------------------------------------------------- 1 | %======================================================% 2 | % Beamer Presentation 3 | % LaTeX Template 4 | % compile using PDFTeXify or PDFLaTeX 5 | %======================================================% 6 | 7 | %-------------------------------------------------------------------------------- 8 | % PACKAGES AND THEMES 9 | %-------------------------------------------------------------------------------- 10 | 11 | \documentclass[notheorems,11pt,compress]{beamer} 12 | 13 | %\makeatletter 14 | %\renewcommand \theequation {% 15 | % \ifnum \c@section>\z@ \@arabic\c@section.\fi \ifnum \c@subsection>\z@ 16 | % \@arabic\c@subsection.\fi\ifnum \c@subsubsection>\z@ 17 | % \@arabic\c@subsubsection.\fi\@arabic\c@equation} 18 | %\@addtoreset{equation}{section} 19 | %\@addtoreset{equation}{subsection} 20 | %\setcounter{section}{-1} 21 | %\makeatother 22 | 23 | \allowdisplaybreaks 24 | 25 | %\usepackage[dvipsnames,table,xcdraw]{xcolor} 26 | %\usepackage{beamerarticle} 27 | 28 | %------- Beamer theme ------ 29 | \usetheme{Boadilla} 30 | %\usetheme{Berlin} 31 | %\usetheme{Feather} 32 | %\usetheme{Hannover} 33 | \useoutertheme[height=1.5cm]{sidebar} 34 | 35 | %------- Color theme ------ 36 | \usecolortheme{seahorse} 37 | %\usecolortheme{rose} 38 | %\usecolortheme{orchid} 39 | %\usecolortheme{spruce} 40 | %\usecolortheme{lily} 41 | 42 | \usefonttheme{professionalfonts} 43 | \setbeamertemplate{navigation symbols}{} 44 | %\setbeamertemplate{blocks}[rounded][shadow=true] 45 | 46 | %----------- Packages ------------- 47 | %\usepackage[latin1]{inputenc} 48 | %\usepackage{times} 49 | %\usepackage[T1]{fontenc} 50 | 51 | \usepackage[english]{babel} 52 | \usepackage{amsmath,amssymb,version} 53 | \usepackage{graphicx,fancybox,mathrsfs,multirow} 54 | \usepackage{booktabs} 55 | \usepackage{epsfig,epstopdf} 56 | \usepackage{url,hyperref} 57 | \usepackage{tabularx,array,makecell} 58 | \usepackage{color,xcolor} 59 | \usepackage{cases} 60 | \usepackage{mathtools} 61 | \usepackage{tikz} 62 | 63 | %---------- Set line spacing ---------- 64 | %\renewcommand{\baselinestretch}{1.15} 65 | 66 | %---------- Define new table commands ---------- 67 | \newcolumntype{P}[1]{>{\centering \arraybackslash}p{#1}} 68 | \newcolumntype{L}{X} 69 | \newcolumntype{C}{>{\centering \arraybackslash}X} 70 | \newcolumntype{R}{>{\raggedleft \arraybackslash}X} 71 | 72 | 73 | %---------- Set fonts ---------- 74 | %\setbeamerfont{normal text}{family=\rmfamily} 75 | %\AtBeginDocument{\usebeamerfont{normal text}} 76 | 77 | 78 | %---------- Theorem environment ---------- 79 | \setbeamertemplate{theorems}[numbered] 80 | \newtheorem{theorem}{Theorem} 81 | \numberwithin{theorem}{section} 82 | \newtheorem{definition}{Definition} 83 | \numberwithin{definition}{section} 84 | \newtheorem{lemma}{Lemma} 85 | \numberwithin{lemma}{section} 86 | \newtheorem{proposition}{Proposition} 87 | \numberwithin{proposition}{section} 88 | \newtheorem{corollary}{Corollary} 89 | \numberwithin{corollary}{section} 90 | \theoremstyle{example} 91 | \newtheorem{example}{Example} 92 | %\numberwithin{example}{section} 93 | \renewenvironment{proof}[1][Proof]{\textit{#1}:~}{\qed\par} 94 | 95 | \setbeamertemplate{caption}[numbered] 96 | \numberwithin{figure}{section} 97 | \numberwithin{table}{section} 98 | \numberwithin{equation}{section} 99 | 100 | 101 | %---------- Adjust the spacing of formulas ---------- 102 | %\AtBeginDocument{ 103 | % \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt} 104 | % \setlength{\belowdisplayskip}{4pt plus 1pt minus 1pt} 105 | % \setlength{\abovedisplayshortskip}{2pt} 106 | % \setlength{\belowdisplayshortskip}{2pt} 107 | % \setlength{\arraycolsep}{2pt} 108 | %} 109 | 110 | \makeatletter 111 | \newcommand\HUGE{\@setfontsize\Huge{36}{42}} 112 | \makeatother 113 | 114 | %---------- Define new commands ---------- 115 | \newcommand{\red}[1]{\textcolor{red}{#1}} 116 | \newcommand{\blue}[1]{\textcolor{blue}{#1}} 117 | 118 | 119 | \AtBeginSection[]{ 120 | \begin{frame}{OUTLINE} 121 | \tableofcontents[currentsection,currentsubsection,subsectionstyle=show/show/shaded] 122 | %\tableofcontents[currentsection,hideallsubsections] 123 | \end{frame} 124 | } 125 | 126 | 127 | %-------------------------------------------------------------------------------- 128 | % TITLE PAGE 129 | %-------------------------------------------------------------------------------- 130 | 131 | \title[Short title]{Full Title of the Talk} % The short title appears at the bottom of every slide, the full title is only on the title page 132 | 133 | \author{John Smith} % Your name 134 | \institute[NU] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space 135 | { 136 | Name of University \\ % Your institution for the title page 137 | \medskip 138 | \textit{name@email.com} % Your email address 139 | } 140 | \date[2020.6.23]{Jun 23, 2020} % Date, can be changed to a custom date 141 | 142 | 143 | \logo{\includegraphics[height=1.5cm]{logo.pdf}} 144 | 145 | \graphicspath{{./figures/}} 146 | 147 | \begin{document} 148 | 149 | % only change the spacing of body text 150 | \setlength{\baselineskip}{15pt} 151 | 152 | \begin{frame}%[label=fp]{topic} 153 | \titlepage 154 | \end{frame} 155 | 156 | \begin{frame}{OUTLINE} 157 | \tableofcontents 158 | \end{frame} 159 | 160 | 161 | %-------------------------------------------------------------------------------- 162 | % PRESENTATION SLIDES 163 | %-------------------------------------------------------------------------------- 164 | 165 | %------------------------------------------------ 166 | \section{First Section} % Sections can be created in order to organize your presentation into discrete blocks, all sections and subsections are automatically printed in the table of contents as an overview of the talk 167 | %------------------------------------------------ 168 | 169 | \subsection{Subsection Example} % A subsection can be created just before a set of slides with a common theme to further break down your presentation into chunks 170 | 171 | \begin{frame} 172 | \frametitle{Paragraphs of Text} 173 | This is paragraphs of text. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. \\~\\ 174 | 175 | The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 176 | \end{frame} 177 | 178 | %------------------------------------------------ 179 | 180 | \begin{frame} 181 | \frametitle{Lists} 182 | 183 | \begin{enumerate} 184 | \item This is a enumerate environment. 185 | \item This is a enumerate environment. 186 | \item This is a enumerate environment. 187 | \end{enumerate} 188 | 189 | \vspace{2ex} 190 | \begin{itemize}[<+-| alert@+>] 191 | \item This is a itemize environment. 192 | \item This is a itemize environment. 193 | \item This is a itemize environment. 194 | \end{itemize} 195 | \end{frame} 196 | 197 | %------------------------------------------------ 198 | 199 | \begin{frame} 200 | \frametitle{Blocks of Highlighted Text} 201 | \begin{block}{Block Title} 202 | This is the block environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 203 | \end{block} 204 | 205 | \begin{exampleblock}{Block Title} 206 | This is the exampleblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 207 | \end{exampleblock} 208 | 209 | \begin{alertblock}{Block Title} 210 | This is the alertblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 211 | \end{alertblock} 212 | \end{frame} 213 | 214 | %------------------------------------------------ 215 | 216 | \begin{frame} 217 | \frametitle{Multiple Columns} 218 | \begin{columns}[c] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment 219 | 220 | \column{0.5\textwidth} 221 | This is a text in first column. 222 | $$E=mc^2$$ 223 | \begin{itemize} 224 | \item First item 225 | \item Second item 226 | \end{itemize} 227 | 228 | \column{0.5\textwidth} 229 | This text will be in the second column 230 | and on a second tought this is a nice looking 231 | layout in some cases. 232 | 233 | \end{columns} 234 | \end{frame} 235 | 236 | %------------------------------------------------ 237 | \section{Second Section} 238 | %------------------------------------------------ 239 | 240 | \begin{frame} 241 | \frametitle{Theorem} 242 | 243 | \begin{definition} 244 | This is a definition environment. 245 | \end{definition} 246 | 247 | 248 | \begin{lemma} 249 | This is a lemma environment. 250 | \end{lemma} 251 | 252 | \begin{proposition} 253 | This is a proposition environment. 254 | \end{proposition} 255 | 256 | \begin{theorem}[Mass--energy] 257 | This is a theorem environment. 258 | \end{theorem} 259 | 260 | \begin{proof} 261 | This is a proof environment. 262 | \end{proof} 263 | \end{frame} 264 | 265 | %------------------------------------------------ 266 | 267 | \begin{frame} 268 | \frametitle{Formula and Table} 269 | 270 | This is Pythagorean's theorem 271 | \begin{equation}\label{Pythagorean} 272 | a^2+b^2=c^2. 273 | \end{equation} 274 | 275 | This is a simple three-line table. 276 | \begin{table} 277 | \caption{Table caption} 278 | \begin{tabular}{l l l} 279 | \toprule 280 | Treatments & Response 1 & Response 2 \\ 281 | \midrule 282 | Treatment 1 & 0.0003262 & 0.562 \\ 283 | Treatment 2 & 0.0015681 & 0.910 \\ 284 | Treatment 3 & 0.0009271 & 0.296 \\ 285 | \bottomrule 286 | \end{tabular} 287 | \end{table} 288 | 289 | \end{frame} 290 | 291 | %------------------------------------------------ 292 | 293 | \begin{frame} 294 | \frametitle{} 295 | The new command PLCR is defined to set the length of the width of the table. They can be used in the tabularx environment. 296 | 297 | \begin{table}[!htp] 298 | \centering 299 | \renewcommand\arraystretch{1.05} 300 | \caption{A sample of the height and weight of students.} 301 | \label{tab2:heightweight} 302 | % PLCR is defined in the preamble 303 | \begin{tabularx}{0.8\textwidth}{lCCC} 304 | \toprule %\Xhline{2\arrayrulewidth} 305 | Number & Age & Height & Weight\\ 306 | \midrule 307 | 1&14&156&42\\ 308 | 2&16&158&45\\ 309 | 3&14&162&48\\ 310 | 4&15&163&50\\ 311 | \cmidrule{2-4} 312 | Mean &15&159.75&46.25\\ 313 | \bottomrule 314 | \end{tabularx} 315 | \end{table} 316 | \end{frame} 317 | 318 | %------------------------------------------------ 319 | 320 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 321 | \frametitle{Verbatim} 322 | \begin{example}[Theorem Slide Code] 323 | \begin{verbatim} 324 | \begin{frame} 325 | \frametitle{Theorem} 326 | \begin{theorem}[Mass--energy equivalence] 327 | $E = mc^2$ 328 | \end{theorem} 329 | \end{frame}\end{verbatim} 330 | \end{example} 331 | 332 | \begin{theorem}[Mass--energy equivalence] 333 | $E = mc^2$ 334 | \end{theorem} 335 | \end{frame} 336 | 337 | %------------------------------------------------ 338 | 339 | \begin{frame} 340 | \frametitle{Figure} 341 | 342 | Uncomment the code on this slide to include your own image from the same directory as the template .TeX file. 343 | \begin{figure}[htp!] 344 | \centering 345 | \includegraphics[width=0.6\linewidth]{image1.eps} 346 | \end{figure} 347 | \end{frame} 348 | 349 | %------------------------------------------------ 350 | 351 | \begin{frame} 352 | \frametitle{Two pictures} 353 | \begin{figure}[htb] 354 | \centering 355 | \begin{minipage}{0.48\linewidth} 356 | \centering 357 | \includegraphics[width=\linewidth]{image1} 358 | \caption{Caption of Figure 1.} 359 | \end{minipage}\hfill 360 | \begin{minipage}{0.48\linewidth} 361 | \centering 362 | \includegraphics[width=\linewidth]{image2} 363 | \caption{Caption of Figure 2.} 364 | \end{minipage} 365 | \end{figure} 366 | \end{frame} 367 | 368 | %------------------------------------------------ 369 | \section{Third Section} 370 | %------------------------------------------------ 371 | 372 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 373 | \frametitle{Citation} 374 | An example of the \verb|\cite| command to cite within the presentation:\\~ 375 | 376 | This statement requires citation \cite{Smith2012}. 377 | \end{frame} 378 | 379 | %------------------------------------------------ 380 | 381 | \begin{frame} 382 | \frametitle{References} 383 | \footnotesize{ 384 | \begin{thebibliography}{99} % Beamer does not support BibTeX so references must be inserted manually as below 385 | \bibitem[Smith, 2012]{Smith2012} John Smith. Title of the publication. \emph{Journal Name}, 12(3):45--678, 2012. 386 | \end{thebibliography} 387 | } 388 | \end{frame} 389 | 390 | 391 | %------------------------------------------------ 392 | %\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 393 | %\setbeamertemplate{headline}{} 394 | \begin{frame} 395 | %\sffamily 396 | \begin{center} 397 | \HUGE{\textcolor[RGB]{165,3,3}{Thank~you!}} 398 | \end{center} 399 | \end{frame} 400 | 401 | %------------------------------------------------ 402 | 403 | %\thispagestyle{empty} 404 | %\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 405 | %\begin{frame} 406 | %\Huge{\centerline{The End}} 407 | %\end{frame} 408 | 409 | 410 | \end{document} -------------------------------------------------------------------------------- /Darmstadt-demo.tex: -------------------------------------------------------------------------------- 1 | %======================================================% 2 | % Beamer Presentation 3 | % LaTeX Template 4 | % compile using PDFTeXify or PDFLaTeX 5 | %======================================================% 6 | 7 | %-------------------------------------------------------------------------------- 8 | % PACKAGES AND THEMES 9 | %-------------------------------------------------------------------------------- 10 | 11 | \documentclass[notheorems,11pt,compress]{beamer} 12 | 13 | % The Beamer class comes with a number of default slide themes 14 | % which change the colors and layouts of slides. Below this is a list 15 | % of all the themes, uncomment each in turn to see what they look like. 16 | 17 | \mode{ 18 | 19 | %------- Beamer theme ------ 20 | \usetheme{Darmstadt} 21 | 22 | %------- Color theme ------ 23 | \usecolortheme{beaver} 24 | %\usecolortheme{rose} 25 | %\usecolortheme{crane} 26 | %\usecolortheme{lily} 27 | %\usecolortheme{orchid} 28 | %\usecolortheme{whale} 29 | 30 | %\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10] 31 | \usefonttheme[onlymath]{serif} 32 | %\usefonttheme{serif} 33 | 34 | \setbeamertemplate{blocks}[rounded][shadow=true] 35 | %\setbeamercovered{transparent} 36 | %\usetheme{boxes} 37 | 38 | %\setbeamertemplate{headline}{} 39 | \setbeamertemplate{navigation symbols}{} 40 | %\setbeamertemplate{itemize items}[square] % ball, circle 41 | \setbeamertemplate{enumerate items}[square] 42 | %\setbeamertemplate{section in toc}[square] 43 | } 44 | 45 | %----------- Packages ------------- 46 | %\usepackage[latin1]{inputenc} 47 | %\usepackage{times} 48 | %\usepackage[T1]{fontenc} 49 | 50 | \usepackage[english]{babel} 51 | \usepackage{amsmath,amssymb,version} 52 | \usepackage{graphicx,fancybox,mathrsfs,multirow} 53 | \usepackage{booktabs} 54 | \usepackage{epsfig,epstopdf} 55 | \usepackage{url,hyperref} 56 | \usepackage{tabularx,array,makecell} 57 | \usepackage{color,xcolor} 58 | \usepackage{cases} 59 | \usepackage{mathtools} 60 | \usepackage{tikz} 61 | 62 | %---------- Set line spacing ---------- 63 | %\renewcommand{\baselinestretch}{1.15} 64 | 65 | %---------- Define new table commands ---------- 66 | \newcolumntype{P}[1]{>{\centering \arraybackslash}p{#1}} 67 | \newcolumntype{L}{X} 68 | \newcolumntype{C}{>{\centering \arraybackslash}X} 69 | \newcolumntype{R}{>{\raggedleft \arraybackslash}X} 70 | 71 | 72 | %---------- Set fonts ---------- 73 | %\setbeamerfont{normal text}{family=\rmfamily} 74 | %\AtBeginDocument{\usebeamerfont{normal text}} 75 | 76 | 77 | %---------- Theorem environment ---------- 78 | \setbeamertemplate{theorems}[numbered] 79 | \newtheorem{theorem}{Theorem} 80 | \numberwithin{theorem}{section} 81 | \newtheorem{definition}{Definition} 82 | \numberwithin{definition}{section} 83 | \newtheorem{lemma}{Lemma} 84 | \numberwithin{lemma}{section} 85 | \newtheorem{proposition}{Proposition} 86 | \numberwithin{proposition}{section} 87 | \newtheorem{corollary}{Corollary} 88 | \numberwithin{corollary}{section} 89 | \theoremstyle{example} 90 | \newtheorem{example}{Example} 91 | %\numberwithin{example}{section} 92 | \renewenvironment{proof}[1][Proof]{\textit{#1}:~}{\qed\par} 93 | 94 | \setbeamertemplate{caption}[numbered] 95 | \numberwithin{figure}{section} 96 | \numberwithin{table}{section} 97 | \numberwithin{equation}{section} 98 | 99 | 100 | %---------- Adjust the spacing of formulas ---------- 101 | %\AtBeginDocument{ 102 | % \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt} 103 | % \setlength{\belowdisplayskip}{4pt plus 1pt minus 1pt} 104 | % \setlength{\abovedisplayshortskip}{2pt} 105 | % \setlength{\belowdisplayshortskip}{2pt} 106 | % \setlength{\arraycolsep}{2pt} 107 | %} 108 | 109 | \makeatletter 110 | \newcommand\HUGE{\@setfontsize\Huge{36}{42}} 111 | \makeatother 112 | 113 | %---------- Define new commands ---------- 114 | \newcommand{\red}[1]{\textcolor{red}{#1}} 115 | \newcommand{\blue}[1]{\textcolor{blue}{#1}} 116 | 117 | 118 | %---------- Show the outline ---------- 119 | \AtBeginSection[]{ 120 | \begin{frame} 121 | \frametitle{Outline} 122 | \tableofcontents[currentsection,currentsubsection,subsectionstyle=show/show/shaded] 123 | %\tableofcontents[currentsection,hideallsubsections] 124 | \addtocounter{framenumber}{-1} 125 | \end{frame} 126 | } 127 | 128 | 129 | %-------------------------------------------------------------------------------- 130 | % TITLE PAGE 131 | %-------------------------------------------------------------------------------- 132 | 133 | \title[Short title]{Full Title of the Talk} 134 | % The short title appears at the bottom of every slide, the full title is only on the title page 135 | 136 | \author{John Smith} % Your name 137 | \institute[NU] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space 138 | { 139 | Name of University \\ % Your institution for the title page 140 | \medskip 141 | \textit{name@email.com} % Your email address 142 | } 143 | \date[2020.6.23]{Jun 23, 2020} % Date, can be changed to a custom date 144 | 145 | 146 | \graphicspath{{./figures/}} 147 | 148 | 149 | \begin{document} 150 | 151 | % only change the spacing of body text 152 | \setlength{\baselineskip}{15pt} 153 | 154 | \begin{frame} 155 | \titlepage % Print the title page as the first slide 156 | \end{frame} 157 | 158 | 159 | \begin{frame} 160 | \frametitle{Outline} 161 | \tableofcontents[hideallsubsections] 162 | \end{frame} 163 | 164 | %-------------------------------------------------------------------------------- 165 | % PRESENTATION SLIDES 166 | %-------------------------------------------------------------------------------- 167 | 168 | %------------------------------------------------ 169 | \section{First Section} % Sections can be created in order to organize your presentation into discrete blocks, all sections and subsections are automatically printed in the table of contents as an overview of the talk 170 | %------------------------------------------------ 171 | 172 | \subsection{Subsection Example} % A subsection can be created just before a set of slides with a common theme to further break down your presentation into chunks 173 | 174 | \begin{frame} 175 | \frametitle{Paragraphs of Text} 176 | This is paragraphs of text. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. \\~\\ 177 | 178 | The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 179 | \end{frame} 180 | 181 | %------------------------------------------------ 182 | 183 | \begin{frame} 184 | \frametitle{Lists} 185 | 186 | \begin{enumerate} 187 | \item This is a enumerate environment. 188 | \item This is a enumerate environment. 189 | \item This is a enumerate environment. 190 | \end{enumerate} 191 | 192 | \vspace{2ex} 193 | \begin{itemize}[<+-| alert@+>] 194 | \item This is a itemize environment. 195 | \item This is a itemize environment. 196 | \item This is a itemize environment. 197 | \end{itemize} 198 | \end{frame} 199 | 200 | %------------------------------------------------ 201 | 202 | \begin{frame} 203 | \frametitle{Blocks of Highlighted Text} 204 | \begin{block}{Block Title} 205 | This is the block environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 206 | \end{block} 207 | 208 | \begin{exampleblock}{Block Title} 209 | This is the exampleblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 210 | \end{exampleblock} 211 | 212 | \begin{alertblock}{Block Title} 213 | This is the alertblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 214 | \end{alertblock} 215 | \end{frame} 216 | 217 | %------------------------------------------------ 218 | 219 | \begin{frame} 220 | \frametitle{Multiple Columns} 221 | \begin{columns}[c] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment 222 | 223 | \column{0.5\textwidth} 224 | This is a text in first column. 225 | $$E=mc^2$$ 226 | \begin{itemize} 227 | \item First item 228 | \item Second item 229 | \end{itemize} 230 | 231 | \column{0.5\textwidth} 232 | This text will be in the second column 233 | and on a second tought this is a nice looking 234 | layout in some cases. 235 | 236 | \end{columns} 237 | \end{frame} 238 | 239 | %------------------------------------------------ 240 | \section{Second Section} 241 | %------------------------------------------------ 242 | 243 | \begin{frame} 244 | \frametitle{Theorem} 245 | 246 | \begin{definition} 247 | This is a definition environment. 248 | \end{definition} 249 | 250 | 251 | \begin{lemma} 252 | This is a lemma environment. 253 | \end{lemma} 254 | 255 | \begin{proposition} 256 | This is a proposition environment. 257 | \end{proposition} 258 | 259 | \begin{theorem}[Mass--energy] 260 | This is a theorem environment. 261 | \end{theorem} 262 | 263 | \begin{proof} 264 | This is a proof environment. 265 | \end{proof} 266 | \end{frame} 267 | 268 | %------------------------------------------------ 269 | 270 | \begin{frame} 271 | \frametitle{Formula and Table} 272 | 273 | This is Pythagorean's theorem 274 | \begin{equation}\label{Pythagorean} 275 | a^2+b^2=c^2. 276 | \end{equation} 277 | 278 | This is a simple three-line table. 279 | \begin{table} 280 | \caption{Table caption} 281 | \begin{tabular}{l l l} 282 | \toprule 283 | Treatments & Response 1 & Response 2 \\ 284 | \midrule 285 | Treatment 1 & 0.0003262 & 0.562 \\ 286 | Treatment 2 & 0.0015681 & 0.910 \\ 287 | Treatment 3 & 0.0009271 & 0.296 \\ 288 | \bottomrule 289 | \end{tabular} 290 | \end{table} 291 | 292 | \end{frame} 293 | 294 | %------------------------------------------------ 295 | 296 | \begin{frame} 297 | \frametitle{} 298 | The new command PLCR is defined to set the length of the width of the table. They can be used in the tabularx environment. 299 | 300 | \begin{table}[!htp] 301 | \centering 302 | \renewcommand\arraystretch{1.05} 303 | \caption{A sample of the height and weight of students.} 304 | \label{tab2:heightweight} 305 | % PLCR is defined in the preamble 306 | \begin{tabularx}{0.8\textwidth}{lCCC} 307 | \toprule %\Xhline{2\arrayrulewidth} 308 | Number & Age & Height & Weight\\ 309 | \midrule 310 | 1&14&156&42\\ 311 | 2&16&158&45\\ 312 | 3&14&162&48\\ 313 | 4&15&163&50\\ 314 | \cmidrule{2-4} 315 | Mean &15&159.75&46.25\\ 316 | \bottomrule 317 | \end{tabularx} 318 | \end{table} 319 | \end{frame} 320 | 321 | %------------------------------------------------ 322 | 323 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 324 | \frametitle{Verbatim} 325 | \begin{example}[Theorem Slide Code] 326 | \begin{verbatim} 327 | \begin{frame} 328 | \frametitle{Theorem} 329 | \begin{theorem}[Mass--energy equivalence] 330 | $E = mc^2$ 331 | \end{theorem} 332 | \end{frame}\end{verbatim} 333 | \end{example} 334 | 335 | \begin{theorem}[Mass--energy equivalence] 336 | $E = mc^2$ 337 | \end{theorem} 338 | \end{frame} 339 | 340 | %------------------------------------------------ 341 | 342 | \begin{frame} 343 | \frametitle{Figure} 344 | 345 | Uncomment the code on this slide to include your own image from the same directory as the template .TeX file. 346 | \begin{figure}[htp!] 347 | \centering 348 | \includegraphics[width=0.6\linewidth]{image1.eps} 349 | \end{figure} 350 | \end{frame} 351 | 352 | %------------------------------------------------ 353 | 354 | \begin{frame} 355 | \frametitle{Two pictures} 356 | \begin{figure}[htb] 357 | \centering 358 | \begin{minipage}{0.48\linewidth} 359 | \centering 360 | \includegraphics[width=\linewidth]{image1} 361 | \caption{Caption of Figure 1.} 362 | \end{minipage}\hfill 363 | \begin{minipage}{0.48\linewidth} 364 | \centering 365 | \includegraphics[width=\linewidth]{image2} 366 | \caption{Caption of Figure 2.} 367 | \end{minipage} 368 | \end{figure} 369 | \end{frame} 370 | 371 | %------------------------------------------------ 372 | \section{Third Section} 373 | %------------------------------------------------ 374 | 375 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 376 | \frametitle{Citation} 377 | An example of the \verb|\cite| command to cite within the presentation:\\~ 378 | 379 | This statement requires citation \cite{Smith2012}. 380 | \end{frame} 381 | 382 | %------------------------------------------------ 383 | 384 | \begin{frame} 385 | \frametitle{References} 386 | \footnotesize{ 387 | \begin{thebibliography}{99} % Beamer does not support BibTeX so references must be inserted manually as below 388 | \bibitem[Smith, 2012]{Smith2012} John Smith. Title of the publication. \emph{Journal Name}, 12(3):45--678, 2012. 389 | \end{thebibliography} 390 | } 391 | \end{frame} 392 | 393 | 394 | %------------------------------------------------ 395 | %\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 396 | %\setbeamertemplate{headline}{} 397 | \begin{frame} 398 | %\sffamily 399 | \begin{center} 400 | \HUGE{\textcolor[RGB]{165,3,3}{Thank~you!}} 401 | \end{center} 402 | \end{frame} 403 | 404 | %------------------------------------------------ 405 | 406 | %\thispagestyle{empty} 407 | %%\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 408 | %\begin{frame} 409 | %\Huge{\centerline{The End}} 410 | %\end{frame} 411 | 412 | 413 | \end{document} 414 | -------------------------------------------------------------------------------- /Default-demo.tex: -------------------------------------------------------------------------------- 1 | %======================================================% 2 | % Beamer Presentation 3 | % LaTeX Template 4 | % compile using PDFTeXify or PDFLaTeX 5 | %======================================================% 6 | 7 | %-------------------------------------------------------------------------------- 8 | % PACKAGES AND THEMES 9 | %-------------------------------------------------------------------------------- 10 | 11 | \documentclass[notheorems,11pt,compress]{beamer} 12 | 13 | % The Beamer class comes with a number of default slide themes 14 | % which change the colors and layouts of slides. Below this is a list 15 | % of all the themes, uncomment each in turn to see what they look like. 16 | 17 | \mode{ 18 | 19 | %------- Beamer theme ------ 20 | \usetheme{default} 21 | 22 | %------- Color theme ------ 23 | %\usecolortheme{rose} 24 | %\usecolortheme{beaver} 25 | %\usecolortheme{crane} 26 | %\usecolortheme{lily} 27 | %\usecolortheme{orchid} 28 | %\usecolortheme{whale} 29 | 30 | %\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10] 31 | \usefonttheme[onlymath]{serif} 32 | %\usefonttheme{serif} 33 | 34 | \setbeamertemplate{blocks}[rounded][shadow=true] 35 | %\setbeamercovered{transparent} 36 | %\usetheme{boxes} 37 | 38 | %\setbeamertemplate{headline}{} 39 | \setbeamertemplate{navigation symbols}{} 40 | %\setbeamertemplate{itemize items}[square] % ball, circle 41 | \setbeamertemplate{enumerate items}[square] 42 | %\setbeamertemplate{section in toc}[square] 43 | } 44 | 45 | %----------- Packages ------------- 46 | %\usepackage[latin1]{inputenc} 47 | %\usepackage{times} 48 | %\usepackage[T1]{fontenc} 49 | 50 | \usepackage[english]{babel} 51 | \usepackage{amsmath,amssymb,version} 52 | \usepackage{graphicx,fancybox,mathrsfs,multirow} 53 | \usepackage{booktabs} 54 | \usepackage{epsfig,epstopdf} 55 | \usepackage{url,hyperref} 56 | \usepackage{tabularx,array,makecell} 57 | \usepackage{color,xcolor} 58 | \usepackage{cases} 59 | \usepackage{mathtools} 60 | \usepackage{tikz} 61 | 62 | %---------- Set line spacing ---------- 63 | %\renewcommand{\baselinestretch}{1.15} 64 | 65 | %---------- Define new table commands ---------- 66 | \newcolumntype{P}[1]{>{\centering \arraybackslash}p{#1}} 67 | \newcolumntype{L}{X} 68 | \newcolumntype{C}{>{\centering \arraybackslash}X} 69 | \newcolumntype{R}{>{\raggedleft \arraybackslash}X} 70 | 71 | 72 | %---------- Set fonts ---------- 73 | %\setbeamerfont{normal text}{family=\rmfamily} 74 | %\AtBeginDocument{\usebeamerfont{normal text}} 75 | 76 | 77 | %---------- Theorem environment ---------- 78 | \setbeamertemplate{theorems}[numbered] 79 | \newtheorem{theorem}{Theorem} 80 | \numberwithin{theorem}{section} 81 | \newtheorem{definition}{Definition} 82 | \numberwithin{definition}{section} 83 | \newtheorem{lemma}{Lemma} 84 | \numberwithin{lemma}{section} 85 | \newtheorem{proposition}{Proposition} 86 | \numberwithin{proposition}{section} 87 | \newtheorem{corollary}{Corollary} 88 | \numberwithin{corollary}{section} 89 | \theoremstyle{example} 90 | \newtheorem{example}{Example} 91 | %\numberwithin{example}{section} 92 | \renewenvironment{proof}[1][Proof]{\textit{#1}:~}{\qed\par} 93 | 94 | \setbeamertemplate{caption}[numbered] 95 | \numberwithin{figure}{section} 96 | \numberwithin{table}{section} 97 | \numberwithin{equation}{section} 98 | 99 | 100 | %---------- Adjust the spacing of formulas ---------- 101 | %\AtBeginDocument{ 102 | % \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt} 103 | % \setlength{\belowdisplayskip}{4pt plus 1pt minus 1pt} 104 | % \setlength{\abovedisplayshortskip}{2pt} 105 | % \setlength{\belowdisplayshortskip}{2pt} 106 | % \setlength{\arraycolsep}{2pt} 107 | %} 108 | 109 | \makeatletter 110 | \newcommand\HUGE{\@setfontsize\Huge{36}{42}} 111 | \makeatother 112 | 113 | %---------- Define new commands ---------- 114 | \newcommand{\red}[1]{\textcolor{red}{#1}} 115 | \newcommand{\blue}[1]{\textcolor{blue}{#1}} 116 | 117 | 118 | %---------- Show the outline ---------- 119 | \AtBeginSection[]{ 120 | \begin{frame} 121 | \frametitle{Outline} 122 | \tableofcontents[currentsection,currentsubsection,subsectionstyle=show/show/shaded] 123 | %\tableofcontents[currentsection,hideallsubsections] 124 | \addtocounter{framenumber}{-1} 125 | \end{frame} 126 | } 127 | 128 | 129 | %-------------------------------------------------------------------------------- 130 | % TITLE PAGE 131 | %-------------------------------------------------------------------------------- 132 | 133 | \title[Short title]{Full Title of the Talk} 134 | % The short title appears at the bottom of every slide, the full title is only on the title page 135 | 136 | \author{John Smith} % Your name 137 | \institute[NU] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space 138 | { 139 | Name of University \\ % Your institution for the title page 140 | \medskip 141 | \textit{name@email.com} % Your email address 142 | } 143 | \date[2020.6.23]{Jun 23, 2020} % Date, can be changed to a custom date 144 | 145 | 146 | \graphicspath{{./figures/}} 147 | 148 | 149 | \begin{document} 150 | 151 | % only change the spacing of body text 152 | \setlength{\baselineskip}{15pt} 153 | 154 | {\setbeamertemplate{headline}{} 155 | \begin{frame} 156 | \titlepage % Print the title page as the first slide 157 | \end{frame} 158 | } 159 | 160 | \begin{frame} 161 | \frametitle{Outline} 162 | \tableofcontents[hideallsubsections] 163 | \end{frame} 164 | 165 | %-------------------------------------------------------------------------------- 166 | % PRESENTATION SLIDES 167 | %-------------------------------------------------------------------------------- 168 | 169 | %------------------------------------------------ 170 | \section{First Section} % Sections can be created in order to organize your presentation into discrete blocks, all sections and subsections are automatically printed in the table of contents as an overview of the talk 171 | %------------------------------------------------ 172 | 173 | \subsection{Subsection Example} % A subsection can be created just before a set of slides with a common theme to further break down your presentation into chunks 174 | 175 | \begin{frame} 176 | \frametitle{Paragraphs of Text} 177 | This is paragraphs of text. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. \\~\\ 178 | 179 | The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 180 | \end{frame} 181 | 182 | %------------------------------------------------ 183 | 184 | \begin{frame} 185 | \frametitle{Lists} 186 | 187 | \begin{enumerate} 188 | \item This is a enumerate environment. 189 | \item This is a enumerate environment. 190 | \item This is a enumerate environment. 191 | \end{enumerate} 192 | 193 | \vspace{2ex} 194 | \begin{itemize}[<+-| alert@+>] 195 | \item This is a itemize environment. 196 | \item This is a itemize environment. 197 | \item This is a itemize environment. 198 | \end{itemize} 199 | \end{frame} 200 | 201 | %------------------------------------------------ 202 | 203 | \begin{frame} 204 | \frametitle{Blocks of Highlighted Text} 205 | \begin{block}{Block Title} 206 | This is the block environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 207 | \end{block} 208 | 209 | \begin{exampleblock}{Block Title} 210 | This is the exampleblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 211 | \end{exampleblock} 212 | 213 | \begin{alertblock}{Block Title} 214 | This is the alertblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 215 | \end{alertblock} 216 | \end{frame} 217 | 218 | %------------------------------------------------ 219 | 220 | \begin{frame} 221 | \frametitle{Multiple Columns} 222 | \begin{columns}[c] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment 223 | 224 | \column{0.5\textwidth} 225 | This is a text in first column. 226 | $$E=mc^2$$ 227 | \begin{itemize} 228 | \item First item 229 | \item Second item 230 | \end{itemize} 231 | 232 | \column{0.5\textwidth} 233 | This text will be in the second column 234 | and on a second tought this is a nice looking 235 | layout in some cases. 236 | 237 | \end{columns} 238 | \end{frame} 239 | 240 | %------------------------------------------------ 241 | \section{Second Section} 242 | %------------------------------------------------ 243 | 244 | \begin{frame} 245 | \frametitle{Theorem} 246 | 247 | \begin{definition} 248 | This is a definition environment. 249 | \end{definition} 250 | 251 | 252 | \begin{lemma} 253 | This is a lemma environment. 254 | \end{lemma} 255 | 256 | \begin{proposition} 257 | This is a proposition environment. 258 | \end{proposition} 259 | 260 | \begin{theorem}[Mass--energy] 261 | This is a theorem environment. 262 | \end{theorem} 263 | 264 | \begin{proof} 265 | This is a proof environment. 266 | \end{proof} 267 | \end{frame} 268 | 269 | %------------------------------------------------ 270 | 271 | \begin{frame} 272 | \frametitle{Formula and Table} 273 | 274 | This is Pythagorean's theorem 275 | \begin{equation}\label{Pythagorean} 276 | a^2+b^2=c^2. 277 | \end{equation} 278 | 279 | This is a simple three-line table. 280 | \begin{table} 281 | \caption{Table caption} 282 | \begin{tabular}{l l l} 283 | \toprule 284 | Treatments & Response 1 & Response 2 \\ 285 | \midrule 286 | Treatment 1 & 0.0003262 & 0.562 \\ 287 | Treatment 2 & 0.0015681 & 0.910 \\ 288 | Treatment 3 & 0.0009271 & 0.296 \\ 289 | \bottomrule 290 | \end{tabular} 291 | \end{table} 292 | 293 | \end{frame} 294 | 295 | %------------------------------------------------ 296 | 297 | \begin{frame} 298 | \frametitle{} 299 | The new command PLCR is defined to set the length of the width of the table. They can be used in the tabularx environment. 300 | 301 | \begin{table}[!htp] 302 | \centering 303 | \renewcommand\arraystretch{1.05} 304 | \caption{A sample of the height and weight of students.} 305 | \label{tab2:heightweight} 306 | % PLCR is defined in the preamble 307 | \begin{tabularx}{0.8\textwidth}{lCCC} 308 | \toprule %\Xhline{2\arrayrulewidth} 309 | Number & Age & Height & Weight\\ 310 | \midrule 311 | 1&14&156&42\\ 312 | 2&16&158&45\\ 313 | 3&14&162&48\\ 314 | 4&15&163&50\\ 315 | \cmidrule{2-4} 316 | Mean &15&159.75&46.25\\ 317 | \bottomrule 318 | \end{tabularx} 319 | \end{table} 320 | \end{frame} 321 | 322 | %------------------------------------------------ 323 | 324 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 325 | \frametitle{Verbatim} 326 | \begin{example}[Theorem Slide Code] 327 | \begin{verbatim} 328 | \begin{frame} 329 | \frametitle{Theorem} 330 | \begin{theorem}[Mass--energy equivalence] 331 | $E = mc^2$ 332 | \end{theorem} 333 | \end{frame}\end{verbatim} 334 | \end{example} 335 | 336 | \begin{theorem}[Mass--energy equivalence] 337 | $E = mc^2$ 338 | \end{theorem} 339 | \end{frame} 340 | 341 | %------------------------------------------------ 342 | 343 | \begin{frame} 344 | \frametitle{Figure} 345 | 346 | Uncomment the code on this slide to include your own image from the same directory as the template .TeX file. 347 | \begin{figure}[htp!] 348 | \centering 349 | \includegraphics[width=0.6\linewidth]{image1.eps} 350 | \end{figure} 351 | \end{frame} 352 | 353 | %------------------------------------------------ 354 | 355 | \begin{frame} 356 | \frametitle{Two pictures} 357 | \begin{figure}[htb] 358 | \centering 359 | \begin{minipage}{0.48\linewidth} 360 | \centering 361 | \includegraphics[width=\linewidth]{image1} 362 | \caption{Caption of Figure 1.} 363 | \end{minipage}\hfill 364 | \begin{minipage}{0.48\linewidth} 365 | \centering 366 | \includegraphics[width=\linewidth]{image2} 367 | \caption{Caption of Figure 2.} 368 | \end{minipage} 369 | \end{figure} 370 | \end{frame} 371 | 372 | %------------------------------------------------ 373 | \section{Third Section} 374 | %------------------------------------------------ 375 | 376 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 377 | \frametitle{Citation} 378 | An example of the \verb|\cite| command to cite within the presentation:\\~ 379 | 380 | This statement requires citation \cite{Smith2012}. 381 | \end{frame} 382 | 383 | %------------------------------------------------ 384 | 385 | \begin{frame} 386 | \frametitle{References} 387 | \footnotesize{ 388 | \begin{thebibliography}{99} % Beamer does not support BibTeX so references must be inserted manually as below 389 | \bibitem[Smith, 2012]{Smith2012} John Smith. Title of the publication. \emph{Journal Name}, 12(3):45--678, 2012. 390 | \end{thebibliography} 391 | } 392 | \end{frame} 393 | 394 | 395 | %------------------------------------------------ 396 | %\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 397 | %\setbeamertemplate{headline}{} 398 | \begin{frame} 399 | %\sffamily 400 | \begin{center} 401 | \HUGE{\textcolor[RGB]{165,3,3}{Thank~you!}} 402 | \end{center} 403 | \end{frame} 404 | 405 | %------------------------------------------------ 406 | 407 | %\thispagestyle{empty} 408 | %%\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 409 | %\begin{frame} 410 | %\Huge{\centerline{The End}} 411 | %\end{frame} 412 | 413 | 414 | \end{document} 415 | -------------------------------------------------------------------------------- /CambridgeUS-demo.tex: -------------------------------------------------------------------------------- 1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 | % Beamer Presentation 3 | % LaTeX Template 4 | %---------------------------------------------------------------------------------------- 5 | % PACKAGES AND THEMES 6 | %---------------------------------------------------------------------------------------- 7 | 8 | \documentclass[notheorems,compress]{beamer} 9 | 10 | \mode { 11 | 12 | %------- Beamer theme ------ 13 | \usetheme{CambridgeUS} 14 | %\usetheme{Madrid} 15 | %\usetheme{Singapore} 16 | %\usetheme{Warsaw} 17 | 18 | %------- color theme ------ 19 | %\usecolortheme{rose} 20 | %\usecolortheme{orchid} 21 | %\usecolortheme{lily} 22 | %\usecolortheme{seahorse} 23 | 24 | %\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10] 25 | \setbeamertemplate{blocks}[rounded][shadow=true] 26 | \setbeamercovered{transparent} 27 | \usefonttheme[onlymath]{serif} 28 | 29 | %\setbeamertemplate{headline}{} % 30 | %\usetheme{boxes} 31 | %\setbeamertemplate{footline}{} % To remove the footer line in all slides uncomment this line 32 | %\setbeamertemplate{footline}[page number] % To replace the footer line in all slides with a simple slide count uncomment this line 33 | 34 | \setbeamertemplate{navigation symbols}{} % To remove the navigation symbols 35 | 36 | } 37 | 38 | 39 | %----------- Packages ------------- 40 | 41 | %\usepackage[latin1]{inputenc} 42 | %\usepackage{times} 43 | %\usepackage[T1]{fontenc} 44 | 45 | \usepackage[english]{babel} 46 | \usepackage{amsmath,amssymb,version} 47 | \usepackage{graphicx,fancybox,mathrsfs,multirow} 48 | \usepackage{booktabs} 49 | \usepackage{epsfig,epstopdf} 50 | \usepackage{url,hyperref} 51 | \usepackage{tabularx,array,makecell} 52 | \usepackage{color,xcolor} 53 | \usepackage{cases} 54 | \usepackage{mathtools} 55 | \usepackage{tikz} 56 | 57 | %----------- Set line spacing --------------- 58 | %\renewcommand{\baselinestretch}{1.15} 59 | 60 | %--------- Define new table commands ------- 61 | \newcolumntype{P}[1]{>{\centering \arraybackslash}p{#1}} 62 | \newcolumntype{L}{X} 63 | \newcolumntype{C}{>{\centering \arraybackslash}X} 64 | \newcolumntype{R}{>{\raggedleft \arraybackslash}X} 65 | 66 | 67 | %---------- Set fonts --------------- 68 | %\setbeamerfont{normal text}{family=\rmfamily} 69 | %\AtBeginDocument{\usebeamerfont{normal text}} 70 | 71 | \setbeamertemplate{caption}[numbered] 72 | \numberwithin{figure}{section} 73 | \numberwithin{table}{section} 74 | \numberwithin{equation}{section} 75 | 76 | %---------- Theorem environment -------------- 77 | \setbeamertemplate{theorems}[numbered] 78 | \newtheorem{theorem}{Theorem} 79 | \numberwithin{theorem}{section} 80 | \newtheorem{definition}{Definition} 81 | \numberwithin{definition}{section} 82 | \newtheorem{lemma}{Lemma} 83 | \numberwithin{lemma}{section} 84 | \newtheorem{proposition}{Proposition} 85 | \numberwithin{proposition}{section} 86 | \newtheorem{corollary}{Corollary} 87 | \numberwithin{corollary}{section} 88 | \theoremstyle{example} 89 | \newtheorem{example}{Example} 90 | %\numberwithin{example}{section} 91 | \renewenvironment{proof}[1][Proof]{\textit{#1}:~}{\qed\par} 92 | 93 | 94 | %---------- Adjust the spacing of formulas -------- 95 | %\AtBeginDocument{ 96 | % \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt} 97 | % \setlength{\belowdisplayskip}{4pt plus 1pt minus 1pt} 98 | % \setlength{\abovedisplayshortskip}{2pt} 99 | % \setlength{\belowdisplayshortskip}{2pt} 100 | % \setlength{\arraycolsep}{2pt} 101 | %} 102 | 103 | \makeatletter 104 | \newcommand\HUGE{\@setfontsize\Huge{36}{42}} 105 | \makeatother 106 | 107 | % ------ Define new command ------ 108 | \newcommand{\red}[1]{\textcolor{red}{#1}} 109 | \newcommand{\blue}[1]{\textcolor{blue}{#1}} 110 | 111 | 112 | \bibliographystyle{apalike} 113 | 114 | \AtBeginSection[] 115 | { \begin{frame} 116 | \frametitle{Outline} 117 | \tableofcontents[currentsection,hideallsubsections] 118 | \end{frame} 119 | \addtocounter{framenumber}{-1} 120 | } 121 | 122 | %---------------------------------------------------------------------------------------- 123 | % TITLE PAGE 124 | %---------------------------------------------------------------------------------------- 125 | 126 | \title[Short title]{Full Title of the Talk} % The short title appears at the bottom of every slide, the full title is only on the title page 127 | 128 | \author{John Smith} % Your name 129 | \institute[NU] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space 130 | { 131 | Name of University \\ % Your institution for the title page 132 | \medskip 133 | \textit{name@email.com} % Your email address 134 | } 135 | \date[2020.6.23]{Jun 23, 2020} % Date, can be changed to a custom date 136 | 137 | 138 | \graphicspath{{./Figures/}} 139 | 140 | \begin{document} 141 | 142 | % only change the spacing of body text 143 | \setlength{\baselineskip}{15pt} 144 | 145 | %\thispagestyle{empty} 146 | %{\setbeamertemplate{headline}{} 147 | \begin{frame} 148 | \titlepage % Print the title page as the first slide 149 | \end{frame} 150 | %} 151 | 152 | \begin{frame} 153 | \frametitle{Outline} % Table of contents slide, comment this block out to remove it 154 | \tableofcontents[hideallsubsections] % Throughout your presentation, if you choose to use \section{} and \subsection{} commands, these will automatically be printed on this slide as an overview of your presentation 155 | \end{frame} 156 | 157 | %---------------------------------------------------------------------------------------- 158 | % PRESENTATION SLIDES 159 | %---------------------------------------------------------------------------------------- 160 | 161 | %------------------------------------------------ 162 | \section{First Section} % Sections can be created in order to organize your presentation into discrete blocks, all sections and subsections are automatically printed in the table of contents as an overview of the talk 163 | %------------------------------------------------ 164 | 165 | \subsection{Subsection Example} % A subsection can be created just before a set of slides with a common theme to further break down your presentation into chunks 166 | 167 | \begin{frame} 168 | \frametitle{Paragraphs of Text} 169 | This is paragraphs of text. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. \\~\\ 170 | 171 | The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 172 | \end{frame} 173 | 174 | %------------------------------------------------ 175 | 176 | \begin{frame} 177 | \frametitle{Lists} 178 | 179 | \begin{enumerate} 180 | \item This is a enumerate environment. 181 | \item This is a enumerate environment. 182 | \item This is a enumerate environment. 183 | \end{enumerate} 184 | 185 | \vspace{2ex} 186 | \begin{itemize}[<+-| alert@+>] 187 | \item This is a itemize environment. 188 | \item This is a itemize environment. 189 | \item This is a itemize environment. 190 | \end{itemize} 191 | \end{frame} 192 | 193 | %------------------------------------------------ 194 | 195 | \begin{frame} 196 | \frametitle{Blocks of Highlighted Text} 197 | \begin{block}{Block Title} 198 | This is the block environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 199 | \end{block} 200 | 201 | \begin{exampleblock}{Block Title} 202 | This is the exampleblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 203 | \end{exampleblock} 204 | 205 | \begin{alertblock}{Block Title} 206 | This is the alertblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 207 | \end{alertblock} 208 | \end{frame} 209 | 210 | %------------------------------------------------ 211 | 212 | \begin{frame} 213 | \frametitle{Multiple Columns} 214 | \begin{columns}[c] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment 215 | 216 | \column{0.5\textwidth} 217 | This is a text in first column. 218 | $$E=mc^2$$ 219 | \begin{itemize} 220 | \item First item 221 | \item Second item 222 | \end{itemize} 223 | 224 | \column{0.5\textwidth} 225 | This text will be in the second column 226 | and on a second tought this is a nice looking 227 | layout in some cases. 228 | 229 | \end{columns} 230 | \end{frame} 231 | 232 | %------------------------------------------------ 233 | \section{Second Section} 234 | %------------------------------------------------ 235 | 236 | \begin{frame} 237 | \frametitle{Theorem} 238 | 239 | \begin{definition} 240 | This is a definition environment. 241 | \end{definition} 242 | 243 | 244 | \begin{lemma} 245 | This is a lemma environment. 246 | \end{lemma} 247 | 248 | \begin{proposition} 249 | This is a proposition environment. 250 | \end{proposition} 251 | 252 | \begin{theorem}[Mass--energy] 253 | This is a theorem environment. 254 | \end{theorem} 255 | 256 | \begin{proof} 257 | This is a proof environment. 258 | \end{proof} 259 | \end{frame} 260 | 261 | %------------------------------------------------ 262 | 263 | \begin{frame} 264 | \frametitle{Formula and Table} 265 | 266 | This is Pythagorean's theorem 267 | \begin{equation}\label{Pythagorean} 268 | a^2+b^2=c^2. 269 | \end{equation} 270 | 271 | This is a simple three-line table. 272 | \begin{table} 273 | \caption{Table caption} 274 | \begin{tabular}{l l l} 275 | \toprule 276 | Treatments & Response 1 & Response 2 \\ 277 | \midrule 278 | Treatment 1 & 0.0003262 & 0.562 \\ 279 | Treatment 2 & 0.0015681 & 0.910 \\ 280 | Treatment 3 & 0.0009271 & 0.296 \\ 281 | \bottomrule 282 | \end{tabular} 283 | \end{table} 284 | 285 | \end{frame} 286 | 287 | %------------------------------------------------ 288 | 289 | \begin{frame} 290 | \frametitle{} 291 | The new command PLCR is defined to set the length of the width of the table. They can be used in the tabularx environment. 292 | 293 | \begin{table}[!htp] 294 | \centering 295 | \renewcommand\arraystretch{1.05} 296 | \caption{A sample of the height and weight of students.} 297 | \label{tab2:heightweight} 298 | % PLCR is defined in the preamble 299 | \begin{tabularx}{0.8\textwidth}{lCCC} 300 | \toprule %\Xhline{2\arrayrulewidth} 301 | Number & Age & Height & Weight\\ 302 | \midrule 303 | 1&14&156&42\\ 304 | 2&16&158&45\\ 305 | 3&14&162&48\\ 306 | 4&15&163&50\\ 307 | \cmidrule{2-4} 308 | Mean &15&159.75&46.25\\ 309 | \bottomrule 310 | \end{tabularx} 311 | \end{table} 312 | \end{frame} 313 | 314 | %------------------------------------------------ 315 | 316 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 317 | \frametitle{Verbatim} 318 | \begin{example}[Theorem Slide Code] 319 | \begin{verbatim} 320 | \begin{frame} 321 | \frametitle{Theorem} 322 | \begin{theorem}[Mass--energy equivalence] 323 | $E = mc^2$ 324 | \end{theorem} 325 | \end{frame}\end{verbatim} 326 | \end{example} 327 | 328 | \begin{theorem}[Mass--energy equivalence] 329 | $E = mc^2$ 330 | \end{theorem} 331 | \end{frame} 332 | 333 | %------------------------------------------------ 334 | 335 | \begin{frame} 336 | \frametitle{Figure} 337 | 338 | Uncomment the code on this slide to include your own image from the same directory as the template .TeX file. 339 | \begin{figure}[htp!] 340 | \centering 341 | \includegraphics[width=0.6\linewidth]{image1.eps} 342 | \end{figure} 343 | \end{frame} 344 | 345 | %------------------------------------------------ 346 | 347 | \begin{frame} 348 | \frametitle{Two pictures} 349 | \begin{figure}[htb] 350 | \centering 351 | \begin{minipage}{0.48\linewidth} 352 | \centering 353 | \includegraphics[width=\linewidth]{image1} 354 | \caption{Caption of Figure 1.} 355 | \end{minipage}\hfill 356 | \begin{minipage}{0.48\linewidth} 357 | \centering 358 | \includegraphics[width=\linewidth]{image2} 359 | \caption{Caption of Figure 2.} 360 | \end{minipage} 361 | \end{figure} 362 | \end{frame} 363 | 364 | %------------------------------------------------ 365 | \section{Third Section} 366 | %------------------------------------------------ 367 | 368 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 369 | \frametitle{Citation} 370 | An example of the \verb|\cite| command to cite within the presentation:\\~ 371 | 372 | This statement requires citation \cite{Smith2012}. 373 | \end{frame} 374 | 375 | %------------------------------------------------ 376 | 377 | \begin{frame} 378 | \frametitle{References} 379 | \footnotesize{ 380 | \begin{thebibliography}{99} % Beamer does not support BibTeX so references must be inserted manually as below 381 | \bibitem[Smith, 2012]{Smith2012} John Smith. Title of the publication. \emph{Journal Name}, 12(3):45--678, 2012. 382 | \end{thebibliography} 383 | } 384 | \end{frame} 385 | 386 | 387 | %------------------------------------------------ 388 | %\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 389 | %\setbeamertemplate{headline}{} 390 | \begin{frame} 391 | %\sffamily 392 | \begin{center} 393 | \HUGE{\textcolor[RGB]{165,3,3}{Thank~you!}} 394 | \end{center} 395 | \end{frame} 396 | 397 | %------------------------------------------------ 398 | 399 | %\thispagestyle{empty} 400 | %\setbeamertemplate{headline}{} 401 | %\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 402 | %\begin{frame} 403 | %\Huge{\centerline{The End}} 404 | %\end{frame} 405 | 406 | 407 | \end{document} 408 | 409 | -------------------------------------------------------------------------------- /Madrid-demo.tex: -------------------------------------------------------------------------------- 1 | %======================================================% 2 | % Beamer Presentation 3 | % LaTeX Template 4 | % compile using PDFTeXify or PDFLaTeX 5 | %======================================================% 6 | 7 | %-------------------------------------------------------------------------------- 8 | % PACKAGES AND THEMES 9 | %-------------------------------------------------------------------------------- 10 | 11 | \documentclass[notheorems,11pt,compress]{beamer} 12 | 13 | % The Beamer class comes with a number of default slide themes 14 | % which change the colors and layouts of slides. Below this is a list 15 | % of all the themes, uncomment each in turn to see what they look like. 16 | 17 | \mode{ 18 | 19 | %------- Beamer theme ------ 20 | \usetheme{Madrid} 21 | %\usetheme{Boadilla} 22 | %\usetheme{Frankfurt} 23 | %\usetheme{Warsaw} 24 | %\usetheme{CambridgeUS} 25 | %\usetheme{Montpellier} 26 | 27 | %------- Color theme ------ 28 | \usecolortheme{rose} 29 | %\usecolortheme{orchid} 30 | 31 | %\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10] 32 | \usefonttheme[onlymath]{serif} 33 | %\usefonttheme{serif} 34 | %\setbeamercovered{transparent} 35 | %\usetheme{boxes} 36 | 37 | %\setbeamertemplate{headline}{} 38 | %\setbeamertemplate{footline}{} 39 | \setbeamertemplate{blocks}[rounded][shadow=true] 40 | \setbeamertemplate{navigation symbols}{} 41 | %\setbeamertemplate{itemize items}[square] % ball, circle 42 | \setbeamertemplate{enumerate items}[square] 43 | %\setbeamertemplate{section in toc}[square] 44 | } 45 | 46 | %----------- Packages ------------- 47 | %\usepackage[latin1]{inputenc} 48 | %\usepackage{times} 49 | %\usepackage[T1]{fontenc} 50 | 51 | \usepackage[english]{babel} 52 | \usepackage{amsmath,amssymb,version} 53 | \usepackage{graphicx,fancybox,mathrsfs,multirow} 54 | \usepackage{booktabs} 55 | \usepackage{epsfig,epstopdf} 56 | \usepackage{url,hyperref} 57 | \usepackage{tabularx,array,makecell} 58 | \usepackage{color,xcolor} 59 | \usepackage{cases} 60 | \usepackage{mathtools} 61 | \usepackage{tikz} 62 | %\usepackage[UTF8,noindent]{ctex} 63 | 64 | %---------- Set line spacing ---------- 65 | %\renewcommand{\baselinestretch}{1.15} 66 | 67 | %---------- Define new table commands ---------- 68 | \newcolumntype{P}[1]{>{\centering \arraybackslash}p{#1}} 69 | \newcolumntype{L}{X} 70 | \newcolumntype{C}{>{\centering \arraybackslash}X} 71 | \newcolumntype{R}{>{\raggedleft \arraybackslash}X} 72 | 73 | 74 | %---------- Set fonts ---------- 75 | %\setbeamerfont{normal text}{family=\rmfamily} 76 | %\AtBeginDocument{\usebeamerfont{normal text}} 77 | 78 | 79 | %---------- Theorem environment ---------- 80 | \setbeamertemplate{theorems}[numbered] 81 | \newtheorem{theorem}{Theorem} 82 | \numberwithin{theorem}{section} 83 | \newtheorem{definition}{Definition} 84 | \numberwithin{definition}{section} 85 | \newtheorem{lemma}{Lemma} 86 | \numberwithin{lemma}{section} 87 | \newtheorem{proposition}{Proposition} 88 | \numberwithin{proposition}{section} 89 | \newtheorem{corollary}{Corollary} 90 | \numberwithin{corollary}{section} 91 | \theoremstyle{example} 92 | \newtheorem{example}{Example} 93 | %\numberwithin{example}{section} 94 | \renewenvironment{proof}[1][Proof]{\textit{#1}:~}{\qed\par} 95 | 96 | \setbeamertemplate{caption}[numbered] 97 | \numberwithin{figure}{section} 98 | \numberwithin{table}{section} 99 | \numberwithin{equation}{section} 100 | 101 | 102 | %---------- Adjust the spacing of formulas ---------- 103 | %\AtBeginDocument{ 104 | % \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt} 105 | % \setlength{\belowdisplayskip}{4pt plus 1pt minus 1pt} 106 | % \setlength{\abovedisplayshortskip}{2pt} 107 | % \setlength{\belowdisplayshortskip}{2pt} 108 | % \setlength{\arraycolsep}{2pt} 109 | %} 110 | 111 | \makeatletter 112 | \newcommand\HUGE{\@setfontsize\Huge{36}{42}} 113 | \makeatother 114 | 115 | %---------- Define new commands ---------- 116 | \newcommand{\red}[1]{\textcolor{red}{#1}} 117 | \newcommand{\blue}[1]{\textcolor{blue}{#1}} 118 | 119 | 120 | %---------- Show the outline ---------- 121 | \AtBeginSection[]{ 122 | \begin{frame} 123 | \frametitle{Outline} 124 | \tableofcontents[currentsection,currentsubsection,subsectionstyle=show/show/shaded] 125 | %\tableofcontents[currentsection,hideallsubsections] 126 | \addtocounter{framenumber}{-1} 127 | \end{frame} 128 | } 129 | 130 | 131 | %-------------------------------------------------------------------------------- 132 | % TITLE PAGE 133 | %-------------------------------------------------------------------------------- 134 | 135 | \title[Short title]{Full Title of the Talk} 136 | % The short title appears at the bottom of every slide, the full title is only on the title page 137 | 138 | \author{John Smith} % Your name 139 | \institute[NU] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space 140 | { 141 | Name of University \\ % Your institution for the title page 142 | \medskip 143 | \textit{name@email.com} % Your email address 144 | } 145 | \date[2020.6.23]{Jun 23, 2020} % Date, can be changed to a custom date 146 | 147 | 148 | \graphicspath{{./figures/}} 149 | 150 | 151 | \begin{document} 152 | 153 | % only change the spacing of body text 154 | \setlength{\baselineskip}{15pt} 155 | 156 | \begin{frame} 157 | \titlepage 158 | \end{frame} 159 | 160 | \begin{frame} 161 | \frametitle{Outline} 162 | \tableofcontents[hideallsubsections] 163 | \end{frame} 164 | 165 | %-------------------------------------------------------------------------------- 166 | % PRESENTATION SLIDES 167 | %-------------------------------------------------------------------------------- 168 | 169 | %------------------------------------------------ 170 | \section{First Section} % Sections can be created in order to organize your presentation into discrete blocks, all sections and subsections are automatically printed in the table of contents as an overview of the talk 171 | %------------------------------------------------ 172 | 173 | \subsection{Subsection Example} % A subsection can be created just before a set of slides with a common theme to further break down your presentation into chunks 174 | 175 | \begin{frame} 176 | \frametitle{Paragraphs of Text} 177 | This is paragraphs of text. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. \\~\\ 178 | 179 | The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 180 | \end{frame} 181 | 182 | %------------------------------------------------ 183 | 184 | \begin{frame} 185 | \frametitle{Lists} 186 | 187 | \begin{enumerate} 188 | \item This is a enumerate environment. 189 | \item This is a enumerate environment. 190 | \item This is a enumerate environment. 191 | \end{enumerate} 192 | 193 | \vspace{2ex} 194 | \begin{itemize}[<+-| alert@+>] 195 | \item This is a itemize environment. 196 | \item This is a itemize environment. 197 | \item This is a itemize environment. 198 | \end{itemize} 199 | \end{frame} 200 | 201 | %------------------------------------------------ 202 | 203 | \begin{frame} 204 | \frametitle{Blocks of Highlighted Text} 205 | \begin{block}{Block Title} 206 | This is the block environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 207 | \end{block} 208 | 209 | \begin{exampleblock}{Block Title} 210 | This is the exampleblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 211 | \end{exampleblock} 212 | 213 | \begin{alertblock}{Block Title} 214 | This is the alertblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 215 | \end{alertblock} 216 | \end{frame} 217 | 218 | %------------------------------------------------ 219 | 220 | \begin{frame} 221 | \frametitle{Multiple Columns} 222 | \begin{columns}[c] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment 223 | 224 | \column{0.5\textwidth} 225 | This is a text in first column. 226 | $$E=mc^2$$ 227 | \begin{itemize} 228 | \item First item 229 | \item Second item 230 | \end{itemize} 231 | 232 | \column{0.5\textwidth} 233 | This text will be in the second column 234 | and on a second tought this is a nice looking 235 | layout in some cases. 236 | 237 | \end{columns} 238 | \end{frame} 239 | 240 | %------------------------------------------------ 241 | \section{Second Section} 242 | %------------------------------------------------ 243 | 244 | \begin{frame} 245 | \frametitle{Theorem} 246 | 247 | \begin{definition} 248 | This is a definition environment. 249 | \end{definition} 250 | 251 | 252 | \begin{lemma} 253 | This is a lemma environment. 254 | \end{lemma} 255 | 256 | \begin{proposition} 257 | This is a proposition environment. 258 | \end{proposition} 259 | 260 | \begin{theorem}[Mass--energy] 261 | This is a theorem environment. 262 | \end{theorem} 263 | 264 | \begin{proof} 265 | This is a proof environment. 266 | \end{proof} 267 | \end{frame} 268 | 269 | %------------------------------------------------ 270 | 271 | \begin{frame} 272 | \frametitle{Formula and Table} 273 | 274 | This is Pythagorean's theorem 275 | \begin{equation}\label{Pythagorean} 276 | a^2+b^2=c^2. 277 | \end{equation} 278 | 279 | This is a simple three-line table. 280 | \begin{table} 281 | \caption{Table caption} 282 | \begin{tabular}{l l l} 283 | \toprule 284 | Treatments & Response 1 & Response 2 \\ 285 | \midrule 286 | Treatment 1 & 0.0003262 & 0.562 \\ 287 | Treatment 2 & 0.0015681 & 0.910 \\ 288 | Treatment 3 & 0.0009271 & 0.296 \\ 289 | \bottomrule 290 | \end{tabular} 291 | \end{table} 292 | 293 | \end{frame} 294 | 295 | %------------------------------------------------ 296 | 297 | \begin{frame} 298 | \frametitle{} 299 | The new command PLCR is defined to set the length of the width of the table. They can be used in the tabularx environment. 300 | 301 | \begin{table}[!htp] 302 | \centering 303 | \renewcommand\arraystretch{1.05} 304 | \caption{A sample of the height and weight of students.} 305 | \label{tab2:heightweight} 306 | % PLCR is defined in the preamble 307 | \begin{tabularx}{0.8\textwidth}{lCCC} 308 | \toprule %\Xhline{2\arrayrulewidth} 309 | Number & Age & Height & Weight\\ 310 | \midrule 311 | 1&14&156&42\\ 312 | 2&16&158&45\\ 313 | 3&14&162&48\\ 314 | 4&15&163&50\\ 315 | \cmidrule{2-4} 316 | Mean &15&159.75&46.25\\ 317 | \bottomrule 318 | \end{tabularx} 319 | \end{table} 320 | \end{frame} 321 | 322 | %------------------------------------------------ 323 | 324 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 325 | \frametitle{Verbatim} 326 | \begin{example}[Theorem Slide Code] 327 | \begin{verbatim} 328 | \begin{frame} 329 | \frametitle{Theorem} 330 | \begin{theorem}[Mass--energy equivalence] 331 | $E = mc^2$ 332 | \end{theorem} 333 | \end{frame}\end{verbatim} 334 | \end{example} 335 | 336 | \begin{theorem}[Mass--energy equivalence] 337 | $E = mc^2$ 338 | \end{theorem} 339 | \end{frame} 340 | 341 | %------------------------------------------------ 342 | 343 | \begin{frame} 344 | \frametitle{Figure} 345 | 346 | Uncomment the code on this slide to include your own image from the same directory as the template .TeX file. 347 | \begin{figure}[htp!] 348 | \centering 349 | \includegraphics[width=0.6\linewidth]{image1.eps} 350 | \end{figure} 351 | \end{frame} 352 | 353 | %------------------------------------------------ 354 | 355 | \begin{frame} 356 | \frametitle{Two pictures} 357 | \begin{figure}[htb] 358 | \centering 359 | \begin{minipage}{0.48\linewidth} 360 | \centering 361 | \includegraphics[width=\linewidth]{image1} 362 | \caption{Caption of Figure 1.} 363 | \end{minipage}\hfill 364 | \begin{minipage}{0.48\linewidth} 365 | \centering 366 | \includegraphics[width=\linewidth]{image2} 367 | \caption{Caption of Figure 2.} 368 | \end{minipage} 369 | \end{figure} 370 | \end{frame} 371 | 372 | %------------------------------------------------ 373 | \section{Third Section} 374 | %------------------------------------------------ 375 | 376 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 377 | \frametitle{Citation} 378 | An example of the \verb|\cite| command to cite within the presentation:\\~ 379 | 380 | This statement requires citation \cite{Smith2012}. 381 | \end{frame} 382 | 383 | %------------------------------------------------ 384 | 385 | \begin{frame} 386 | \frametitle{References} 387 | \footnotesize{ 388 | \begin{thebibliography}{99} % Beamer does not support BibTeX so references must be inserted manually as below 389 | \bibitem[Smith, 2012]{Smith2012} John Smith. Title of the publication. \emph{Journal Name}, 12(3):45--678, 2012. 390 | \end{thebibliography} 391 | } 392 | \end{frame} 393 | 394 | 395 | %------------------------------------------------ 396 | %\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 397 | %\setbeamertemplate{headline}{} 398 | \begin{frame} 399 | %\sffamily 400 | \begin{center} 401 | \HUGE{\textcolor[RGB]{165,3,3}{Thank~you!}} 402 | \end{center} 403 | \end{frame} 404 | 405 | %------------------------------------------------ 406 | 407 | %\thispagestyle{empty} 408 | %%\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 409 | %\begin{frame} 410 | %\Huge{\centerline{The End}} 411 | %\end{frame} 412 | 413 | 414 | \end{document} 415 | -------------------------------------------------------------------------------- /Montpellier-demo.tex: -------------------------------------------------------------------------------- 1 | %======================================================% 2 | % Beamer Presentation 3 | % LaTeX Template 4 | % compile using PDFTeXify or PDFLaTeX 5 | %======================================================% 6 | 7 | %-------------------------------------------------------------------------------- 8 | % PACKAGES AND THEMES 9 | %-------------------------------------------------------------------------------- 10 | 11 | \documentclass[notheorems,11pt,compress]{beamer} 12 | 13 | % The Beamer class comes with a number of default slide themes 14 | % which change the colors and layouts of slides. Below this is a list 15 | % of all the themes, uncomment each in turn to see what they look like. 16 | 17 | \mode{ 18 | 19 | %------- Beamer theme ------ 20 | \usetheme{Montpellier} 21 | %\usetheme{Madrid} 22 | %\usetheme{Boadilla} 23 | %\usetheme{Frankfurt} 24 | %\usetheme{Warsaw} 25 | %\usetheme{CambridgeUS} 26 | 27 | 28 | %------- Color theme ------ 29 | \usecolortheme{rose} 30 | %\usecolortheme{orchid} 31 | %\usecolortheme{lily} 32 | %\usecolortheme{whale} 33 | %\usecolortheme{dolphin} 34 | %\usecolortheme{seahorse} 35 | 36 | %\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10] 37 | \usefonttheme[onlymath]{serif} 38 | %\usefonttheme{serif} 39 | %\setbeamercovered{transparent} 40 | %\usetheme{boxes} 41 | 42 | %\setbeamertemplate{headline}{} 43 | %\setbeamertemplate{footline}{} 44 | \setbeamertemplate{blocks}[rounded][shadow=true] 45 | \setbeamertemplate{navigation symbols}{} 46 | %\setbeamertemplate{itemize items}[square] % ball, circle 47 | \setbeamertemplate{enumerate items}[square] 48 | %\setbeamertemplate{section in toc}[square] 49 | } 50 | 51 | %----------- Packages ------------- 52 | %\usepackage[latin1]{inputenc} 53 | %\usepackage{times} 54 | %\usepackage[T1]{fontenc} 55 | 56 | \usepackage[english]{babel} 57 | \usepackage{amsmath,amssymb,version} 58 | \usepackage{graphicx,fancybox,mathrsfs,multirow} 59 | \usepackage{booktabs} 60 | \usepackage{epsfig,epstopdf} 61 | \usepackage{url,hyperref} 62 | \usepackage{tabularx,array,makecell} 63 | \usepackage{color,xcolor} 64 | \usepackage{cases} 65 | \usepackage{mathtools} 66 | \usepackage{tikz} 67 | 68 | %---------- Set line spacing ---------- 69 | %\renewcommand{\baselinestretch}{1.15} 70 | 71 | %---------- Define new table commands ---------- 72 | \newcolumntype{P}[1]{>{\centering \arraybackslash}p{#1}} 73 | \newcolumntype{L}{X} 74 | \newcolumntype{C}{>{\centering \arraybackslash}X} 75 | \newcolumntype{R}{>{\raggedleft \arraybackslash}X} 76 | 77 | 78 | %---------- Set fonts ---------- 79 | %\setbeamerfont{normal text}{family=\rmfamily} 80 | %\AtBeginDocument{\usebeamerfont{normal text}} 81 | 82 | 83 | %---------- Theorem environment ---------- 84 | \setbeamertemplate{theorems}[numbered] 85 | \newtheorem{theorem}{Theorem} 86 | \numberwithin{theorem}{section} 87 | \newtheorem{definition}{Definition} 88 | \numberwithin{definition}{section} 89 | \newtheorem{lemma}{Lemma} 90 | \numberwithin{lemma}{section} 91 | \newtheorem{proposition}{Proposition} 92 | \numberwithin{proposition}{section} 93 | \newtheorem{corollary}{Corollary} 94 | \numberwithin{corollary}{section} 95 | \theoremstyle{example} 96 | \newtheorem{example}{Example} 97 | %\numberwithin{example}{section} 98 | \renewenvironment{proof}[1][Proof]{\textit{#1}:~}{\qed\par} 99 | 100 | \setbeamertemplate{caption}[numbered] 101 | \numberwithin{figure}{section} 102 | \numberwithin{table}{section} 103 | \numberwithin{equation}{section} 104 | 105 | 106 | %---------- Adjust the spacing of formulas ---------- 107 | %\AtBeginDocument{ 108 | % \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt} 109 | % \setlength{\belowdisplayskip}{4pt plus 1pt minus 1pt} 110 | % \setlength{\abovedisplayshortskip}{2pt} 111 | % \setlength{\belowdisplayshortskip}{2pt} 112 | % \setlength{\arraycolsep}{2pt} 113 | %} 114 | 115 | \makeatletter 116 | \newcommand\HUGE{\@setfontsize\Huge{36}{42}} 117 | \makeatother 118 | 119 | %---------- Define new commands ---------- 120 | \newcommand{\red}[1]{\textcolor{red}{#1}} 121 | \newcommand{\blue}[1]{\textcolor{blue}{#1}} 122 | 123 | 124 | %---------- Show the outline ---------- 125 | \AtBeginSection[]{ 126 | \begin{frame} 127 | \frametitle{Outline} 128 | \tableofcontents[currentsection,currentsubsection,subsectionstyle=show/show/shaded] 129 | %\tableofcontents[currentsection,hideallsubsections] 130 | \addtocounter{framenumber}{-1} 131 | \end{frame} 132 | } 133 | 134 | 135 | %-------------------------------------------------------------------------------- 136 | % TITLE PAGE 137 | %-------------------------------------------------------------------------------- 138 | 139 | \title[Short title]{Full Title of the Talk} 140 | % The short title appears at the bottom of every slide, the full title is only on the title page 141 | 142 | \author{John Smith} % Your name 143 | \institute[NU] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space 144 | { 145 | Name of University \\ % Your institution for the title page 146 | \medskip 147 | \textit{name@email.com} % Your email address 148 | } 149 | \date[2020.6.23]{Jun 23, 2020} % Date, can be changed to a custom date 150 | 151 | 152 | \graphicspath{{./figures/}} 153 | 154 | 155 | \begin{document} 156 | 157 | % only change the spacing of body text 158 | \setlength{\baselineskip}{15pt} 159 | 160 | 161 | \begin{frame} 162 | \titlepage 163 | \end{frame} 164 | 165 | \begin{frame} 166 | \frametitle{Outline} 167 | \tableofcontents[hideallsubsections] 168 | \end{frame} 169 | 170 | %-------------------------------------------------------------------------------- 171 | % PRESENTATION SLIDES 172 | %-------------------------------------------------------------------------------- 173 | 174 | %------------------------------------------------ 175 | \section{First Section} % Sections can be created in order to organize your presentation into discrete blocks, all sections and subsections are automatically printed in the table of contents as an overview of the talk 176 | %------------------------------------------------ 177 | 178 | \subsection{Subsection Example} % A subsection can be created just before a set of slides with a common theme to further break down your presentation into chunks 179 | 180 | \begin{frame} 181 | \frametitle{Paragraphs of Text} 182 | This is paragraphs of text. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. \\~\\ 183 | 184 | The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 185 | \end{frame} 186 | 187 | %------------------------------------------------ 188 | 189 | \begin{frame} 190 | \frametitle{Lists} 191 | 192 | \begin{enumerate} 193 | \item This is a enumerate environment. 194 | \item This is a enumerate environment. 195 | \item This is a enumerate environment. 196 | \end{enumerate} 197 | 198 | \vspace{2ex} 199 | \begin{itemize}[<+-| alert@+>] 200 | \item This is a itemize environment. 201 | \item This is a itemize environment. 202 | \item This is a itemize environment. 203 | \end{itemize} 204 | \end{frame} 205 | 206 | %------------------------------------------------ 207 | 208 | \begin{frame} 209 | \frametitle{Blocks of Highlighted Text} 210 | \begin{block}{Block Title} 211 | This is the block environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 212 | \end{block} 213 | 214 | \begin{exampleblock}{Block Title} 215 | This is the exampleblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 216 | \end{exampleblock} 217 | 218 | \begin{alertblock}{Block Title} 219 | This is the alertblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 220 | \end{alertblock} 221 | \end{frame} 222 | 223 | %------------------------------------------------ 224 | 225 | \begin{frame} 226 | \frametitle{Multiple Columns} 227 | \begin{columns}[c] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment 228 | 229 | \column{0.5\textwidth} 230 | This is a text in first column. 231 | $$E=mc^2$$ 232 | \begin{itemize} 233 | \item First item 234 | \item Second item 235 | \end{itemize} 236 | 237 | \column{0.5\textwidth} 238 | This text will be in the second column 239 | and on a second tought this is a nice looking 240 | layout in some cases. 241 | 242 | \end{columns} 243 | \end{frame} 244 | 245 | %------------------------------------------------ 246 | \section{Second Section} 247 | %------------------------------------------------ 248 | 249 | \begin{frame} 250 | \frametitle{Theorem} 251 | 252 | \begin{definition} 253 | This is a definition environment. 254 | \end{definition} 255 | 256 | 257 | \begin{lemma} 258 | This is a lemma environment. 259 | \end{lemma} 260 | 261 | \begin{proposition} 262 | This is a proposition environment. 263 | \end{proposition} 264 | 265 | \begin{theorem}[Mass--energy] 266 | This is a theorem environment. 267 | \end{theorem} 268 | 269 | \begin{proof} 270 | This is a proof environment. 271 | \end{proof} 272 | \end{frame} 273 | 274 | %------------------------------------------------ 275 | 276 | \begin{frame} 277 | \frametitle{Formula and Table} 278 | 279 | This is Pythagorean's theorem 280 | \begin{equation}\label{Pythagorean} 281 | a^2+b^2=c^2. 282 | \end{equation} 283 | 284 | This is a simple three-line table. 285 | \begin{table} 286 | \caption{Table caption} 287 | \begin{tabular}{l l l} 288 | \toprule 289 | Treatments & Response 1 & Response 2 \\ 290 | \midrule 291 | Treatment 1 & 0.0003262 & 0.562 \\ 292 | Treatment 2 & 0.0015681 & 0.910 \\ 293 | Treatment 3 & 0.0009271 & 0.296 \\ 294 | \bottomrule 295 | \end{tabular} 296 | \end{table} 297 | 298 | \end{frame} 299 | 300 | %------------------------------------------------ 301 | 302 | \begin{frame} 303 | \frametitle{} 304 | The new command PLCR is defined to set the length of the width of the table. They can be used in the tabularx environment. 305 | 306 | \begin{table}[!htp] 307 | \centering 308 | \renewcommand\arraystretch{1.05} 309 | \caption{A sample of the height and weight of students.} 310 | \label{tab2:heightweight} 311 | % PLCR is defined in the preamble 312 | \begin{tabularx}{0.8\textwidth}{lCCC} 313 | \toprule %\Xhline{2\arrayrulewidth} 314 | Number & Age & Height & Weight\\ 315 | \midrule 316 | 1&14&156&42\\ 317 | 2&16&158&45\\ 318 | 3&14&162&48\\ 319 | 4&15&163&50\\ 320 | \cmidrule{2-4} 321 | Mean &15&159.75&46.25\\ 322 | \bottomrule 323 | \end{tabularx} 324 | \end{table} 325 | \end{frame} 326 | 327 | %------------------------------------------------ 328 | 329 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 330 | \frametitle{Verbatim} 331 | \begin{example}[Theorem Slide Code] 332 | \begin{verbatim} 333 | \begin{frame} 334 | \frametitle{Theorem} 335 | \begin{theorem}[Mass--energy equivalence] 336 | $E = mc^2$ 337 | \end{theorem} 338 | \end{frame}\end{verbatim} 339 | \end{example} 340 | 341 | \begin{theorem}[Mass--energy equivalence] 342 | $E = mc^2$ 343 | \end{theorem} 344 | \end{frame} 345 | 346 | %------------------------------------------------ 347 | 348 | \begin{frame} 349 | \frametitle{Figure} 350 | 351 | Uncomment the code on this slide to include your own image from the same directory as the template .TeX file. 352 | \begin{figure}[htp!] 353 | \centering 354 | \includegraphics[width=0.6\linewidth]{image1.eps} 355 | \end{figure} 356 | \end{frame} 357 | 358 | %------------------------------------------------ 359 | 360 | \begin{frame} 361 | \frametitle{Two pictures} 362 | \begin{figure}[htb] 363 | \centering 364 | \begin{minipage}{0.48\linewidth} 365 | \centering 366 | \includegraphics[width=\linewidth]{image1} 367 | \caption{Caption of Figure 1.} 368 | \end{minipage}\hfill 369 | \begin{minipage}{0.48\linewidth} 370 | \centering 371 | \includegraphics[width=\linewidth]{image2} 372 | \caption{Caption of Figure 2.} 373 | \end{minipage} 374 | \end{figure} 375 | \end{frame} 376 | 377 | %------------------------------------------------ 378 | \section{Third Section} 379 | %------------------------------------------------ 380 | 381 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 382 | \frametitle{Citation} 383 | An example of the \verb|\cite| command to cite within the presentation:\\~ 384 | 385 | This statement requires citation \cite{Smith2012}. 386 | \end{frame} 387 | 388 | %------------------------------------------------ 389 | 390 | \begin{frame} 391 | \frametitle{References} 392 | \footnotesize{ 393 | \begin{thebibliography}{99} % Beamer does not support BibTeX so references must be inserted manually as below 394 | \bibitem[Smith, 2012]{Smith2012} John Smith. Title of the publication. \emph{Journal Name}, 12(3):45--678, 2012. 395 | \end{thebibliography} 396 | } 397 | \end{frame} 398 | 399 | 400 | %------------------------------------------------ 401 | %\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 402 | %\setbeamertemplate{headline}{} 403 | \begin{frame} 404 | %\sffamily 405 | \begin{center} 406 | \HUGE{\textcolor[RGB]{165,3,3}{Thank~you!}} 407 | \end{center} 408 | \end{frame} 409 | 410 | %------------------------------------------------ 411 | 412 | %\thispagestyle{empty} 413 | %%\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 414 | %\begin{frame} 415 | %\Huge{\centerline{The End}} 416 | %\end{frame} 417 | 418 | 419 | \end{document} 420 | 421 | -------------------------------------------------------------------------------- /Singapore-demo.tex: -------------------------------------------------------------------------------- 1 | %======================================================% 2 | % Beamer Presentation 3 | % LaTeX Template 4 | % compile using PDFTeXify or PDFLaTeX 5 | %======================================================% 6 | 7 | %-------------------------------------------------------------------------------- 8 | % PACKAGES AND THEMES 9 | %-------------------------------------------------------------------------------- 10 | 11 | \documentclass[notheorems,11pt,compress]{beamer} 12 | 13 | % The Beamer class comes with a number of default slide themes 14 | % which change the colors and layouts of slides. Below this is a list 15 | % of all the themes, uncomment each in turn to see what they look like. 16 | 17 | \mode{ 18 | 19 | %------- Beamer theme ------ 20 | \usetheme{Singapore} 21 | %\usetheme{Madrid} 22 | %\usetheme{Boadilla} 23 | %\usetheme{Frankfurt} 24 | %\usetheme{Warsaw} 25 | %\usetheme{CambridgeUS} 26 | %\usetheme{Montpellier} 27 | 28 | %------- Color theme ------ 29 | \usecolortheme{rose} 30 | %\usecolortheme{orchid} 31 | %\usecolortheme{lily} 32 | %\usecolortheme{whale} 33 | %\usecolortheme{dolphin} 34 | %\usecolortheme{seahorse} 35 | 36 | %\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10] 37 | \usefonttheme[onlymath]{serif} 38 | %\usefonttheme{serif} 39 | %\setbeamercovered{transparent} 40 | %\usetheme{boxes} 41 | 42 | %\setbeamertemplate{headline}{} 43 | %\setbeamertemplate{footline}{} 44 | \setbeamertemplate{blocks}[rounded][shadow=true] 45 | \setbeamertemplate{navigation symbols}{} 46 | %\setbeamertemplate{itemize items}[square] % ball, circle 47 | \setbeamertemplate{enumerate items}[square] 48 | %\setbeamertemplate{section in toc}[square] 49 | } 50 | 51 | %----------- Packages ------------- 52 | %\usepackage[latin1]{inputenc} 53 | %\usepackage{times} 54 | %\usepackage[T1]{fontenc} 55 | 56 | \usepackage[english]{babel} 57 | \usepackage{amsmath,amssymb,version} 58 | \usepackage{graphicx,fancybox,mathrsfs,multirow} 59 | \usepackage{booktabs} 60 | \usepackage{epsfig,epstopdf} 61 | \usepackage{url,hyperref} 62 | \usepackage{tabularx,array,makecell} 63 | \usepackage{color,xcolor} 64 | \usepackage{cases} 65 | \usepackage{mathtools} 66 | \usepackage{tikz} 67 | 68 | %---------- Set line spacing ---------- 69 | %\renewcommand{\baselinestretch}{1.15} 70 | 71 | %---------- Define new table commands ---------- 72 | \newcolumntype{P}[1]{>{\centering \arraybackslash}p{#1}} 73 | \newcolumntype{L}{X} 74 | \newcolumntype{C}{>{\centering \arraybackslash}X} 75 | \newcolumntype{R}{>{\raggedleft \arraybackslash}X} 76 | 77 | 78 | %---------- Set fonts ---------- 79 | %\setbeamerfont{normal text}{family=\rmfamily} 80 | %\AtBeginDocument{\usebeamerfont{normal text}} 81 | 82 | 83 | %---------- Theorem environment ---------- 84 | \setbeamertemplate{theorems}[numbered] 85 | \newtheorem{theorem}{Theorem} 86 | \numberwithin{theorem}{section} 87 | \newtheorem{definition}{Definition} 88 | \numberwithin{definition}{section} 89 | \newtheorem{lemma}{Lemma} 90 | \numberwithin{lemma}{section} 91 | \newtheorem{proposition}{Proposition} 92 | \numberwithin{proposition}{section} 93 | \newtheorem{corollary}{Corollary} 94 | \numberwithin{corollary}{section} 95 | \theoremstyle{example} 96 | \newtheorem{example}{Example} 97 | %\numberwithin{example}{section} 98 | \renewenvironment{proof}[1][Proof]{\textit{#1}:~}{\qed\par} 99 | 100 | \setbeamertemplate{caption}[numbered] 101 | \numberwithin{figure}{section} 102 | \numberwithin{table}{section} 103 | \numberwithin{equation}{section} 104 | 105 | 106 | %---------- Adjust the spacing of formulas ---------- 107 | %\AtBeginDocument{ 108 | % \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt} 109 | % \setlength{\belowdisplayskip}{4pt plus 1pt minus 1pt} 110 | % \setlength{\abovedisplayshortskip}{2pt} 111 | % \setlength{\belowdisplayshortskip}{2pt} 112 | % \setlength{\arraycolsep}{2pt} 113 | %} 114 | 115 | \makeatletter 116 | \newcommand\HUGE{\@setfontsize\Huge{36}{42}} 117 | \makeatother 118 | 119 | %---------- Define new commands ---------- 120 | \newcommand{\red}[1]{\textcolor{red}{#1}} 121 | \newcommand{\blue}[1]{\textcolor{blue}{#1}} 122 | 123 | 124 | %---------- Show the outline ---------- 125 | \AtBeginSection[]{ 126 | \begin{frame} 127 | \frametitle{Outline} 128 | \tableofcontents[currentsection,currentsubsection,subsectionstyle=show/show/shaded] 129 | %\tableofcontents[currentsection,hideallsubsections] 130 | \addtocounter{framenumber}{-1} 131 | \end{frame} 132 | } 133 | 134 | 135 | %-------------------------------------------------------------------------------- 136 | % TITLE PAGE 137 | %-------------------------------------------------------------------------------- 138 | 139 | \title[Short title]{Full Title of the Talk} 140 | % The short title appears at the bottom of every slide, the full title is only on the title page 141 | 142 | \author{John Smith} % Your name 143 | \institute[NU] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space 144 | { 145 | Name of University \\ % Your institution for the title page 146 | \medskip 147 | \textit{name@email.com} % Your email address 148 | } 149 | \date[2020.6.23]{Jun 23, 2020} % Date, can be changed to a custom date 150 | 151 | 152 | \graphicspath{{./figures/}} 153 | 154 | 155 | \begin{document} 156 | 157 | % only change the spacing of body text 158 | \setlength{\baselineskip}{15pt} 159 | 160 | 161 | \begin{frame} 162 | \titlepage 163 | \end{frame} 164 | 165 | \begin{frame} 166 | \frametitle{Outline} 167 | \tableofcontents%[hideallsubsections] 168 | \end{frame} 169 | 170 | %-------------------------------------------------------------------------------- 171 | % PRESENTATION SLIDES 172 | %-------------------------------------------------------------------------------- 173 | 174 | %------------------------------------------------ 175 | \section{First Section} % Sections can be created in order to organize your presentation into discrete blocks, all sections and subsections are automatically printed in the table of contents as an overview of the talk 176 | %------------------------------------------------ 177 | 178 | \subsection{Subsection Example} % A subsection can be created just before a set of slides with a common theme to further break down your presentation into chunks 179 | 180 | \begin{frame} 181 | \frametitle{Paragraphs of Text} 182 | This is paragraphs of text. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. \\~\\ 183 | 184 | The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 185 | \end{frame} 186 | 187 | %------------------------------------------------ 188 | 189 | \begin{frame} 190 | \frametitle{Lists} 191 | 192 | \begin{enumerate} 193 | \item This is a enumerate environment. 194 | \item This is a enumerate environment. 195 | \item This is a enumerate environment. 196 | \end{enumerate} 197 | 198 | \vspace{2ex} 199 | \begin{itemize}[<+-| alert@+>] 200 | \item This is a itemize environment. 201 | \item This is a itemize environment. 202 | \item This is a itemize environment. 203 | \end{itemize} 204 | \end{frame} 205 | 206 | %------------------------------------------------ 207 | 208 | \begin{frame} 209 | \frametitle{Blocks of Highlighted Text} 210 | \begin{block}{Block Title} 211 | This is the block environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 212 | \end{block} 213 | 214 | \begin{exampleblock}{Block Title} 215 | This is the exampleblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 216 | \end{exampleblock} 217 | 218 | \begin{alertblock}{Block Title} 219 | This is the alertblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 220 | \end{alertblock} 221 | \end{frame} 222 | 223 | %------------------------------------------------ 224 | 225 | \begin{frame} 226 | \frametitle{Multiple Columns} 227 | \begin{columns}[c] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment 228 | 229 | \column{0.5\textwidth} 230 | This is a text in first column. 231 | $$E=mc^2$$ 232 | \begin{itemize} 233 | \item First item 234 | \item Second item 235 | \end{itemize} 236 | 237 | \column{0.5\textwidth} 238 | This text will be in the second column 239 | and on a second tought this is a nice looking 240 | layout in some cases. 241 | 242 | \end{columns} 243 | \end{frame} 244 | 245 | %------------------------------------------------ 246 | \section{Second Section} 247 | %------------------------------------------------ 248 | 249 | \begin{frame} 250 | \frametitle{Theorem} 251 | 252 | \begin{definition} 253 | This is a definition environment. 254 | \end{definition} 255 | 256 | 257 | \begin{lemma} 258 | This is a lemma environment. 259 | \end{lemma} 260 | 261 | \begin{proposition} 262 | This is a proposition environment. 263 | \end{proposition} 264 | 265 | \begin{theorem}[Mass--energy] 266 | This is a theorem environment. 267 | \end{theorem} 268 | 269 | \begin{proof} 270 | This is a proof environment. 271 | \end{proof} 272 | \end{frame} 273 | 274 | %------------------------------------------------ 275 | 276 | \begin{frame} 277 | \frametitle{Formula and Table} 278 | 279 | This is Pythagorean's theorem 280 | \begin{equation}\label{Pythagorean} 281 | a^2+b^2=c^2. 282 | \end{equation} 283 | 284 | This is a simple three-line table. 285 | \begin{table} 286 | \caption{Table caption} 287 | \begin{tabular}{l l l} 288 | \toprule 289 | Treatments & Response 1 & Response 2 \\ 290 | \midrule 291 | Treatment 1 & 0.0003262 & 0.562 \\ 292 | Treatment 2 & 0.0015681 & 0.910 \\ 293 | Treatment 3 & 0.0009271 & 0.296 \\ 294 | \bottomrule 295 | \end{tabular} 296 | \end{table} 297 | 298 | \end{frame} 299 | 300 | %------------------------------------------------ 301 | 302 | \begin{frame} 303 | \frametitle{} 304 | The new command PLCR is defined to set the length of the width of the table. They can be used in the tabularx environment. 305 | 306 | \begin{table}[!htp] 307 | \centering 308 | \renewcommand\arraystretch{1.05} 309 | \caption{A sample of the height and weight of students.} 310 | \label{tab2:heightweight} 311 | % PLCR is defined in the preamble 312 | \begin{tabularx}{0.8\textwidth}{lCCC} 313 | \toprule %\Xhline{2\arrayrulewidth} 314 | Number & Age & Height & Weight\\ 315 | \midrule 316 | 1&14&156&42\\ 317 | 2&16&158&45\\ 318 | 3&14&162&48\\ 319 | 4&15&163&50\\ 320 | \cmidrule{2-4} 321 | Mean &15&159.75&46.25\\ 322 | \bottomrule 323 | \end{tabularx} 324 | \end{table} 325 | \end{frame} 326 | 327 | %------------------------------------------------ 328 | 329 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 330 | \frametitle{Verbatim} 331 | \begin{example}[Theorem Slide Code] 332 | \begin{verbatim} 333 | \begin{frame} 334 | \frametitle{Theorem} 335 | \begin{theorem}[Mass--energy equivalence] 336 | $E = mc^2$ 337 | \end{theorem} 338 | \end{frame}\end{verbatim} 339 | \end{example} 340 | 341 | \begin{theorem}[Mass--energy equivalence] 342 | $E = mc^2$ 343 | \end{theorem} 344 | \end{frame} 345 | 346 | %------------------------------------------------ 347 | 348 | \begin{frame} 349 | \frametitle{Figure} 350 | 351 | Uncomment the code on this slide to include your own image from the same directory as the template .TeX file. 352 | \begin{figure}[htp!] 353 | \centering 354 | \includegraphics[width=0.6\linewidth]{image1.eps} 355 | \end{figure} 356 | \end{frame} 357 | 358 | %------------------------------------------------ 359 | 360 | \begin{frame} 361 | \frametitle{Two pictures} 362 | \begin{figure}[htb] 363 | \centering 364 | \begin{minipage}{0.48\linewidth} 365 | \centering 366 | \includegraphics[width=\linewidth]{image1} 367 | \caption{Caption of Figure 1.} 368 | \end{minipage}\hfill 369 | \begin{minipage}{0.48\linewidth} 370 | \centering 371 | \includegraphics[width=\linewidth]{image2} 372 | \caption{Caption of Figure 2.} 373 | \end{minipage} 374 | \end{figure} 375 | \end{frame} 376 | 377 | %------------------------------------------------ 378 | \section{Third Section} 379 | %------------------------------------------------ 380 | 381 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 382 | \frametitle{Citation} 383 | An example of the \verb|\cite| command to cite within the presentation:\\~ 384 | 385 | This statement requires citation \cite{Smith2012}. 386 | \end{frame} 387 | 388 | %------------------------------------------------ 389 | 390 | \begin{frame} 391 | \frametitle{References} 392 | \footnotesize{ 393 | \begin{thebibliography}{99} % Beamer does not support BibTeX so references must be inserted manually as below 394 | \bibitem[Smith, 2012]{Smith2012} John Smith. Title of the publication. \emph{Journal Name}, 12(3):45--678, 2012. 395 | \end{thebibliography} 396 | } 397 | \end{frame} 398 | 399 | 400 | %------------------------------------------------ 401 | %\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 402 | %\setbeamertemplate{headline}{} 403 | \begin{frame} 404 | %\sffamily 405 | \begin{center} 406 | \HUGE{\textcolor[RGB]{165,3,3}{Thank~you!}} 407 | \end{center} 408 | \end{frame} 409 | 410 | %------------------------------------------------ 411 | 412 | %\thispagestyle{empty} 413 | %%\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 414 | %\begin{frame} 415 | %\Huge{\centerline{The End}} 416 | %\end{frame} 417 | 418 | 419 | \end{document} 420 | -------------------------------------------------------------------------------- /PaloAlto-demo.tex: -------------------------------------------------------------------------------- 1 | %======================================================% 2 | % Beamer Presentation 3 | % LaTeX Template 4 | % compile using PDFTeXify or PDFLaTeX 5 | %======================================================% 6 | 7 | %-------------------------------------------------------------------------------- 8 | % PACKAGES AND THEMES 9 | %-------------------------------------------------------------------------------- 10 | 11 | \documentclass[notheorems,11pt,xcolor=table]{beamer} 12 | %\documentclass[11pt,no-math,xcolor=table,aspectratio=169]{beamer} 13 | 14 | %\usepackage{pgfpages} 15 | %\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm] %,handout 16 | 17 | \usefonttheme[onlymath]{serif} % 有衬线字体 18 | 19 | \usetheme{PaloAlto} 20 | %\usecolortheme{crane} 21 | \setbeamertemplate{navigation symbols}{} 22 | 23 | \definecolor{bgcolor}{RGB}{128,128,255} 24 | \setbeamercolor{frametitle}{fg=black,bg=bgcolor} 25 | \setbeamercolor{sidebar}{bg=bgcolor} 26 | 27 | 28 | %\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10] 29 | \usefonttheme[onlymath]{serif} 30 | %\usefonttheme{serif} 31 | %\setbeamercovered{transparent} 32 | %\usetheme{boxes} 33 | 34 | %\setbeamertemplate{headline}{} 35 | %\setbeamertemplate{footline}{} 36 | %\setbeamertemplate{blocks}[rounded][shadow=true] 37 | \setbeamertemplate{navigation symbols}{} 38 | %\setbeamertemplate{itemize items}[square] % ball, circle 39 | \setbeamertemplate{enumerate items}[square] 40 | %\setbeamertemplate{section in toc}[square] 41 | 42 | \makeatletter 43 | \beamer@headheight=2\baselineskip %controls the height of the headline, default is 2.5 44 | \makeatother 45 | 46 | \definecolor{bgtop}{RGB}{211,211,239} 47 | \setbeamertemplate{background canvas}[vertical shading][bottom=white,top=bgtop] 48 | 49 | %----------- Packages ------------- 50 | %\usepackage[latin1]{inputenc} 51 | %\usepackage{times} 52 | %\usepackage[T1]{fontenc} 53 | 54 | \usepackage[english]{babel} 55 | \usepackage{amsmath,amssymb,version} 56 | \usepackage{graphicx,fancybox,mathrsfs,multirow} 57 | \usepackage{booktabs} 58 | \usepackage{epsfig,epstopdf} 59 | \usepackage{url,hyperref} 60 | \usepackage{tabularx,array,makecell} 61 | \usepackage{color,xcolor} 62 | \usepackage{cases} 63 | \usepackage{mathtools} 64 | \usepackage{tikz} 65 | 66 | %---------- Set line spacing ---------- 67 | %\renewcommand{\baselinestretch}{1.15} 68 | 69 | %---------- Define new table commands ---------- 70 | \newcolumntype{P}[1]{>{\centering \arraybackslash}p{#1}} 71 | \newcolumntype{L}{X} 72 | \newcolumntype{C}{>{\centering \arraybackslash}X} 73 | \newcolumntype{R}{>{\raggedleft \arraybackslash}X} 74 | 75 | 76 | %---------- Set fonts ---------- 77 | %\setbeamerfont{normal text}{family=\rmfamily} 78 | %\AtBeginDocument{\usebeamerfont{normal text}} 79 | 80 | 81 | %---------- Theorem environment ---------- 82 | \setbeamertemplate{theorems}[numbered] 83 | \newtheorem{theorem}{Theorem} 84 | \numberwithin{theorem}{section} 85 | \newtheorem{definition}{Definition} 86 | \numberwithin{definition}{section} 87 | \newtheorem{lemma}{Lemma} 88 | \numberwithin{lemma}{section} 89 | \newtheorem{proposition}{Proposition} 90 | \numberwithin{proposition}{section} 91 | \newtheorem{corollary}{Corollary} 92 | \numberwithin{corollary}{section} 93 | \theoremstyle{example} 94 | \newtheorem{example}{Example} 95 | %\numberwithin{example}{section} 96 | \renewenvironment{proof}[1][Proof]{\textit{#1}:~}{\qed\par} 97 | 98 | \setbeamertemplate{caption}[numbered] 99 | \numberwithin{figure}{section} 100 | \numberwithin{table}{section} 101 | \numberwithin{equation}{section} 102 | 103 | 104 | %---------- Adjust the spacing of formulas ---------- 105 | %\AtBeginDocument{ 106 | % \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt} 107 | % \setlength{\belowdisplayskip}{4pt plus 1pt minus 1pt} 108 | % \setlength{\abovedisplayshortskip}{2pt} 109 | % \setlength{\belowdisplayshortskip}{2pt} 110 | % \setlength{\arraycolsep}{2pt} 111 | %} 112 | 113 | \makeatletter 114 | \newcommand\HUGE{\@setfontsize\Huge{36}{42}} 115 | \makeatother 116 | 117 | %---------- Define new commands ---------- 118 | \newcommand{\red}[1]{\textcolor{red}{#1}} 119 | \newcommand{\blue}[1]{\textcolor{blue}{#1}} 120 | 121 | 122 | %---------- Show the outline ---------- 123 | \AtBeginSection[]{ 124 | \begin{frame} 125 | \frametitle{Outline} 126 | \tableofcontents[currentsection,currentsubsection,subsectionstyle=show/show/shaded] 127 | %\tableofcontents[currentsection,hideallsubsections] 128 | \addtocounter{framenumber}{-1} 129 | \end{frame} 130 | } 131 | 132 | 133 | \bibliographystyle{apalike} 134 | 135 | \logo{\includegraphics[height=1cm]{logo.pdf}} 136 | 137 | %-------------------------------------------------------------------------------- 138 | % TITLE PAGE 139 | %-------------------------------------------------------------------------------- 140 | 141 | \title[Short title]{Full Title of the Talk} 142 | % The short title appears at the bottom of every slide, the full title is only on the title page 143 | 144 | \author{John Smith} % Your name 145 | \institute[NU] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space 146 | { 147 | Name of University \\ % Your institution for the title page 148 | \medskip 149 | \textit{name@email.com} % Your email address 150 | } 151 | \date[2020.6.23]{Jun 23, 2020} % Date, can be changed to a custom date 152 | 153 | 154 | \graphicspath{{./figures/}} 155 | 156 | 157 | \begin{document} 158 | 159 | % only change the spacing of body text 160 | \setlength{\baselineskip}{15pt} 161 | 162 | 163 | \begin{frame} 164 | \titlepage 165 | \end{frame} 166 | 167 | \begin{frame} 168 | \frametitle{Outline} 169 | \tableofcontents[hideallsubsections] 170 | \end{frame} 171 | 172 | %-------------------------------------------------------------------------------- 173 | % PRESENTATION SLIDES 174 | %-------------------------------------------------------------------------------- 175 | 176 | %------------------------------------------------ 177 | \section{First Section} % Sections can be created in order to organize your presentation into discrete blocks, all sections and subsections are automatically printed in the table of contents as an overview of the talk 178 | %------------------------------------------------ 179 | 180 | \subsection{Subsection Example} % A subsection can be created just before a set of slides with a common theme to further break down your presentation into chunks 181 | 182 | \begin{frame} 183 | \frametitle{Paragraphs of Text} 184 | This is paragraphs of text. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. \\~\\ 185 | 186 | The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 187 | \end{frame} 188 | 189 | %------------------------------------------------ 190 | 191 | \begin{frame} 192 | \frametitle{Lists} 193 | 194 | \begin{enumerate} 195 | \item This is a enumerate environment. 196 | \item This is a enumerate environment. 197 | \item This is a enumerate environment. 198 | \end{enumerate} 199 | 200 | \vspace{2ex} 201 | \begin{itemize}[<+-| alert@+>] 202 | \item This is a itemize environment. 203 | \item This is a itemize environment. 204 | \item This is a itemize environment. 205 | \end{itemize} 206 | \end{frame} 207 | 208 | %------------------------------------------------ 209 | 210 | \begin{frame} 211 | \frametitle{Blocks of Highlighted Text} 212 | \begin{block}{Block Title} 213 | This is the block environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 214 | \end{block} 215 | 216 | \begin{exampleblock}{Block Title} 217 | This is the exampleblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 218 | \end{exampleblock} 219 | 220 | \begin{alertblock}{Block Title} 221 | This is the alertblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 222 | \end{alertblock} 223 | \end{frame} 224 | 225 | %------------------------------------------------ 226 | 227 | \begin{frame} 228 | \frametitle{Multiple Columns} 229 | \begin{columns}[c] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment 230 | 231 | \column{0.5\textwidth} 232 | This is a text in first column. 233 | $$E=mc^2$$ 234 | \begin{itemize} 235 | \item First item 236 | \item Second item 237 | \end{itemize} 238 | 239 | \column{0.5\textwidth} 240 | This text will be in the second column 241 | and on a second tought this is a nice looking 242 | layout in some cases. 243 | 244 | \end{columns} 245 | \end{frame} 246 | 247 | %------------------------------------------------ 248 | \section{Second Section} 249 | %------------------------------------------------ 250 | 251 | \begin{frame} 252 | \frametitle{Theorem} 253 | 254 | \begin{definition} 255 | This is a definition environment. 256 | \end{definition} 257 | 258 | 259 | \begin{lemma} 260 | This is a lemma environment. 261 | \end{lemma} 262 | 263 | \begin{proposition} 264 | This is a proposition environment. 265 | \end{proposition} 266 | 267 | \begin{theorem}[Mass--energy] 268 | This is a theorem environment. 269 | \end{theorem} 270 | 271 | \begin{proof} 272 | This is a proof environment. 273 | \end{proof} 274 | \end{frame} 275 | 276 | %------------------------------------------------ 277 | 278 | \begin{frame} 279 | \frametitle{Formula and Table} 280 | 281 | This is Pythagorean's theorem 282 | \begin{equation}\label{Pythagorean} 283 | a^2+b^2=c^2. 284 | \end{equation} 285 | 286 | This is a simple three-line table. 287 | \begin{table} 288 | \caption{Table caption} 289 | \begin{tabular}{l l l} 290 | \toprule 291 | Treatments & Response 1 & Response 2 \\ 292 | \midrule 293 | Treatment 1 & 0.0003262 & 0.562 \\ 294 | Treatment 2 & 0.0015681 & 0.910 \\ 295 | Treatment 3 & 0.0009271 & 0.296 \\ 296 | \bottomrule 297 | \end{tabular} 298 | \end{table} 299 | 300 | \end{frame} 301 | 302 | %------------------------------------------------ 303 | 304 | \begin{frame} 305 | \frametitle{} 306 | The new command PLCR is defined to set the length of the width of the table. They can be used in the tabularx environment. 307 | 308 | \begin{table}[!htp] 309 | \centering 310 | \renewcommand\arraystretch{1.05} 311 | \caption{A sample of the height and weight of students.} 312 | \label{tab2:heightweight} 313 | % PLCR is defined in the preamble 314 | \begin{tabularx}{0.8\textwidth}{lCCC} 315 | \toprule %\Xhline{2\arrayrulewidth} 316 | Number & Age & Height & Weight\\ 317 | \midrule 318 | 1&14&156&42\\ 319 | 2&16&158&45\\ 320 | 3&14&162&48\\ 321 | 4&15&163&50\\ 322 | \cmidrule{2-4} 323 | Mean &15&159.75&46.25\\ 324 | \bottomrule 325 | \end{tabularx} 326 | \end{table} 327 | \end{frame} 328 | 329 | %------------------------------------------------ 330 | 331 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 332 | \frametitle{Verbatim} 333 | \begin{example}[Theorem Slide Code] 334 | \begin{verbatim} 335 | \begin{frame} 336 | \frametitle{Theorem} 337 | \begin{theorem}[Mass--energy equivalence] 338 | $E = mc^2$ 339 | \end{theorem} 340 | \end{frame}\end{verbatim} 341 | \end{example} 342 | 343 | \begin{theorem}[Mass--energy equivalence] 344 | $E = mc^2$ 345 | \end{theorem} 346 | \end{frame} 347 | 348 | %------------------------------------------------ 349 | 350 | \begin{frame} 351 | \frametitle{Figure} 352 | 353 | Uncomment the code on this slide to include your own image from the same directory as the template .TeX file. 354 | \begin{figure}[htp!] 355 | \centering 356 | \includegraphics[width=0.6\linewidth]{image1.eps} 357 | \end{figure} 358 | \end{frame} 359 | 360 | %------------------------------------------------ 361 | 362 | \begin{frame} 363 | \frametitle{Two pictures} 364 | \begin{figure}[htb] 365 | \centering 366 | \begin{minipage}{0.48\linewidth} 367 | \centering 368 | \includegraphics[width=\linewidth]{image1} 369 | \caption{Caption of Figure 1.} 370 | \end{minipage}\hfill 371 | \begin{minipage}{0.48\linewidth} 372 | \centering 373 | \includegraphics[width=\linewidth]{image2} 374 | \caption{Caption of Figure 2.} 375 | \end{minipage} 376 | \end{figure} 377 | \end{frame} 378 | 379 | %------------------------------------------------ 380 | \section{Third Section} 381 | %------------------------------------------------ 382 | 383 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 384 | \frametitle{Citation} 385 | An example of the \verb|\cite| command to cite within the presentation:\\~ 386 | 387 | This statement requires citation \cite{Smith2012}. 388 | \end{frame} 389 | 390 | %------------------------------------------------ 391 | 392 | \begin{frame} 393 | \frametitle{References} 394 | \footnotesize{ 395 | \begin{thebibliography}{99} % Beamer does not support BibTeX so references must be inserted manually as below 396 | \bibitem[Smith, 2012]{Smith2012} John Smith. Title of the publication. \emph{Journal Name}, 12(3):45--678, 2012. 397 | \end{thebibliography} 398 | } 399 | \end{frame} 400 | 401 | 402 | %------------------------------------------------ 403 | %\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 404 | %\setbeamertemplate{headline}{} 405 | \begin{frame} 406 | %\sffamily 407 | \begin{center} 408 | \HUGE{\textcolor[RGB]{165,3,3}{Thank~you!}} 409 | \end{center} 410 | \end{frame} 411 | 412 | %------------------------------------------------ 413 | 414 | %\thispagestyle{empty} 415 | %%\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 416 | %\begin{frame} 417 | %\Huge{\centerline{The End}} 418 | %\end{frame} 419 | 420 | 421 | \end{document} 422 | 423 | -------------------------------------------------------------------------------- /Warsaw-demo.tex: -------------------------------------------------------------------------------- 1 | %======================================================% 2 | % Beamer Presentation 3 | % LaTeX Template 4 | % compile using PDFTeXify or PDFLaTeX 5 | %======================================================% 6 | 7 | %-------------------------------------------------------------------------------- 8 | % PACKAGES AND THEMES 9 | %-------------------------------------------------------------------------------- 10 | 11 | \documentclass[notheorems,11pt,compress]{beamer} 12 | 13 | % The Beamer class comes with a number of default slide themes 14 | % which change the colors and layouts of slides. Below this is a list 15 | % of all the themes, uncomment each in turn to see what they look like. 16 | 17 | \mode{ 18 | 19 | %------- Beamer theme ------ 20 | \usetheme{Warsaw} 21 | %\usetheme{Madrid} 22 | %\usetheme{Boadilla} 23 | %\usetheme{Frankfurt} 24 | %\usetheme{CambridgeUS} 25 | %\usetheme{Montpellier} 26 | 27 | %------- Color theme ------ 28 | %\usecolortheme{rose} 29 | %\usecolortheme{orchid} 30 | %\usecolortheme{lily} 31 | %\usecolortheme{whale} 32 | %\usecolortheme{dolphin} 33 | %\usecolortheme{seahorse} 34 | 35 | %\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10] 36 | \usefonttheme[onlymath]{serif} 37 | %\usefonttheme{serif} 38 | %\setbeamercovered{transparent} 39 | %\usetheme{boxes} 40 | 41 | %\setbeamertemplate{headline}{} 42 | %\setbeamertemplate{footline}{} 43 | \setbeamertemplate{blocks}[rounded][shadow=true] 44 | \setbeamertemplate{navigation symbols}{} 45 | %\setbeamertemplate{itemize items}[square] % ball, circle 46 | \setbeamertemplate{enumerate items}[square] 47 | %\setbeamertemplate{section in toc}[square] 48 | 49 | \setbeamertemplate{footline}%{shadow theme} 50 | {% 51 | \leavevmode% 52 | \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fil,rightskip=.3cm]{author in head/foot}% 53 | \usebeamerfont{author in head/foot}\insertshortauthor 54 | \end{beamercolorbox}% 55 | \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}% 56 | \usebeamerfont{title in head/foot} \hfill \insertshorttitle \hfill \insertframenumber\,/\,\inserttotalframenumber% 57 | \end{beamercolorbox}}% 58 | \vskip0pt% 59 | } 60 | 61 | } 62 | 63 | %----------- Packages ------------- 64 | %\usepackage[latin1]{inputenc} 65 | %\usepackage{times} 66 | %\usepackage[T1]{fontenc} 67 | 68 | \usepackage[english]{babel} 69 | \usepackage{amsmath,amssymb,version} 70 | \usepackage{graphicx,fancybox,mathrsfs,multirow} 71 | \usepackage{booktabs} 72 | \usepackage{epsfig,epstopdf} 73 | \usepackage{url,hyperref} 74 | \usepackage{tabularx,array,makecell} 75 | \usepackage{color,xcolor} 76 | \usepackage{cases} 77 | \usepackage{mathtools} 78 | \usepackage{tikz} 79 | 80 | %---------- Set line spacing ---------- 81 | %\renewcommand{\baselinestretch}{1.15} 82 | 83 | %---------- Define new table commands ---------- 84 | \newcolumntype{P}[1]{>{\centering \arraybackslash}p{#1}} 85 | \newcolumntype{L}{X} 86 | \newcolumntype{C}{>{\centering \arraybackslash}X} 87 | \newcolumntype{R}{>{\raggedleft \arraybackslash}X} 88 | 89 | 90 | %---------- Set fonts ---------- 91 | %\setbeamerfont{normal text}{family=\rmfamily} 92 | %\AtBeginDocument{\usebeamerfont{normal text}} 93 | 94 | 95 | %---------- Theorem environment ---------- 96 | \setbeamertemplate{theorems}[numbered] 97 | \newtheorem{theorem}{Theorem} 98 | \numberwithin{theorem}{section} 99 | \newtheorem{definition}{Definition} 100 | \numberwithin{definition}{section} 101 | \newtheorem{lemma}{Lemma} 102 | \numberwithin{lemma}{section} 103 | \newtheorem{proposition}{Proposition} 104 | \numberwithin{proposition}{section} 105 | \newtheorem{corollary}{Corollary} 106 | \numberwithin{corollary}{section} 107 | \theoremstyle{example} 108 | \newtheorem{example}{Example} 109 | %\numberwithin{example}{section} 110 | \renewenvironment{proof}[1][Proof]{\textit{#1}:~}{\qed\par} 111 | 112 | \setbeamertemplate{caption}[numbered] 113 | \numberwithin{figure}{section} 114 | \numberwithin{table}{section} 115 | \numberwithin{equation}{section} 116 | 117 | 118 | %---------- Adjust the spacing of formulas ---------- 119 | %\AtBeginDocument{ 120 | % \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt} 121 | % \setlength{\belowdisplayskip}{4pt plus 1pt minus 1pt} 122 | % \setlength{\abovedisplayshortskip}{2pt} 123 | % \setlength{\belowdisplayshortskip}{2pt} 124 | % \setlength{\arraycolsep}{2pt} 125 | %} 126 | 127 | \makeatletter 128 | \newcommand\HUGE{\@setfontsize\Huge{36}{42}} 129 | \makeatother 130 | 131 | %---------- Define new commands ---------- 132 | \newcommand{\red}[1]{\textcolor{red}{#1}} 133 | \newcommand{\blue}[1]{\textcolor{blue}{#1}} 134 | 135 | 136 | %---------- Show the outline ---------- 137 | \AtBeginSection[]{ 138 | \begin{frame} 139 | \frametitle{Outline} 140 | \tableofcontents[currentsection,hideallsubsections] 141 | %\tableofcontents[currentsection,currentsubsection,subsectionstyle=show/show/shaded] 142 | \addtocounter{framenumber}{-1} 143 | \end{frame} 144 | } 145 | 146 | 147 | %-------------------------------------------------------------------------------- 148 | % TITLE PAGE 149 | %-------------------------------------------------------------------------------- 150 | 151 | \title[Short title]{Full Title of the Talk} 152 | % The short title appears at the bottom of every slide, the full title is only on the title page 153 | 154 | \author{John Smith} % Your name 155 | \institute[NU] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space 156 | { 157 | Name of University \\ % Your institution for the title page 158 | \medskip 159 | \textit{name@email.com} % Your email address 160 | } 161 | \date[2020.6.23]{Jun 23, 2020} % Date, can be changed to a custom date 162 | 163 | 164 | \graphicspath{{./figures/}} 165 | 166 | 167 | \begin{document} 168 | 169 | % only change the spacing of body text 170 | \setlength{\baselineskip}{15pt} 171 | 172 | 173 | \begin{frame} 174 | \titlepage 175 | \end{frame} 176 | 177 | \begin{frame} 178 | \frametitle{Outline} 179 | \tableofcontents[hideallsubsections] 180 | \end{frame} 181 | 182 | %-------------------------------------------------------------------------------- 183 | % PRESENTATION SLIDES 184 | %-------------------------------------------------------------------------------- 185 | 186 | %------------------------------------------------ 187 | \section{First Section} % Sections can be created in order to organize your presentation into discrete blocks, all sections and subsections are automatically printed in the table of contents as an overview of the talk 188 | %------------------------------------------------ 189 | 190 | \subsection{Subsection Example} % A subsection can be created just before a set of slides with a common theme to further break down your presentation into chunks 191 | 192 | \begin{frame} 193 | \frametitle{Paragraphs of Text} 194 | This is paragraphs of text. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. \\~\\ 195 | 196 | The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 197 | \end{frame} 198 | 199 | %------------------------------------------------ 200 | 201 | \begin{frame} 202 | \frametitle{Lists} 203 | 204 | \begin{enumerate} 205 | \item This is a enumerate environment. 206 | \item This is a enumerate environment. 207 | \item This is a enumerate environment. 208 | \end{enumerate} 209 | 210 | \vspace{2ex} 211 | \begin{itemize}[<+-| alert@+>] 212 | \item This is a itemize environment. 213 | \item This is a itemize environment. 214 | \item This is a itemize environment. 215 | \end{itemize} 216 | \end{frame} 217 | 218 | %------------------------------------------------ 219 | 220 | \begin{frame} 221 | \frametitle{Blocks of Highlighted Text} 222 | \begin{block}{Block Title} 223 | This is the block environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 224 | \end{block} 225 | 226 | \begin{exampleblock}{Block Title} 227 | This is the exampleblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 228 | \end{exampleblock} 229 | 230 | \begin{alertblock}{Block Title} 231 | This is the alertblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 232 | \end{alertblock} 233 | \end{frame} 234 | 235 | %------------------------------------------------ 236 | 237 | \begin{frame} 238 | \frametitle{Multiple Columns} 239 | \begin{columns}[c] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment 240 | 241 | \column{0.5\textwidth} 242 | This is a text in first column. 243 | $$E=mc^2$$ 244 | \begin{itemize} 245 | \item First item 246 | \item Second item 247 | \end{itemize} 248 | 249 | \column{0.5\textwidth} 250 | This text will be in the second column 251 | and on a second tought this is a nice looking 252 | layout in some cases. 253 | 254 | \end{columns} 255 | \end{frame} 256 | 257 | %------------------------------------------------ 258 | \section{Second Section} 259 | %------------------------------------------------ 260 | 261 | \begin{frame} 262 | \frametitle{Theorem} 263 | 264 | \begin{definition} 265 | This is a definition environment. 266 | \end{definition} 267 | 268 | 269 | \begin{lemma} 270 | This is a lemma environment. 271 | \end{lemma} 272 | 273 | \begin{proposition} 274 | This is a proposition environment. 275 | \end{proposition} 276 | 277 | \begin{theorem}[Mass--energy] 278 | This is a theorem environment. 279 | \end{theorem} 280 | 281 | \begin{proof} 282 | This is a proof environment. 283 | \end{proof} 284 | \end{frame} 285 | 286 | %------------------------------------------------ 287 | 288 | \begin{frame} 289 | \frametitle{Formula and Table} 290 | 291 | This is Pythagorean's theorem 292 | \begin{equation}\label{Pythagorean} 293 | a^2+b^2=c^2. 294 | \end{equation} 295 | 296 | This is a simple three-line table. 297 | \begin{table} 298 | \caption{Table caption} 299 | \begin{tabular}{l l l} 300 | \toprule 301 | Treatments & Response 1 & Response 2 \\ 302 | \midrule 303 | Treatment 1 & 0.0003262 & 0.562 \\ 304 | Treatment 2 & 0.0015681 & 0.910 \\ 305 | Treatment 3 & 0.0009271 & 0.296 \\ 306 | \bottomrule 307 | \end{tabular} 308 | \end{table} 309 | 310 | \end{frame} 311 | 312 | %------------------------------------------------ 313 | 314 | \begin{frame} 315 | \frametitle{} 316 | The new command PLCR is defined to set the length of the width of the table. They can be used in the tabularx environment. 317 | 318 | \begin{table}[!htp] 319 | \centering 320 | \renewcommand\arraystretch{1.05} 321 | \caption{A sample of the height and weight of students.} 322 | \label{tab2:heightweight} 323 | % PLCR is defined in the preamble 324 | \begin{tabularx}{0.8\textwidth}{lCCC} 325 | \toprule %\Xhline{2\arrayrulewidth} 326 | Number & Age & Height & Weight\\ 327 | \midrule 328 | 1&14&156&42\\ 329 | 2&16&158&45\\ 330 | 3&14&162&48\\ 331 | 4&15&163&50\\ 332 | \cmidrule{2-4} 333 | Mean &15&159.75&46.25\\ 334 | \bottomrule 335 | \end{tabularx} 336 | \end{table} 337 | \end{frame} 338 | 339 | %------------------------------------------------ 340 | 341 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 342 | \frametitle{Verbatim} 343 | \begin{example}[Theorem Slide Code] 344 | \begin{verbatim} 345 | \begin{frame} 346 | \frametitle{Theorem} 347 | \begin{theorem}[Mass--energy equivalence] 348 | $E = mc^2$ 349 | \end{theorem} 350 | \end{frame}\end{verbatim} 351 | \end{example} 352 | 353 | \begin{theorem}[Mass--energy equivalence] 354 | $E = mc^2$ 355 | \end{theorem} 356 | \end{frame} 357 | 358 | %------------------------------------------------ 359 | 360 | \begin{frame} 361 | \frametitle{Figure} 362 | 363 | Uncomment the code on this slide to include your own image from the same directory as the template .TeX file. 364 | \begin{figure}[htp!] 365 | \centering 366 | \includegraphics[width=0.6\linewidth]{image1.eps} 367 | \end{figure} 368 | \end{frame} 369 | 370 | %------------------------------------------------ 371 | 372 | \begin{frame} 373 | \frametitle{Two pictures} 374 | \begin{figure}[htb] 375 | \centering 376 | \begin{minipage}{0.48\linewidth} 377 | \centering 378 | \includegraphics[width=\linewidth]{image1} 379 | \caption{Caption of Figure 1.} 380 | \end{minipage}\hfill 381 | \begin{minipage}{0.48\linewidth} 382 | \centering 383 | \includegraphics[width=\linewidth]{image2} 384 | \caption{Caption of Figure 2.} 385 | \end{minipage} 386 | \end{figure} 387 | \end{frame} 388 | 389 | %------------------------------------------------ 390 | \section{Third Section} 391 | %------------------------------------------------ 392 | 393 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 394 | \frametitle{Citation} 395 | An example of the \verb|\cite| command to cite within the presentation:\\~ 396 | 397 | This statement requires citation \cite{Smith2012}. 398 | \end{frame} 399 | 400 | %------------------------------------------------ 401 | 402 | \begin{frame} 403 | \frametitle{References} 404 | \footnotesize{ 405 | \begin{thebibliography}{99} % Beamer does not support BibTeX so references must be inserted manually as below 406 | \bibitem[Smith, 2012]{Smith2012} John Smith. Title of the publication. \emph{Journal Name}, 12(3):45--678, 2012. 407 | \end{thebibliography} 408 | } 409 | \end{frame} 410 | 411 | 412 | %------------------------------------------------ 413 | %\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 414 | %\setbeamertemplate{headline}{} 415 | \begin{frame} 416 | %\sffamily 417 | \begin{center} 418 | \HUGE{\textcolor[RGB]{165,3,3}{Thank you!}} 419 | \end{center} 420 | \end{frame} 421 | 422 | %------------------------------------------------ 423 | 424 | %\thispagestyle{empty} 425 | %%\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 426 | %\begin{frame} 427 | %\Huge{\centerline{The End}} 428 | %\end{frame} 429 | 430 | 431 | \end{document} 432 | -------------------------------------------------------------------------------- /Madrid-demo-cn.tex: -------------------------------------------------------------------------------- 1 | %======================================================% 2 | % Beamer Presentation 3 | % LaTeX Template 4 | % compile using PDFTeXify or PDFLaTeX 5 | %======================================================% 6 | 7 | %-------------------------------------------------------------------------------- 8 | % PACKAGES AND THEMES 9 | %-------------------------------------------------------------------------------- 10 | 11 | %\documentclass[notheorems,11pt,compress]{beamer} 12 | \documentclass[notheorems]{beamer} 13 | 14 | \mode{ 15 | 16 | %------- Beamer theme ------ 17 | \usetheme{Madrid} 18 | %\usetheme{Warsaw} 19 | %\usetheme{Boadilla} 20 | %\usetheme{Frankfurt} 21 | %\usetheme{CambridgeUS} 22 | %\usetheme{Montpellier} 23 | 24 | %------- Color theme ------ 25 | %\usecolortheme{rose} 26 | %\usecolortheme{orchid} 27 | %\usecolortheme{lily} 28 | %\usecolortheme{whale} 29 | %\usecolortheme{dolphin} 30 | %\usecolortheme{seahorse} 31 | 32 | %\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10] 33 | \usefonttheme[onlymath]{serif} 34 | %\usefonttheme{serif} 35 | %\setbeamercovered{transparent} 36 | %\usetheme{boxes} 37 | 38 | %\setbeamertemplate{headline}{} 39 | %\setbeamertemplate{footline}{} 40 | \setbeamertemplate{blocks}[rounded][shadow=true] 41 | \setbeamertemplate{navigation symbols}{} 42 | %\setbeamertemplate{itemize items}[square] % ball, circle 43 | %\setbeamertemplate{enumerate items}[square] 44 | %\setbeamertemplate{section in toc}[square] 45 | 46 | } 47 | 48 | %----------- 宏包 ------------- 49 | %\usepackage[latin1]{inputenc} 50 | %\usepackage{times} 51 | %\usepackage[T1]{fontenc} 52 | 53 | \usepackage[UTF8,noindent]{ctex} 54 | %\usepackage[english]{babel} 55 | \usepackage{amsmath,amssymb,version} 56 | \usepackage{graphicx,fancybox,mathrsfs,multirow} 57 | \usepackage{booktabs} 58 | \usepackage{epsfig,epstopdf} 59 | \usepackage{url,hyperref} 60 | \usepackage{tabularx,array,makecell} 61 | \usepackage{color,xcolor} 62 | \usepackage{cases} 63 | \usepackage{mathtools} 64 | \usepackage{tikz} 65 | 66 | 67 | %---------- 定义表格命令 ---------- 68 | \newcolumntype{P}[1]{>{\centering \arraybackslash}p{#1}} 69 | \newcolumntype{L}{X} 70 | \newcolumntype{C}{>{\centering \arraybackslash}X} 71 | \newcolumntype{R}{>{\raggedleft \arraybackslash}X} 72 | 73 | 74 | %---------- 设置 定理环境 -------------- 75 | \theoremstyle{plain} 76 | \setbeamertemplate{theorems}[numbered] 77 | %\theoremstyle{definition} 78 | %\newtheorem{theorem}{Theorem} 79 | \newtheorem{theorem}{\sffamily 定理} 80 | \numberwithin{theorem}{section} 81 | %\newtheorem{definition}{Definition} 82 | \newtheorem{definition}{\sffamily 定义} 83 | \numberwithin{definition}{section} 84 | %\newtheorem{lemma}{Lemma} 85 | \newtheorem{lemma}{\sffamily 引理} 86 | \numberwithin{lemma}{section} 87 | %\newtheorem{proposition}{Proposition} 88 | \newtheorem{proposition}{\sffamily 命题} 89 | \numberwithin{proposition}{section} 90 | %\newtheorem{corollary}{Corollary} 91 | \newtheorem{corollary}{{\sffamily 推论}} 92 | \numberwithin{corollary}{section} 93 | \theoremstyle{example} 94 | %\newtheorem{example}{Example} 95 | \newtheorem{example}{\sffamily 例} 96 | %\numberwithin{example}{section} 97 | \renewenvironment{proof}[1][证明]{\textbf{#1}:~}{\qed\par} 98 | %\renewenvironment{proof}[1][证明]{{\heiti #1}:~}{\qed\par} 99 | 100 | \setbeamertemplate{caption}[numbered] 101 | \numberwithin{figure}{section} 102 | \numberwithin{table}{section} 103 | \numberwithin{equation}{section} 104 | 105 | 106 | %---------- 设置字体 --------------- 107 | \setbeamerfont{normal text}{family=\rmfamily} 108 | %\setbeamerfont{frametitle}{family=\sffamily} 109 | %\setbeamerfont{title}{family=\sffamily} 110 | %%\setbeamerfont{subtitle}{family=\sffamily} 111 | %\setbeamerfont{institute}{family=\rmfamily} 112 | %\setbeamerfont{author}{family=\rmfamily} 113 | %\setbeamerfont{date}{family=\rmfamily} 114 | %\setbeamerfont{headline}{family=\sffamily} 115 | %\setbeamerfont{footline}{family=\rmfamily} 116 | %\setbeamerfont{section in toc}{family=\rmfamily} 117 | %\setbeamerfont{subsection in toc}{family=\rmfamily} 118 | \AtBeginDocument{\usebeamerfont{normal text}} 119 | 120 | 121 | %---------- 定义行距 ---------- 122 | %\renewcommand{\baselinestretch}{1.0} 123 | 124 | %---------- 调节公式的间距 ---------- 125 | %\AtBeginDocument{ 126 | % \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt} 127 | % \setlength{\belowdisplayskip}{4pt plus 1pt minus 1pt} 128 | % \setlength{\abovedisplayshortskip}{2pt} 129 | % \setlength{\belowdisplayshortskip}{2pt} 130 | % \setlength{\arraycolsep}{2pt} 131 | %} 132 | 133 | \makeatletter 134 | \newcommand\HUGE{\@setfontsize\Huge{28}{32}} 135 | \makeatother 136 | 137 | %---------- 自定义命令 ---------- 138 | \newcommand{\red}[1]{\textcolor{red}{#1}} 139 | \newcommand{\blue}[1]{\textcolor{blue}{#1}} 140 | 141 | 142 | \AtBeginSection[]{ 143 | \begin{frame} 144 | \frametitle{目录} 145 | \tableofcontents[currentsection,currentsubsection] 146 | %\tableofcontents[currentsection,currentsubsection,subsectionstyle=show/show/shaded] 147 | \addtocounter{framenumber}{-1} 148 | \end{frame} 149 | } 150 | 151 | %---------------------------------------------------------------------------------------- 152 | % TITLE PAGE 153 | %---------------------------------------------------------------------------------------- 154 | 155 | \title[Short 题目]{Full Title of the Talk 题目} % The short title appears at the bottom of every slide, the full title is only on the title page 156 | 157 | \author{姓名} % 名字 158 | \institute[NU] % 机构缩写 159 | { 160 | Name of University \\ % 机构全称 161 | \medskip 162 | \textit{name@email.com} % 邮件 163 | } 164 | \date[2020.6.23]{2020~年~6~月~23~日} % 日期 165 | 166 | 167 | \graphicspath{{./figures/}} 168 | 169 | \begin{document} 170 | 171 | % only change the spacing of body text 172 | \setlength{\baselineskip}{15pt} 173 | 174 | \begin{frame} 175 | \titlepage 176 | \end{frame} 177 | 178 | \begin{frame} 179 | \frametitle{目录} 180 | \tableofcontents%[hideallsubsections] 181 | \end{frame} 182 | 183 | %---------------------------------------------------------------------------------------- 184 | % PRESENTATION SLIDES 185 | %---------------------------------------------------------------------------------------- 186 | 187 | %------------------------------------------------ 188 | \section{文本与 Block} 189 | %------------------------------------------------ 190 | 191 | \begin{frame}{文本测试} 192 | 这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。 193 | 这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。 194 | 195 | \vspace{1ex} 196 | 这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。 197 | 这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。 198 | 199 | \end{frame} 200 | 201 | %----------------------------------------------- 202 | 203 | \begin{frame} 204 | \frametitle{Blocks of Highlighted Text} 205 | \begin{block}{Block Title} 206 | This is the block environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 207 | \end{block} 208 | 209 | \begin{exampleblock}{Block Title} 210 | This is the exampleblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 211 | \end{exampleblock} 212 | 213 | \begin{alertblock}{Block Title} 214 | This is the alertblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 215 | \end{alertblock} 216 | \end{frame} 217 | 218 | %------------------------------------------------ 219 | \section{列表环境与分栏} 220 | 221 | \begin{frame} 222 | \frametitle{列表环境} 223 | 224 | 计数列表环境 225 | \begin{enumerate} 226 | \item 这是一个计数列表环境. 227 | \item 这是一个计数列表环境. 228 | \item 这是一个计数列表环境. 229 | \end{enumerate} 230 | 231 | \vspace{2ex} 232 | 不计数列表环境 233 | \begin{itemize}[<+-| alert@+>] 234 | \item 这是一个不计数列表环境. 235 | \item 这是一个不计数列表环境. 236 | \item 这是一个不计数列表环境. 237 | \end{itemize} 238 | 239 | \end{frame} 240 | 241 | %------------------------------------------------ 242 | 243 | \begin{frame} 244 | \frametitle{左右分栏} % Multiple Columns 245 | \begin{columns}[t] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment 246 | 247 | \column{.45\textwidth} % Left column and width 248 | \textbf{Heading} 249 | \begin{enumerate} 250 | \item Statement 251 | \item Explanation 252 | \item Example 253 | \end{enumerate} 254 | 255 | \column{.5\textwidth} % Right column and width 256 | The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 257 | \end{columns} 258 | \end{frame} 259 | 260 | %------------------------------------------------ 261 | \section{定理与表格} 262 | %------------------------------------------------ 263 | 264 | \begin{frame} 265 | \frametitle{定理环境} 266 | \begin{definition} \upshape\rmfamily 267 | This is a definition environment. 这是一个定义环境. 268 | \end{definition} 269 | 270 | 271 | \begin{lemma} \upshape\rmfamily 272 | This is a lemma environment. 这是一个引理环境. 273 | \end{lemma} 274 | 275 | \begin{proposition} \upshape\rmfamily 276 | This is a proposition environment. 这是一个命题环境. 277 | \end{proposition} 278 | 279 | \begin{theorem}[Mass--energy] \upshape\rmfamily 280 | This is a theorem environment. 这是一个定理环境. 281 | \end{theorem} 282 | 283 | \begin{proof} 284 | This is a proof environment. 这是一个证明环境. 285 | \end{proof} 286 | 287 | \end{frame} 288 | 289 | %------------------------------------------------ 290 | 291 | 292 | \begin{frame} 293 | \frametitle{定理示例} 294 | 295 | \begin{theorem}[Lax-Milgram Lemma] \upshape 296 | Let $X$ be a Hilbert space, let $a(\cdot, \cdot)$ : $X \times X \rightarrow \mathbb{R}$ be a continuous and coercive bilinear form, and let $F : X \rightarrow \mathbb{R}$ be a linear functional in $X^{\prime}$. Then the variational problem: 297 | \begin{equation} 298 | \alert{ 299 | \left\{\begin{aligned} 300 | &\text {Find } u \in X \text { such that } \\ 301 | &a(u, v)=F(v), \forall v \in X 302 | \end{aligned} \right. } 303 | \end{equation} 304 | has a unique solution. Moreover, we have 305 | \begin{equation} 306 | \alert{ \|u\| \leq \frac{1}{\alpha}\|F\|_{X^{\prime}} } 307 | \end{equation} 308 | \end{theorem} 309 | 310 | \end{frame} 311 | 312 | %------------------------------------------------ 313 | 314 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 315 | \frametitle{Verbatim} 316 | \begin{example}[Theorem Slide Code] 317 | \begin{verbatim} 318 | \begin{frame} 319 | \frametitle{Theorem} 320 | \begin{theorem}[Mass--energy equivalence] 321 | $E = mc^2$ 322 | \end{theorem} 323 | \end{frame}\end{verbatim} 324 | \end{example} 325 | 326 | \begin{table} 327 | \caption{这是一个三线表.} 328 | \begin{tabular}{l l l} 329 | \toprule 330 | \textbf{Treatments} & \textbf{Response 1} & \textbf{Response 2}\\ 331 | \midrule 332 | Treatment 1 & 0.0003262 & 0.562 \\ 333 | Treatment 2 & 0.0015681 & 0.910 \\ 334 | \bottomrule 335 | \end{tabular} 336 | \end{table} 337 | 338 | \end{frame} 339 | 340 | 341 | %------------------------------------------------ 342 | 343 | \begin{frame} 344 | \frametitle{表格环境} 345 | 本文定义了新的可变长度左中右 (LCR) 格式, LCR 三个格式会根据表格宽度的设定自行控制宽度, 且其宽度相等, 方便设置和页面相同宽度的表格. 本文还定义了 P\{\} 格式可以设定某一列宽度 (如 P\{1cm\} 控制某一列的宽度为 1cm) 并居中. 346 | \begin{table}[!htp] 347 | \centering 348 | % PLCR已经定义 349 | \caption{某校学生身高体重样本.} 350 | \label{tab2:heightweight} 351 | \begin{tabularx}{0.9\textwidth}{lCCC} 352 | \toprule 353 | 序号&年龄&身高&体重\\ 354 | \midrule 355 | 1&14&156&42\\ 356 | 2&16&158&45\\ 357 | 3&14&162&48\\ 358 | 4&15&163&50\\ 359 | \cmidrule{2-4} 360 | 平均&15&159.75&46.25\\ 361 | \bottomrule 362 | \end{tabularx} 363 | \end{table} 364 | 365 | \end{frame} 366 | 367 | 368 | %------------------------------------------------ 369 | 370 | \begin{frame} 371 | \frametitle{表格示例} 372 | \begin{table}[htp!] 373 | \centering 374 | \renewcommand\arraystretch{1.0} %定义表格高度 375 | % PLCR前面已经定义 376 | \caption{表格的描述.} 377 | \label{tab3:NumError} 378 | \begin{tabularx}{0.9\textwidth}{|P{1cm}|C|C|C|C|} 379 | \Xhline{2\arrayrulewidth} 380 | N & A & B & C & D \\ 381 | \Xhline{2\arrayrulewidth} 382 | 1 & 9.20E-05 & 9.90E-05 & 1.00E-06 & 8.00E-06 \\ 383 | 2 & 9.80E-05 & 8.00E-05 & 7.00E-06 & 1.40E-05 \\ 384 | 3 & 4.00E-06 & 8.10E-05 & 8.80E-05 & 2.00E-05 \\ 385 | 4 & 8.50E-05 & 8.70E-05 & 1.90E-05 & 2.10E-05 \\ 386 | 5 & 8.60E-05 & 9.30E-05 & 2.50E-05 & 2.00E-06 \\ 387 | 6 & 1.70E-05 & 2.40E-05 & 7.60E-05 & 8.30E-05 \\ 388 | 7 & 2.30E-05 & 5.00E-06 & 8.20E-05 & 8.90E-05 \\ 389 | 8 & 7.90E-05 & 6.00E-06 & 1.30E-05 & 9.50E-05 \\ 390 | 9 & 1.00E-05 & 1.20E-05 & 9.40E-05 & 9.60E-05 \\ 391 | \Xhline{2\arrayrulewidth} 392 | \end{tabularx} 393 | \end{table} 394 | 395 | \end{frame} 396 | 397 | %------------------------------------------------ 398 | 399 | \section{插图环境} 400 | 401 | \begin{frame} 402 | \frametitle{插图环境} 403 | 404 | Uncomment the code on this slide to include your own image from the same directory as the template .TeX file. 405 | \begin{figure}[htp!] 406 | \centering 407 | \includegraphics[width=0.5\linewidth]{image1} 408 | \caption{Caption of Figure 1.} \label{fig:A} 409 | \end{figure} 410 | \end{frame} 411 | 412 | %------------------------------------------------ 413 | 414 | \begin{frame} 415 | \frametitle{两图并排} 416 | \begin{figure}[htb] 417 | \centering 418 | \begin{minipage}{0.48\linewidth} 419 | \centering 420 | \includegraphics[width=\linewidth]{image1} 421 | \caption{Caption of Figure 1.} 422 | \end{minipage}\hfill 423 | \begin{minipage}{0.48\linewidth} 424 | \centering 425 | \includegraphics[width=\linewidth]{image2} 426 | \caption{Caption of Figure 2.} 427 | \end{minipage} 428 | \end{figure} 429 | \end{frame} 430 | 431 | %------------------------------------------------ 432 | \section{参考文献} 433 | %------------------------------------------------ 434 | 435 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 436 | \frametitle{Citation} 437 | An example of the \verb|\cite| command to cite within the presentation:\\~ 438 | 439 | This statement requires citation \cite{Smith2012}. \\~ 440 | 441 | 文献引用示例 \cite{LiLiu1997}, 可以修改引用文献样式. 442 | \end{frame} 443 | 444 | %------------------------------------------------ 445 | 446 | \begin{frame} 447 | \frametitle{References} 448 | \footnotesize{ 449 | \begin{thebibliography}{99} % Beamer does not support BibTeX so references must be inserted manually as below 450 | \bibitem[Smith, 2012]{Smith2012} John Smith, Title of the publication, \emph{Journal Name}, 12(3):45--678, 2012. 451 | \bibitem[李荣华, 1997]{LiLiu1997} 李荣华, 刘播. 微分方程数值解法. 东南大学出版社, 1997. 452 | \end{thebibliography} 453 | } 454 | \end{frame} 455 | 456 | 457 | %------------------------------------------------ 458 | %\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 459 | %\setbeamertemplate{headline}{} 460 | \begin{frame} 461 | %\sffamily 462 | \begin{center} 463 | \HUGE \textcolor[RGB]{165,3,3}{谢\quad 谢! \\[8pt] 464 | Thank you!} 465 | \end{center} 466 | \end{frame} 467 | 468 | %---------------------------------------------------------------------------------------- 469 | 470 | \end{document} 471 | 472 | 473 | -------------------------------------------------------------------------------- /Darmstadt-demo-cn.tex: -------------------------------------------------------------------------------- 1 | %======================================================% 2 | % Beamer Presentation 3 | % LaTeX Template 4 | % compile using PDFTeXify or PDFLaTeX 5 | %======================================================% 6 | 7 | %-------------------------------------------------------------------------------- 8 | % PACKAGES AND THEMES 9 | %-------------------------------------------------------------------------------- 10 | 11 | %\documentclass[notheorems,11pt,compress]{beamer} 12 | \documentclass[notheorems]{beamer} 13 | 14 | \mode{ 15 | 16 | %------- Beamer theme ------ 17 | \usetheme{Darmstadt} 18 | %\usetheme{Warsaw} 19 | %\usetheme{Boadilla} 20 | %\usetheme{Frankfurt} 21 | %\usetheme{CambridgeUS} 22 | %\usetheme{Montpellier} 23 | 24 | %------- Color theme ------ 25 | \usecolortheme{beaver} 26 | %\usecolortheme{rose} 27 | %\usecolortheme{orchid} 28 | %\usecolortheme{lily} 29 | %\usecolortheme{whale} 30 | %\usecolortheme{dolphin} 31 | %\usecolortheme{seahorse} 32 | 33 | %\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10] 34 | \usefonttheme[onlymath]{serif} 35 | %\usefonttheme{serif} 36 | %\setbeamercovered{transparent} 37 | %\usetheme{boxes} 38 | 39 | %\setbeamertemplate{headline}{} 40 | %\setbeamertemplate{footline}{} 41 | \setbeamertemplate{blocks}[rounded][shadow=true] 42 | \setbeamertemplate{navigation symbols}{} 43 | %\setbeamertemplate{itemize items}[square] % ball, circle 44 | %\setbeamertemplate{enumerate items}[square] 45 | %\setbeamertemplate{section in toc}[square] 46 | 47 | } 48 | 49 | %----------- 宏包 ------------- 50 | %\usepackage[latin1]{inputenc} 51 | %\usepackage{times} 52 | %\usepackage[T1]{fontenc} 53 | 54 | \usepackage[UTF8,noindent]{ctex} 55 | %\usepackage[english]{babel} 56 | \usepackage{amsmath,amssymb,version} 57 | \usepackage{graphicx,fancybox,mathrsfs,multirow} 58 | \usepackage{booktabs} 59 | \usepackage{epsfig,epstopdf} 60 | \usepackage{url,hyperref} 61 | \usepackage{tabularx,array,makecell} 62 | \usepackage{color,xcolor} 63 | \usepackage{cases} 64 | \usepackage{mathtools} 65 | \usepackage{tikz} 66 | 67 | 68 | %---------- 定义表格命令 ---------- 69 | \newcolumntype{P}[1]{>{\centering \arraybackslash}p{#1}} 70 | \newcolumntype{L}{X} 71 | \newcolumntype{C}{>{\centering \arraybackslash}X} 72 | \newcolumntype{R}{>{\raggedleft \arraybackslash}X} 73 | 74 | 75 | %---------- 设置 定理环境 -------------- 76 | \theoremstyle{plain} 77 | \setbeamertemplate{theorems}[numbered] 78 | %\theoremstyle{definition} 79 | %\newtheorem{theorem}{Theorem} 80 | \newtheorem{theorem}{\sffamily 定理} 81 | \numberwithin{theorem}{section} 82 | %\newtheorem{definition}{Definition} 83 | \newtheorem{definition}{\sffamily 定义} 84 | \numberwithin{definition}{section} 85 | %\newtheorem{lemma}{Lemma} 86 | \newtheorem{lemma}{\sffamily 引理} 87 | \numberwithin{lemma}{section} 88 | %\newtheorem{proposition}{Proposition} 89 | \newtheorem{proposition}{\sffamily 命题} 90 | \numberwithin{proposition}{section} 91 | %\newtheorem{corollary}{Corollary} 92 | \newtheorem{corollary}{{\sffamily 推论}} 93 | \numberwithin{corollary}{section} 94 | \theoremstyle{example} 95 | %\newtheorem{example}{Example} 96 | \newtheorem{example}{\sffamily 例} 97 | %\numberwithin{example}{section} 98 | \renewenvironment{proof}[1][证明]{\textbf{#1}:~}{\qed\par} 99 | %\renewenvironment{proof}[1][证明]{{\heiti #1}:~}{\qed\par} 100 | 101 | \setbeamertemplate{caption}[numbered] 102 | \numberwithin{figure}{section} 103 | \numberwithin{table}{section} 104 | \numberwithin{equation}{section} 105 | 106 | 107 | %---------- 设置字体 --------------- 108 | \setbeamerfont{normal text}{family=\rmfamily} 109 | %\setbeamerfont{frametitle}{family=\sffamily} 110 | %\setbeamerfont{title}{family=\sffamily} 111 | %%\setbeamerfont{subtitle}{family=\sffamily} 112 | %\setbeamerfont{institute}{family=\rmfamily} 113 | %\setbeamerfont{author}{family=\rmfamily} 114 | %\setbeamerfont{date}{family=\rmfamily} 115 | %\setbeamerfont{headline}{family=\sffamily} 116 | %\setbeamerfont{footline}{family=\rmfamily} 117 | %\setbeamerfont{section in toc}{family=\rmfamily} 118 | %\setbeamerfont{subsection in toc}{family=\rmfamily} 119 | \AtBeginDocument{\usebeamerfont{normal text}} 120 | 121 | 122 | 123 | %---------- 定义行距 ---------- 124 | %\renewcommand{\baselinestretch}{1.0} 125 | 126 | %---------- 调节公式的间距 ---------- 127 | %\AtBeginDocument{ 128 | % \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt} 129 | % \setlength{\belowdisplayskip}{4pt plus 1pt minus 1pt} 130 | % \setlength{\abovedisplayshortskip}{2pt} 131 | % \setlength{\belowdisplayshortskip}{2pt} 132 | % \setlength{\arraycolsep}{2pt} 133 | %} 134 | 135 | \makeatletter 136 | \newcommand\HUGE{\@setfontsize\Huge{28}{32}} 137 | \makeatother 138 | 139 | %---------- 自定义命令 ---------- 140 | \newcommand{\red}[1]{\textcolor{red}{#1}} 141 | \newcommand{\blue}[1]{\textcolor{blue}{#1}} 142 | 143 | 144 | \AtBeginSection[]{ 145 | \begin{frame} 146 | \frametitle{目录} 147 | \tableofcontents[currentsection,currentsubsection] 148 | %\tableofcontents[currentsection,currentsubsection,subsectionstyle=show/show/shaded] 149 | \addtocounter{framenumber}{-1} 150 | \end{frame} 151 | } 152 | 153 | %---------------------------------------------------------------------------------------- 154 | % TITLE PAGE 155 | %---------------------------------------------------------------------------------------- 156 | 157 | \title[Short 题目]{Full Title of the Talk 题目} % The short title appears at the bottom of every slide, the full title is only on the title page 158 | 159 | \author{姓名} % 名字 160 | \institute[NU] % 机构缩写 161 | { 162 | Name of University \\ % 机构全称 163 | \medskip 164 | \textit{name@email.com} % 邮件 165 | } 166 | \date[2020.6.23]{2020~年~6~月~23~日} % 日期 167 | 168 | 169 | \graphicspath{{./figures/}} 170 | 171 | \begin{document} 172 | 173 | % only change the spacing of body text 174 | \setlength{\baselineskip}{15pt} 175 | 176 | \begin{frame} 177 | \titlepage 178 | \end{frame} 179 | 180 | \begin{frame} 181 | \frametitle{目录} 182 | \tableofcontents%[hideallsubsections] 183 | \end{frame} 184 | 185 | %---------------------------------------------------------------------------------------- 186 | % PRESENTATION SLIDES 187 | %---------------------------------------------------------------------------------------- 188 | 189 | %------------------------------------------------ 190 | \section{文本与 Block} 191 | %------------------------------------------------ 192 | \subsection{文本测试} 193 | 194 | \begin{frame}{文本测试} 195 | 这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。 196 | 这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。 197 | 198 | \vspace{1ex} 199 | 这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。 200 | 这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。 201 | 202 | \end{frame} 203 | 204 | %----------------------------------------------- 205 | 206 | \begin{frame} 207 | \frametitle{Blocks of Highlighted Text} 208 | \begin{block}{Block Title} 209 | This is the block environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 210 | \end{block} 211 | 212 | \begin{exampleblock}{Block Title} 213 | This is the exampleblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 214 | \end{exampleblock} 215 | 216 | \begin{alertblock}{Block Title} 217 | This is the alertblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 218 | \end{alertblock} 219 | \end{frame} 220 | 221 | %------------------------------------------------ 222 | \section{列表环境与分栏} 223 | \subsection{列表环境} 224 | 225 | \begin{frame} 226 | \frametitle{列表环境} 227 | 228 | 计数列表环境 229 | \begin{enumerate} 230 | \item 这是一个计数列表环境. 231 | \item 这是一个计数列表环境. 232 | \item 这是一个计数列表环境. 233 | \end{enumerate} 234 | 235 | \vspace{2ex} 236 | 不计数列表环境 237 | \begin{itemize}[<+-| alert@+>] 238 | \item 这是一个不计数列表环境. 239 | \item 这是一个不计数列表环境. 240 | \item 这是一个不计数列表环境. 241 | \end{itemize} 242 | 243 | \end{frame} 244 | 245 | %------------------------------------------------ 246 | \subsection{分栏} 247 | 248 | \begin{frame} 249 | \frametitle{左右分栏} % Multiple Columns 250 | \begin{columns}[t] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment 251 | 252 | \column{.45\textwidth} % Left column and width 253 | \textbf{Heading} 254 | \begin{enumerate} 255 | \item Statement 256 | \item Explanation 257 | \item Example 258 | \end{enumerate} 259 | 260 | \column{.5\textwidth} % Right column and width 261 | The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 262 | \end{columns} 263 | \end{frame} 264 | 265 | %------------------------------------------------ 266 | \section{定理与表格} 267 | %------------------------------------------------ 268 | 269 | \begin{frame} 270 | \frametitle{定理环境} 271 | \begin{definition} \upshape\rmfamily 272 | This is a definition environment. 这是一个定义环境. 273 | \end{definition} 274 | 275 | 276 | \begin{lemma} \upshape\rmfamily 277 | This is a lemma environment. 这是一个引理环境. 278 | \end{lemma} 279 | 280 | \begin{proposition} \upshape\rmfamily 281 | This is a proposition environment. 这是一个命题环境. 282 | \end{proposition} 283 | 284 | \begin{theorem}[Mass--energy] \upshape\rmfamily 285 | This is a theorem environment. 这是一个定理环境. 286 | \end{theorem} 287 | 288 | \begin{proof} 289 | This is a proof environment. 这是一个证明环境. 290 | \end{proof} 291 | 292 | \end{frame} 293 | 294 | %------------------------------------------------ 295 | 296 | 297 | \begin{frame} 298 | \frametitle{定理示例} 299 | 300 | \begin{theorem}[Lax-Milgram Lemma] \upshape 301 | Let $X$ be a Hilbert space, let $a(\cdot, \cdot)$ : $X \times X \rightarrow \mathbb{R}$ be a continuous and coercive bilinear form, and let $F : X \rightarrow \mathbb{R}$ be a linear functional in $X^{\prime}$. Then the variational problem: 302 | \begin{equation} 303 | \alert{ 304 | \left\{\begin{aligned} 305 | &\text {Find } u \in X \text { such that } \\ 306 | &a(u, v)=F(v), \forall v \in X 307 | \end{aligned} \right. } 308 | \end{equation} 309 | has a unique solution. Moreover, we have 310 | \begin{equation} 311 | \alert{ \|u\| \leq \frac{1}{\alpha}\|F\|_{X^{\prime}} } 312 | \end{equation} 313 | \end{theorem} 314 | 315 | \end{frame} 316 | 317 | %------------------------------------------------ 318 | 319 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 320 | \frametitle{Verbatim} 321 | \begin{example}[Theorem Slide Code] 322 | \begin{verbatim} 323 | \begin{frame} 324 | \frametitle{Theorem} 325 | \begin{theorem}[Mass--energy equivalence] 326 | $E = mc^2$ 327 | \end{theorem} 328 | \end{frame}\end{verbatim} 329 | \end{example} 330 | 331 | \begin{table} 332 | \caption{这是一个三线表.} 333 | \begin{tabular}{l l l} 334 | \toprule 335 | \textbf{Treatments} & \textbf{Response 1} & \textbf{Response 2}\\ 336 | \midrule 337 | Treatment 1 & 0.0003262 & 0.562 \\ 338 | Treatment 2 & 0.0015681 & 0.910 \\ 339 | \bottomrule 340 | \end{tabular} 341 | \end{table} 342 | 343 | \end{frame} 344 | 345 | 346 | %------------------------------------------------ 347 | 348 | \begin{frame} 349 | \frametitle{表格环境} 350 | 本文定义了新的可变长度左中右 (LCR) 格式, LCR 三个格式会根据表格宽度的设定自行控制宽度, 且其宽度相等, 方便设置和页面相同宽度的表格. 本文还定义了 P\{\} 格式可以设定某一列宽度 (如 P\{1cm\} 控制某一列的宽度为 1cm) 并居中. 351 | \begin{table}[!htp] 352 | \centering 353 | % PLCR已经定义 354 | \caption{某校学生身高体重样本.} 355 | \label{tab2:heightweight} 356 | \begin{tabularx}{0.9\textwidth}{lCCC} 357 | \toprule 358 | 序号&年龄&身高&体重\\ 359 | \midrule 360 | 1&14&156&42\\ 361 | 2&16&158&45\\ 362 | 3&14&162&48\\ 363 | 4&15&163&50\\ 364 | \cmidrule{2-4} 365 | 平均&15&159.75&46.25\\ 366 | \bottomrule 367 | \end{tabularx} 368 | \end{table} 369 | 370 | \end{frame} 371 | 372 | 373 | %------------------------------------------------ 374 | 375 | \begin{frame} 376 | \frametitle{表格示例} 377 | \begin{table}[htp!] 378 | \centering 379 | \renewcommand\arraystretch{1.0} %定义表格高度 380 | % PLCR前面已经定义 381 | \caption{表格的描述.} 382 | \label{tab3:NumError} 383 | \begin{tabularx}{0.9\textwidth}{|P{1cm}|C|C|C|C|} 384 | \Xhline{2\arrayrulewidth} 385 | N & A & B & C & D \\ 386 | \Xhline{2\arrayrulewidth} 387 | 1 & 9.20E-05 & 9.90E-05 & 1.00E-06 & 8.00E-06 \\ 388 | 2 & 9.80E-05 & 8.00E-05 & 7.00E-06 & 1.40E-05 \\ 389 | 3 & 4.00E-06 & 8.10E-05 & 8.80E-05 & 2.00E-05 \\ 390 | 4 & 8.50E-05 & 8.70E-05 & 1.90E-05 & 2.10E-05 \\ 391 | 5 & 8.60E-05 & 9.30E-05 & 2.50E-05 & 2.00E-06 \\ 392 | 6 & 1.70E-05 & 2.40E-05 & 7.60E-05 & 8.30E-05 \\ 393 | 7 & 2.30E-05 & 5.00E-06 & 8.20E-05 & 8.90E-05 \\ 394 | 8 & 7.90E-05 & 6.00E-06 & 1.30E-05 & 9.50E-05 \\ 395 | 9 & 1.00E-05 & 1.20E-05 & 9.40E-05 & 9.60E-05 \\ 396 | \Xhline{2\arrayrulewidth} 397 | \end{tabularx} 398 | \end{table} 399 | 400 | \end{frame} 401 | 402 | %------------------------------------------------ 403 | 404 | \section{插图环境} 405 | 406 | \begin{frame} 407 | \frametitle{插图环境} 408 | 409 | Uncomment the code on this slide to include your own image from the same directory as the template .TeX file. 410 | \begin{figure}[htp!] 411 | \centering 412 | \includegraphics[width=0.5\linewidth]{image1} 413 | \caption{Caption of Figure 1.} \label{fig:A} 414 | \end{figure} 415 | \end{frame} 416 | 417 | %------------------------------------------------ 418 | 419 | \begin{frame} 420 | \frametitle{两图并排} 421 | \begin{figure}[htb] 422 | \centering 423 | \begin{minipage}{0.48\linewidth} 424 | \centering 425 | \includegraphics[width=\linewidth]{image1} 426 | \caption{Caption of Figure 1.} 427 | \end{minipage}\hfill 428 | \begin{minipage}{0.48\linewidth} 429 | \centering 430 | \includegraphics[width=\linewidth]{image2} 431 | \caption{Caption of Figure 2.} 432 | \end{minipage} 433 | \end{figure} 434 | \end{frame} 435 | 436 | %------------------------------------------------ 437 | \section{参考文献} 438 | %------------------------------------------------ 439 | 440 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 441 | \frametitle{Citation} 442 | An example of the \verb|\cite| command to cite within the presentation:\\~ 443 | 444 | This statement requires citation \cite{Smith2012}. \\~ 445 | 446 | 文献引用示例 \cite{LiLiu1997}, 可以修改引用文献样式. 447 | \end{frame} 448 | 449 | %------------------------------------------------ 450 | 451 | \begin{frame} 452 | \frametitle{References} 453 | \footnotesize{ 454 | \begin{thebibliography}{99} % Beamer does not support BibTeX so references must be inserted manually as below 455 | \bibitem[Smith, 2012]{Smith2012} John Smith, Title of the publication, \emph{Journal Name}, 12(3):45--678, 2012. 456 | \bibitem[李荣华, 1997]{LiLiu1997} 李荣华, 刘播. 微分方程数值解法. 东南大学出版社, 1997. 457 | \end{thebibliography} 458 | } 459 | \end{frame} 460 | 461 | 462 | %------------------------------------------------ 463 | %\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 464 | %\setbeamertemplate{headline}{} 465 | \begin{frame} 466 | %\sffamily 467 | \begin{center} 468 | \HUGE \textcolor[RGB]{165,3,3}{谢\quad 谢! \\[8pt] 469 | Thank you!} 470 | \end{center} 471 | \end{frame} 472 | 473 | %---------------------------------------------------------------------------------------- 474 | 475 | \end{document} 476 | 477 | 478 | -------------------------------------------------------------------------------- /Frankfurt-demo.tex: -------------------------------------------------------------------------------- 1 | %======================================================% 2 | % Beamer Presentation 3 | % LaTeX Template 4 | % compile using PDFTeXify or PDFLaTeX 5 | %======================================================% 6 | 7 | %-------------------------------------------------------------------------------- 8 | % PACKAGES AND THEMES 9 | %-------------------------------------------------------------------------------- 10 | 11 | \documentclass[notheorems,11pt,compress]{beamer} 12 | 13 | % The Beamer class comes with a number of default slide themes 14 | % which change the colors and layouts of slides. Below this is a list 15 | % of all the themes, uncomment each in turn to see what they look like. 16 | 17 | %------- Beamer theme ------ 18 | \usetheme{Frankfurt} 19 | %\usetheme{Montpellier} 20 | 21 | %------- Color theme ------ 22 | \usecolortheme{rose} 23 | %\usecolortheme{whale} 24 | 25 | \usefonttheme[onlymath]{serif} % only math serif font 26 | %\usefonttheme{serif} 27 | %\setbeamercovered{transparent} 28 | %\usetheme{boxes} 29 | 30 | %\setbeamertemplate{headline}{} 31 | %\setbeamertemplate{footline}{} 32 | \setbeamertemplate{blocks}[rounded][shadow=true] 33 | \setbeamertemplate{navigation symbols}{} 34 | %\setbeamertemplate{itemize items}[square] % ball, circle 35 | \setbeamertemplate{enumerate items}[square] 36 | %\setbeamertemplate{section in toc}[square] 37 | 38 | % change the style of headline 39 | \setbeamertemplate{headline}{ 40 | \begin{beamercolorbox}[ht=4.5ex]{section in head/foot} 41 | \vskip2pt\insertsectionnavigationhorizontal{\textwidth}{}{}\vskip2pt 42 | %\vskip2pt\insertnavigation{\paperwidth}\vskip2pt 43 | \end{beamercolorbox} 44 | \begin{beamercolorbox}[colsep=1.5pt,ht=.3ex]{upper separation line head} 45 | \end{beamercolorbox} 46 | } 47 | 48 | \setbeamertemplate{footline}{% 49 | \hfill% 50 | %\usebeamercolor[fg]{page number in head/foot}% 51 | \usebeamercolor[gray]{page number in head/foot}% 52 | \usebeamerfont{page number in head/foot}% 53 | \insertframenumber \,/\,\inserttotalframenumber 54 | \kern1em\vskip2pt% 55 | } 56 | 57 | %----------- Packages ------------- 58 | %\usepackage[latin1]{inputenc} 59 | %\usepackage{times} 60 | %\usepackage[T1]{fontenc} 61 | 62 | \usepackage[english]{babel} 63 | \usepackage{amsmath,amssymb,version} 64 | \usepackage{graphicx,fancybox,mathrsfs,multirow} 65 | \usepackage{booktabs} 66 | \usepackage{epsfig,epstopdf} 67 | \usepackage{url,hyperref} 68 | \usepackage{tabularx,array,makecell} 69 | \usepackage{color,xcolor} 70 | \usepackage{cases} 71 | \usepackage{mathtools} 72 | \usepackage{tikz} 73 | 74 | %---------- Set line spacing ---------- 75 | %\renewcommand{\baselinestretch}{1.15} 76 | 77 | %---------- Define new table commands ---------- 78 | \newcolumntype{P}[1]{>{\centering \arraybackslash}p{#1}} 79 | \newcolumntype{L}{X} 80 | \newcolumntype{C}{>{\centering \arraybackslash}X} 81 | \newcolumntype{R}{>{\raggedleft \arraybackslash}X} 82 | 83 | 84 | %---------- Set fonts ---------- 85 | %\setbeamerfont{normal text}{family=\rmfamily} 86 | %\AtBeginDocument{\usebeamerfont{normal text}} 87 | 88 | 89 | %---------- Theorem environment ---------- 90 | \setbeamertemplate{theorems}[numbered] 91 | \newtheorem{theorem}{Theorem} 92 | \numberwithin{theorem}{section} 93 | \newtheorem{definition}{Definition} 94 | \numberwithin{definition}{section} 95 | \newtheorem{lemma}{Lemma} 96 | \numberwithin{lemma}{section} 97 | \newtheorem{proposition}{Proposition} 98 | \numberwithin{proposition}{section} 99 | \newtheorem{corollary}{Corollary} 100 | \numberwithin{corollary}{section} 101 | \theoremstyle{example} 102 | \newtheorem{example}{Example} 103 | %\numberwithin{example}{section} 104 | \renewenvironment{proof}[1][Proof]{\textit{#1}:~}{\qed\par} 105 | 106 | \setbeamertemplate{caption}[numbered] 107 | \numberwithin{figure}{section} 108 | \numberwithin{table}{section} 109 | \numberwithin{equation}{section} 110 | 111 | 112 | %---------- Adjust the spacing of formulas ---------- 113 | %\AtBeginDocument{ 114 | % \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt} 115 | % \setlength{\belowdisplayskip}{4pt plus 1pt minus 1pt} 116 | % \setlength{\abovedisplayshortskip}{2pt} 117 | % \setlength{\belowdisplayshortskip}{2pt} 118 | % \setlength{\arraycolsep}{2pt} 119 | %} 120 | 121 | \makeatletter 122 | \newcommand\HUGE{\@setfontsize\Huge{36}{42}} 123 | \makeatother 124 | 125 | %---------- Define new commands ---------- 126 | \newcommand{\red}[1]{\textcolor{red}{#1}} 127 | \newcommand{\blue}[1]{\textcolor{blue}{#1}} 128 | 129 | 130 | \bibliographystyle{apalike} 131 | 132 | %\AtBeginSection[] 133 | %{ \begin{frame} 134 | % \frametitle{Outline} 135 | % \tableofcontents[currentsection,hideallsubsections] 136 | % \end{frame} 137 | % \addtocounter{framenumber}{-1} 138 | %} 139 | 140 | 141 | %-------------------------------------------------------------------------------- 142 | % TITLE PAGE 143 | %-------------------------------------------------------------------------------- 144 | 145 | \title[Short title]{Full Title of the Talk} % The short title appears at the bottom of every slide, the full title is only on the title page 146 | 147 | \author{John Smith} % Your name 148 | \institute[NU] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space 149 | { 150 | Name of University \\ % Your institution for the title page 151 | \medskip 152 | \textit{name@email.com} % Your email address 153 | } 154 | \date[2020.6.23]{Jun 23, 2020} % Date, can be changed to a custom date 155 | 156 | 157 | \graphicspath{{./figures/}} 158 | 159 | \begin{document} 160 | 161 | % only change the spacing of body text 162 | \setlength{\baselineskip}{15pt} 163 | 164 | %\thispagestyle{empty} 165 | \begin{frame} 166 | \titlepage % Print the title page as the first slide 167 | \end{frame} 168 | 169 | 170 | \begin{frame} 171 | \frametitle{Outline} 172 | \tableofcontents[hideallsubsections] % Throughout your presentation, if you choose to use \section{} and \subsection{} commands, these will automatically be printed on this slide as an overview of your presentation 173 | \end{frame} 174 | 175 | %-------------------------------------------------------------------------------- 176 | % PRESENTATION SLIDES 177 | %-------------------------------------------------------------------------------- 178 | 179 | %------------------------------------------------ 180 | \section{First Section} % Sections can be created in order to organize your presentation into discrete blocks, all sections and subsections are automatically printed in the table of contents as an overview of the talk 181 | %------------------------------------------------ 182 | 183 | \subsection{Subsection Example} % A subsection can be created just before a set of slides with a common theme to further break down your presentation into chunks 184 | 185 | \begin{frame} 186 | \frametitle{Paragraphs of Text} 187 | This is paragraphs of text. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. \\~\\ 188 | 189 | The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 190 | \end{frame} 191 | 192 | %------------------------------------------------ 193 | 194 | \begin{frame} 195 | \frametitle{Lists} 196 | 197 | \begin{enumerate} 198 | \item This is a enumerate environment. 199 | \item This is a enumerate environment. 200 | \item This is a enumerate environment. 201 | \end{enumerate} 202 | 203 | \vspace{2ex} 204 | \begin{itemize}[<+-| alert@+>] 205 | \item This is a itemize environment. 206 | \item This is a itemize environment. 207 | \item This is a itemize environment. 208 | \end{itemize} 209 | \end{frame} 210 | 211 | %------------------------------------------------ 212 | 213 | \begin{frame} 214 | \frametitle{Blocks of Highlighted Text} 215 | \begin{block}{Block Title} 216 | This is the block environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 217 | \end{block} 218 | 219 | \begin{exampleblock}{Block Title} 220 | This is the exampleblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 221 | \end{exampleblock} 222 | 223 | \begin{alertblock}{Block Title} 224 | This is the alertblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 225 | \end{alertblock} 226 | \end{frame} 227 | 228 | %------------------------------------------------ 229 | 230 | \begin{frame} 231 | \frametitle{Multiple Columns} 232 | \begin{columns}[c] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment 233 | 234 | \column{0.5\textwidth} 235 | This is a text in first column. 236 | $$E=mc^2$$ 237 | \begin{itemize} 238 | \item First item 239 | \item Second item 240 | \end{itemize} 241 | 242 | \column{0.5\textwidth} 243 | This text will be in the second column 244 | and on a second tought this is a nice looking 245 | layout in some cases. 246 | 247 | \end{columns} 248 | \end{frame} 249 | 250 | %------------------------------------------------ 251 | \section{Second Section} 252 | %------------------------------------------------ 253 | 254 | \begin{frame} 255 | \frametitle{Theorem} 256 | 257 | \begin{definition} 258 | This is a definition environment. 259 | \end{definition} 260 | 261 | 262 | \begin{lemma} 263 | This is a lemma environment. 264 | \end{lemma} 265 | 266 | \begin{proposition} 267 | This is a proposition environment. 268 | \end{proposition} 269 | 270 | \begin{theorem}[Mass--energy] 271 | This is a theorem environment. 272 | \end{theorem} 273 | 274 | \begin{proof} 275 | This is a proof environment. 276 | \end{proof} 277 | \end{frame} 278 | 279 | %------------------------------------------------ 280 | 281 | \begin{frame} 282 | \frametitle{Formula and Table} 283 | 284 | This is Pythagorean's theorem 285 | \begin{equation}\label{Pythagorean} 286 | a^2+b^2=c^2. 287 | \end{equation} 288 | 289 | This is a simple three-line table. 290 | \begin{table} 291 | \caption{Table caption} 292 | \begin{tabular}{l l l} 293 | \toprule 294 | Treatments & Response 1 & Response 2 \\ 295 | \midrule 296 | Treatment 1 & 0.0003262 & 0.562 \\ 297 | Treatment 2 & 0.0015681 & 0.910 \\ 298 | Treatment 3 & 0.0009271 & 0.296 \\ 299 | \bottomrule 300 | \end{tabular} 301 | \end{table} 302 | 303 | \end{frame} 304 | 305 | %------------------------------------------------ 306 | 307 | \begin{frame} 308 | \frametitle{} 309 | The new command PLCR is defined to set the length of the width of the table. They can be used in the tabularx environment. 310 | 311 | \begin{table}[!htp] 312 | \centering 313 | \renewcommand\arraystretch{1.05} 314 | \caption{A sample of the height and weight of students.} 315 | \label{tab2:heightweight} 316 | % PLCR is defined in the preamble 317 | \begin{tabularx}{0.8\textwidth}{lCCC} 318 | \toprule %\Xhline{2\arrayrulewidth} 319 | Number & Age & Height & Weight\\ 320 | \midrule 321 | 1&14&156&42\\ 322 | 2&16&158&45\\ 323 | 3&14&162&48\\ 324 | 4&15&163&50\\ 325 | \cmidrule{2-4} 326 | Mean &15&159.75&46.25\\ 327 | \bottomrule 328 | \end{tabularx} 329 | \end{table} 330 | \end{frame} 331 | 332 | %------------------------------------------------ 333 | 334 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 335 | \frametitle{Verbatim} 336 | \begin{example}[Theorem Slide Code] 337 | \begin{verbatim} 338 | \begin{frame} 339 | \frametitle{Theorem} 340 | \begin{theorem}[Mass--energy equivalence] 341 | $E = mc^2$ 342 | \end{theorem} 343 | \end{frame}\end{verbatim} 344 | \end{example} 345 | 346 | \begin{theorem}[Mass--energy equivalence] 347 | $E = mc^2$ 348 | \end{theorem} 349 | \end{frame} 350 | 351 | %------------------------------------------------ 352 | 353 | \begin{frame} 354 | \frametitle{Figure} 355 | 356 | Uncomment the code on this slide to include your own image from the same directory as the template .TeX file. 357 | \begin{figure}[htp!] 358 | \centering 359 | \includegraphics[width=0.6\linewidth]{image1.eps} 360 | \end{figure} 361 | \end{frame} 362 | 363 | %------------------------------------------------ 364 | 365 | \begin{frame} 366 | \frametitle{Two pictures} 367 | \begin{figure}[htb] 368 | \centering 369 | \begin{minipage}{0.48\linewidth} 370 | \centering 371 | \includegraphics[width=\linewidth]{image1} 372 | \caption{Caption of Figure 1.} 373 | \end{minipage}\hfill 374 | \begin{minipage}{0.48\linewidth} 375 | \centering 376 | \includegraphics[width=\linewidth]{image2} 377 | \caption{Caption of Figure 2.} 378 | \end{minipage} 379 | \end{figure} 380 | \end{frame} 381 | 382 | %------------------------------------------------ 383 | \section{Third Section} 384 | %------------------------------------------------ 385 | 386 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 387 | \frametitle{Citation} 388 | An example of the \verb|\cite| command to cite within the presentation:\\~ 389 | 390 | This statement requires citation \cite{Smith2012}. 391 | \end{frame} 392 | 393 | %------------------------------------------------ 394 | 395 | \begin{frame} 396 | \frametitle{References} 397 | \footnotesize{ 398 | \begin{thebibliography}{99} % Beamer does not support BibTeX so references must be inserted manually as below 399 | \bibitem[Smith, 2012]{Smith2012} John Smith. Title of the publication. \emph{Journal Name}, 12(3):45--678, 2012. 400 | \end{thebibliography} 401 | } 402 | \end{frame} 403 | 404 | 405 | %------------------------------------------------ 406 | %\thispagestyle{empty} 407 | \setbeamertemplate{headline}{} 408 | \setbeamertemplate{footline}{% 409 | \hfill% 410 | %\usebeamercolor[fg]{page number in head/foot}% 411 | \usebeamercolor[gray]{page number in head/foot}% 412 | \usebeamerfont{page number in head/foot}% 413 | \insertframenumber \,/\,\inserttotalframenumber 414 | \kern1em\vskip2pt% 415 | } 416 | 417 | %------------------------------------------------ 418 | %\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 419 | %\setbeamertemplate{headline}{} 420 | \begin{frame} 421 | %\sffamily 422 | \begin{center} 423 | \HUGE{\textcolor[RGB]{165,3,3}{Thank~you!}} 424 | \end{center} 425 | \end{frame} 426 | 427 | %------------------------------------------------ 428 | %%\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 429 | %\begin{frame} 430 | %\Huge{\centerline{The End}} 431 | %\end{frame} 432 | 433 | 434 | \end{document} 435 | 436 | -------------------------------------------------------------------------------- /Rochester-demo.tex: -------------------------------------------------------------------------------- 1 | %======================================================% 2 | % Beamer Presentation 3 | % LaTeX Template 4 | % compile using PDFTeXify or PDFLaTeX 5 | %======================================================% 6 | 7 | %-------------------------------------------------------------------------------- 8 | % PACKAGES AND THEMES 9 | %-------------------------------------------------------------------------------- 10 | 11 | \documentclass[notheorems,11pt,compress]{beamer} 12 | 13 | % The Beamer class comes with a number of default slide themes 14 | % which change the colors and layouts of slides. Below this is a list 15 | % of all the themes, uncomment each in turn to see what they look like. 16 | 17 | \mode{ 18 | 19 | %------- Beamer theme ------ 20 | \usetheme[height=20pt]{Rochester} 21 | %\usetheme{Madrid} 22 | %\usetheme{Singapore} 23 | %\usetheme{Madrid} 24 | %\usetheme{Warsaw} 25 | 26 | 27 | 28 | %------- Color theme ------ 29 | \usecolortheme{whale} 30 | %\usecolortheme{rose} 31 | %\usecolortheme{lily} 32 | %\usecolortheme{dolphin} 33 | %\usecolortheme{seahorse} 34 | 35 | %\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10] 36 | \usefonttheme[onlymath]{serif} 37 | %\usefonttheme{serif} 38 | %\setbeamercovered{transparent} 39 | %\usetheme{boxes} 40 | 41 | %\setbeamertemplate{headline}{} 42 | %\setbeamertemplate{footline}{} 43 | \setbeamertemplate{blocks}[rounded][shadow=true] 44 | \setbeamertemplate{navigation symbols}{} 45 | %\setbeamertemplate{itemize items}[square] % ball, circle 46 | \setbeamertemplate{enumerate items}[square] 47 | %\setbeamertemplate{section in toc}[square] 48 | 49 | \setbeamertemplate{footline}{% 50 | \hfill% 51 | \usebeamercolor[fg]{page number in head/foot}% 52 | \usebeamerfont{page number in head/foot}% 53 | \insertframenumber \,/\,\inserttotalframenumber 54 | \kern1em\vskip2pt% 55 | } 56 | 57 | } 58 | 59 | %\setbeamertemplate{footline} 60 | %{% 61 | % \leavevmode% 62 | % \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fil,rightskip=.3cm]{author in head/foot}% 63 | % \usebeamerfont{author in head/foot}\insertshortauthor 64 | % \end{beamercolorbox}% 65 | % \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}% 66 | % \usebeamerfont{title in head/foot} \hfill \insertshorttitle \hfill \insertframenumber\,/\,\inserttotalframenumber% 67 | % \end{beamercolorbox}}% 68 | % \vskip0pt% 69 | %} 70 | 71 | 72 | %----------- Packages ------------- 73 | %\usepackage[latin1]{inputenc} 74 | %\usepackage{times} 75 | %\usepackage[T1]{fontenc} 76 | 77 | \usepackage[english]{babel} 78 | \usepackage{amsmath,amssymb,version} 79 | \usepackage{graphicx,fancybox,mathrsfs,multirow} 80 | \usepackage{booktabs} 81 | \usepackage{epsfig,epstopdf} 82 | \usepackage{url,hyperref} 83 | \usepackage{tabularx,array,makecell} 84 | \usepackage{color,xcolor} 85 | \usepackage{cases} 86 | \usepackage{mathtools} 87 | \usepackage{tikz} 88 | 89 | %---------- Set line spacing ---------- 90 | %\renewcommand{\baselinestretch}{1.15} 91 | 92 | %---------- Define new table commands ---------- 93 | \newcolumntype{P}[1]{>{\centering \arraybackslash}p{#1}} 94 | \newcolumntype{L}{X} 95 | \newcolumntype{C}{>{\centering \arraybackslash}X} 96 | \newcolumntype{R}{>{\raggedleft \arraybackslash}X} 97 | 98 | 99 | %---------- Set fonts ---------- 100 | %\setbeamerfont{normal text}{family=\rmfamily} 101 | %\AtBeginDocument{\usebeamerfont{normal text}} 102 | 103 | 104 | %---------- Theorem environment ---------- 105 | \setbeamertemplate{theorems}[numbered] 106 | \newtheorem{theorem}{Theorem} 107 | \numberwithin{theorem}{section} 108 | \newtheorem{definition}{Definition} 109 | \numberwithin{definition}{section} 110 | \newtheorem{lemma}{Lemma} 111 | \numberwithin{lemma}{section} 112 | \newtheorem{proposition}{Proposition} 113 | \numberwithin{proposition}{section} 114 | \newtheorem{corollary}{Corollary} 115 | \numberwithin{corollary}{section} 116 | \theoremstyle{example} 117 | \newtheorem{example}{Example} 118 | %\numberwithin{example}{section} 119 | \renewenvironment{proof}[1][Proof]{\textit{#1}:~}{\qed\par} 120 | 121 | \setbeamertemplate{caption}[numbered] 122 | \numberwithin{figure}{section} 123 | \numberwithin{table}{section} 124 | \numberwithin{equation}{section} 125 | 126 | 127 | %---------- Adjust the spacing of formulas ---------- 128 | %\AtBeginDocument{ 129 | % \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt} 130 | % \setlength{\belowdisplayskip}{4pt plus 1pt minus 1pt} 131 | % \setlength{\abovedisplayshortskip}{2pt} 132 | % \setlength{\belowdisplayshortskip}{2pt} 133 | % \setlength{\arraycolsep}{2pt} 134 | %} 135 | 136 | \makeatletter 137 | \newcommand\HUGE{\@setfontsize\Huge{36}{42}} 138 | \makeatother 139 | 140 | %---------- Define new commands ---------- 141 | \newcommand{\red}[1]{\textcolor{red}{#1}} 142 | \newcommand{\blue}[1]{\textcolor{blue}{#1}} 143 | 144 | 145 | %---------- Show the outline ---------- 146 | \AtBeginSection[]{ 147 | \begin{frame} 148 | \frametitle{Outline} 149 | %\tableofcontents[currentsection,currentsubsection,subsectionstyle=show/show/shaded] 150 | \tableofcontents[currentsection,hideallsubsections] 151 | \addtocounter{framenumber}{-1} 152 | \end{frame} 153 | } 154 | 155 | 156 | %-------------------------------------------------------------------------------- 157 | % TITLE PAGE 158 | %-------------------------------------------------------------------------------- 159 | 160 | \title[Short title]{Full Title of the Talk} 161 | % The short title appears at the bottom of every slide, the full title is only on the title page 162 | 163 | \author{John Smith} % Your name 164 | \institute[NU] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space 165 | { 166 | Name of University \\ % Your institution for the title page 167 | \medskip 168 | \textit{name@email.com} % Your email address 169 | } 170 | \date[2020.6.23]{Jun 23, 2020} % Date, can be changed to a custom date 171 | 172 | 173 | \graphicspath{{./figures/}} 174 | 175 | 176 | \begin{document} 177 | 178 | % only change the spacing of body text 179 | \setlength{\baselineskip}{15pt} 180 | 181 | 182 | %\thispagestyle{empty} 183 | {\setbeamertemplate{headline}{} 184 | \begin{frame} 185 | \titlepage % Print the title page as the first slide 186 | \end{frame} 187 | } 188 | 189 | \begin{frame} 190 | \frametitle{Outline} 191 | \tableofcontents[hideallsubsections] 192 | \end{frame} 193 | 194 | %-------------------------------------------------------------------------------- 195 | % PRESENTATION SLIDES 196 | %-------------------------------------------------------------------------------- 197 | 198 | %------------------------------------------------ 199 | \section{First Section} % Sections can be created in order to organize your presentation into discrete blocks, all sections and subsections are automatically printed in the table of contents as an overview of the talk 200 | %------------------------------------------------ 201 | 202 | \subsection{Subsection Example} % A subsection can be created just before a set of slides with a common theme to further break down your presentation into chunks 203 | 204 | \begin{frame} 205 | \frametitle{Paragraphs of Text} 206 | This is paragraphs of text. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. \\~\\ 207 | 208 | The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 209 | \end{frame} 210 | 211 | %------------------------------------------------ 212 | 213 | \begin{frame} 214 | \frametitle{Lists} 215 | 216 | \begin{enumerate} 217 | \item This is a enumerate environment. 218 | \item This is a enumerate environment. 219 | \item This is a enumerate environment. 220 | \end{enumerate} 221 | 222 | \vspace{2ex} 223 | \begin{itemize}[<+-| alert@+>] 224 | \item This is a itemize environment. 225 | \item This is a itemize environment. 226 | \item This is a itemize environment. 227 | \end{itemize} 228 | \end{frame} 229 | 230 | %------------------------------------------------ 231 | 232 | \begin{frame} 233 | \frametitle{Blocks of Highlighted Text} 234 | \begin{block}{Block Title} 235 | This is the block environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 236 | \end{block} 237 | 238 | \begin{exampleblock}{Block Title} 239 | This is the exampleblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 240 | \end{exampleblock} 241 | 242 | \begin{alertblock}{Block Title} 243 | This is the alertblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 244 | \end{alertblock} 245 | \end{frame} 246 | 247 | %------------------------------------------------ 248 | 249 | \begin{frame} 250 | \frametitle{Multiple Columns} 251 | \begin{columns}[c] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment 252 | 253 | \column{0.5\textwidth} 254 | This is a text in first column. 255 | $$E=mc^2$$ 256 | \begin{itemize} 257 | \item First item 258 | \item Second item 259 | \end{itemize} 260 | 261 | \column{0.5\textwidth} 262 | This text will be in the second column 263 | and on a second tought this is a nice looking 264 | layout in some cases. 265 | 266 | \end{columns} 267 | \end{frame} 268 | 269 | %------------------------------------------------ 270 | \section{Second Section} 271 | %------------------------------------------------ 272 | 273 | \begin{frame} 274 | \frametitle{Theorem} 275 | 276 | \begin{definition} 277 | This is a definition environment. 278 | \end{definition} 279 | 280 | 281 | \begin{lemma} 282 | This is a lemma environment. 283 | \end{lemma} 284 | 285 | \begin{proposition} 286 | This is a proposition environment. 287 | \end{proposition} 288 | 289 | \begin{theorem}[Mass--energy] 290 | This is a theorem environment. 291 | \end{theorem} 292 | 293 | \begin{proof} 294 | This is a proof environment. 295 | \end{proof} 296 | \end{frame} 297 | 298 | %------------------------------------------------ 299 | 300 | \begin{frame} 301 | \frametitle{Formula and Table} 302 | 303 | This is Pythagorean's theorem 304 | \begin{equation}\label{Pythagorean} 305 | a^2+b^2=c^2. 306 | \end{equation} 307 | 308 | This is a simple three-line table. 309 | \begin{table} 310 | \caption{Table caption} 311 | \begin{tabular}{l l l} 312 | \toprule 313 | Treatments & Response 1 & Response 2 \\ 314 | \midrule 315 | Treatment 1 & 0.0003262 & 0.562 \\ 316 | Treatment 2 & 0.0015681 & 0.910 \\ 317 | Treatment 3 & 0.0009271 & 0.296 \\ 318 | \bottomrule 319 | \end{tabular} 320 | \end{table} 321 | 322 | \end{frame} 323 | 324 | %------------------------------------------------ 325 | 326 | \begin{frame} 327 | \frametitle{} 328 | The new command PLCR is defined to set the length of the width of the table. They can be used in the tabularx environment. 329 | 330 | \begin{table}[!htp] 331 | \centering 332 | \renewcommand\arraystretch{1.05} 333 | \caption{A sample of the height and weight of students.} 334 | \label{tab2:heightweight} 335 | % PLCR is defined in the preamble 336 | \begin{tabularx}{0.8\textwidth}{lCCC} 337 | \toprule %\Xhline{2\arrayrulewidth} 338 | Number & Age & Height & Weight\\ 339 | \midrule 340 | 1&14&156&42\\ 341 | 2&16&158&45\\ 342 | 3&14&162&48\\ 343 | 4&15&163&50\\ 344 | \cmidrule{2-4} 345 | Mean &15&159.75&46.25\\ 346 | \bottomrule 347 | \end{tabularx} 348 | \end{table} 349 | \end{frame} 350 | 351 | %------------------------------------------------ 352 | 353 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 354 | \frametitle{Verbatim} 355 | \begin{example}[Theorem Slide Code] 356 | \begin{verbatim} 357 | \begin{frame} 358 | \frametitle{Theorem} 359 | \begin{theorem}[Mass--energy equivalence] 360 | $E = mc^2$ 361 | \end{theorem} 362 | \end{frame}\end{verbatim} 363 | \end{example} 364 | 365 | \begin{theorem}[Mass--energy equivalence] 366 | $E = mc^2$ 367 | \end{theorem} 368 | \end{frame} 369 | 370 | %------------------------------------------------ 371 | 372 | \begin{frame} 373 | \frametitle{Figure} 374 | 375 | Uncomment the code on this slide to include your own image from the same directory as the template .TeX file. 376 | \begin{figure}[htp!] 377 | \centering 378 | \includegraphics[width=0.6\linewidth]{image1.eps} 379 | \end{figure} 380 | \end{frame} 381 | 382 | %------------------------------------------------ 383 | 384 | \begin{frame} 385 | \frametitle{Two pictures} 386 | \begin{figure}[htb] 387 | \centering 388 | \begin{minipage}{0.48\linewidth} 389 | \centering 390 | \includegraphics[width=\linewidth]{image1} 391 | \caption{Caption of Figure 1.} 392 | \end{minipage}\hfill 393 | \begin{minipage}{0.48\linewidth} 394 | \centering 395 | \includegraphics[width=\linewidth]{image2} 396 | \caption{Caption of Figure 2.} 397 | \end{minipage} 398 | \end{figure} 399 | \end{frame} 400 | 401 | %------------------------------------------------ 402 | \section{Third Section} 403 | %------------------------------------------------ 404 | 405 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 406 | \frametitle{Citation} 407 | An example of the \verb|\cite| command to cite within the presentation:\\~ 408 | 409 | This statement requires citation \cite{Smith2012}. 410 | \end{frame} 411 | 412 | %------------------------------------------------ 413 | 414 | \begin{frame} 415 | \frametitle{References} 416 | \footnotesize{ 417 | \begin{thebibliography}{99} % Beamer does not support BibTeX so references must be inserted manually as below 418 | \bibitem[Smith, 2012]{Smith2012} John Smith. Title of the publication. \emph{Journal Name}, 12(3):45--678, 2012. 419 | \end{thebibliography} 420 | } 421 | \end{frame} 422 | 423 | 424 | %------------------------------------------------ 425 | %\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 426 | %\setbeamertemplate{headline}{} 427 | \begin{frame} 428 | %\sffamily 429 | \begin{center} 430 | \HUGE{\textcolor[RGB]{165,3,3}{Thank~you!}} 431 | \end{center} 432 | \end{frame} 433 | 434 | %------------------------------------------------ 435 | 436 | %\thispagestyle{empty} 437 | %%\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 438 | %\begin{frame} 439 | %\Huge{\centerline{The End}} 440 | %\end{frame} 441 | 442 | 443 | \end{document} 444 | -------------------------------------------------------------------------------- /Frankfurt-demo-cn.tex: -------------------------------------------------------------------------------- 1 | %======================================================% 2 | % Beamer Presentation 3 | % LaTeX Template 4 | % compile using PDFTeXify or PDFLaTeX 5 | %======================================================% 6 | 7 | %-------------------------------------------------------------------------------- 8 | % PACKAGES AND THEMES 9 | %-------------------------------------------------------------------------------- 10 | 11 | %\documentclass[notheorems,11pt,compress]{beamer} 12 | \documentclass[notheorems]{beamer} 13 | 14 | \mode{ 15 | 16 | %------- Beamer theme ------ 17 | \usetheme{Frankfurt} 18 | %\usetheme{Montpellier} 19 | %\usetheme{Warsaw} 20 | %\usetheme{CambridgeUS} 21 | %\usetheme{Boadilla} 22 | 23 | %------- Color theme ------ 24 | \usecolortheme{rose} 25 | %\usecolortheme{orchid} 26 | %\usecolortheme{lily} 27 | %\usecolortheme{whale} 28 | %\usecolortheme{dolphin} 29 | %\usecolortheme{seahorse} 30 | 31 | %\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10] 32 | \usefonttheme[onlymath]{serif} 33 | %\usefonttheme{serif} 34 | %\setbeamercovered{transparent} 35 | %\usetheme{boxes} 36 | 37 | %\setbeamertemplate{headline}{} 38 | %\setbeamertemplate{footline}{} 39 | \setbeamertemplate{blocks}[rounded][shadow=true] 40 | \setbeamertemplate{navigation symbols}{} 41 | %\setbeamertemplate{itemize items}[square] % ball, circle 42 | %\setbeamertemplate{enumerate items}[square] 43 | %\setbeamertemplate{section in toc}[square] 44 | 45 | % change the style of headline 46 | \setbeamertemplate{headline}{ 47 | \begin{beamercolorbox}[ht=4.5ex]{section in head/foot} 48 | \vskip2pt\insertsectionnavigationhorizontal{\textwidth}{}{}\vskip2pt 49 | %\vskip2pt\insertnavigation{\paperwidth}\vskip2pt 50 | \end{beamercolorbox} 51 | \begin{beamercolorbox}[colsep=1.5pt,ht=.3ex]{upper separation line head} 52 | \end{beamercolorbox} 53 | } 54 | 55 | \setbeamertemplate{footline}{% 56 | \hfill% 57 | %\usebeamercolor[fg]{page number in head/foot}% 58 | \usebeamercolor[gray]{page number in head/foot}% 59 | \usebeamerfont{page number in head/foot}% 60 | \insertframenumber \,/\,\inserttotalframenumber 61 | \kern1em\vskip2pt% 62 | } 63 | 64 | } 65 | 66 | %----------- 宏包 ------------- 67 | %\usepackage[latin1]{inputenc} 68 | %\usepackage{times} 69 | %\usepackage[T1]{fontenc} 70 | 71 | \usepackage[UTF8,noindent]{ctex} 72 | %\usepackage[english]{babel} 73 | \usepackage{amsmath,amssymb,version} 74 | \usepackage{graphicx,fancybox,mathrsfs,multirow} 75 | \usepackage{booktabs} 76 | \usepackage{epsfig,epstopdf} 77 | \usepackage{url,hyperref} 78 | \usepackage{tabularx,array,makecell} 79 | \usepackage{color,xcolor} 80 | \usepackage{cases} 81 | \usepackage{mathtools} 82 | \usepackage{tikz} 83 | 84 | 85 | %---------- 定义表格命令 ---------- 86 | \newcolumntype{P}[1]{>{\centering \arraybackslash}p{#1}} 87 | \newcolumntype{L}{X} 88 | \newcolumntype{C}{>{\centering \arraybackslash}X} 89 | \newcolumntype{R}{>{\raggedleft \arraybackslash}X} 90 | 91 | 92 | %---------- 设置 定理环境 -------------- 93 | \theoremstyle{plain} 94 | \setbeamertemplate{theorems}[numbered] 95 | %\theoremstyle{definition} 96 | %\newtheorem{theorem}{Theorem} 97 | \newtheorem{theorem}{\sffamily 定理} 98 | \numberwithin{theorem}{section} 99 | %\newtheorem{definition}{Definition} 100 | \newtheorem{definition}{\sffamily 定义} 101 | \numberwithin{definition}{section} 102 | %\newtheorem{lemma}{Lemma} 103 | \newtheorem{lemma}{\sffamily 引理} 104 | \numberwithin{lemma}{section} 105 | %\newtheorem{proposition}{Proposition} 106 | \newtheorem{proposition}{\sffamily 命题} 107 | \numberwithin{proposition}{section} 108 | %\newtheorem{corollary}{Corollary} 109 | \newtheorem{corollary}{{\sffamily 推论}} 110 | \numberwithin{corollary}{section} 111 | \theoremstyle{example} 112 | %\newtheorem{example}{Example} 113 | \newtheorem{example}{\sffamily 例} 114 | %\numberwithin{example}{section} 115 | \renewenvironment{proof}[1][证明]{\textbf{#1}:~}{\qed\par} 116 | %\renewenvironment{proof}[1][证明]{{\heiti #1}:~}{\qed\par} 117 | 118 | \setbeamertemplate{caption}[numbered] 119 | \numberwithin{figure}{section} 120 | \numberwithin{table}{section} 121 | \numberwithin{equation}{section} 122 | 123 | 124 | %---------- 设置字体 --------------- 125 | \setbeamerfont{normal text}{family=\rmfamily} 126 | %\setbeamerfont{frametitle}{family=\sffamily} 127 | %\setbeamerfont{title}{family=\sffamily} 128 | %%\setbeamerfont{subtitle}{family=\sffamily} 129 | %\setbeamerfont{institute}{family=\rmfamily} 130 | %\setbeamerfont{author}{family=\rmfamily} 131 | %\setbeamerfont{date}{family=\rmfamily} 132 | %\setbeamerfont{headline}{family=\sffamily} 133 | %\setbeamerfont{footline}{family=\rmfamily} 134 | %\setbeamerfont{section in toc}{family=\rmfamily} 135 | %\setbeamerfont{subsection in toc}{family=\rmfamily} 136 | \AtBeginDocument{\usebeamerfont{normal text}} 137 | 138 | 139 | 140 | %---------- 定义行距 ---------- 141 | %\renewcommand{\baselinestretch}{1.0} 142 | 143 | %---------- 调节公式的间距 ---------- 144 | %\AtBeginDocument{ 145 | % \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt} 146 | % \setlength{\belowdisplayskip}{4pt plus 1pt minus 1pt} 147 | % \setlength{\abovedisplayshortskip}{2pt} 148 | % \setlength{\belowdisplayshortskip}{2pt} 149 | % \setlength{\arraycolsep}{2pt} 150 | %} 151 | 152 | \makeatletter 153 | \newcommand\HUGE{\@setfontsize\Huge{28}{32}} 154 | \makeatother 155 | 156 | %---------- 自定义命令 ---------- 157 | \newcommand{\red}[1]{\textcolor{red}{#1}} 158 | \newcommand{\blue}[1]{\textcolor{blue}{#1}} 159 | 160 | 161 | \AtBeginSection[]{ 162 | \begin{frame} 163 | \frametitle{目录} 164 | \tableofcontents[currentsection,currentsubsection] 165 | %\tableofcontents[currentsection,currentsubsection,subsectionstyle=show/show/shaded] 166 | \addtocounter{framenumber}{-1} 167 | \end{frame} 168 | } 169 | 170 | %---------------------------------------------------------------------------------------- 171 | % TITLE PAGE 172 | %---------------------------------------------------------------------------------------- 173 | 174 | \title[Short 题目]{Full Title of the Talk 题目} % The short title appears at the bottom of every slide, the full title is only on the title page 175 | 176 | \author{姓名} % 名字 177 | \institute[NU] % 机构缩写 178 | { 179 | Name of University \\ % 机构全称 180 | \medskip 181 | \textit{name@email.com} % 邮件 182 | } 183 | \date[2020.6.23]{2020~年~6~月~23~日} % 日期 184 | 185 | 186 | \graphicspath{{./figures/}} 187 | 188 | \begin{document} 189 | 190 | % only change the spacing of body text 191 | \setlength{\baselineskip}{15pt} 192 | 193 | {\setbeamertemplate{headline}{} 194 | \begin{frame} 195 | \titlepage 196 | \end{frame}} 197 | 198 | \begin{frame} 199 | \frametitle{目录} 200 | \tableofcontents%[hideallsubsections] 201 | \end{frame} 202 | 203 | %---------------------------------------------------------------------------------------- 204 | % PRESENTATION SLIDES 205 | %---------------------------------------------------------------------------------------- 206 | 207 | %------------------------------------------------ 208 | \section{文本与 Block} 209 | %------------------------------------------------ 210 | 211 | \begin{frame}{文本测试} 212 | 这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。 213 | 这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。 214 | 215 | \vspace{1ex} 216 | 这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。 217 | 这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。 218 | 219 | \end{frame} 220 | 221 | %----------------------------------------------- 222 | 223 | \begin{frame} 224 | \frametitle{Blocks of Highlighted Text} 225 | \begin{block}{Block Title} 226 | This is the block environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 227 | \end{block} 228 | 229 | \begin{exampleblock}{Block Title} 230 | This is the exampleblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 231 | \end{exampleblock} 232 | 233 | \begin{alertblock}{Block Title} 234 | This is the alertblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 235 | \end{alertblock} 236 | \end{frame} 237 | 238 | %------------------------------------------------ 239 | \section{列表环境与分栏} 240 | 241 | \begin{frame} 242 | \frametitle{列表环境} 243 | 244 | 计数列表环境 245 | \begin{enumerate} 246 | \item 这是一个计数列表环境. 247 | \item 这是一个计数列表环境. 248 | \item 这是一个计数列表环境. 249 | \end{enumerate} 250 | 251 | \vspace{2ex} 252 | 不计数列表环境 253 | \begin{itemize}[<+-| alert@+>] 254 | \item 这是一个不计数列表环境. 255 | \item 这是一个不计数列表环境. 256 | \item 这是一个不计数列表环境. 257 | \end{itemize} 258 | 259 | \end{frame} 260 | 261 | %------------------------------------------------ 262 | 263 | \begin{frame} 264 | \frametitle{左右分栏} % Multiple Columns 265 | \begin{columns}[t] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment 266 | 267 | \column{.45\textwidth} % Left column and width 268 | \textbf{Heading} 269 | \begin{enumerate} 270 | \item Statement 271 | \item Explanation 272 | \item Example 273 | \end{enumerate} 274 | 275 | \column{.5\textwidth} % Right column and width 276 | The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 277 | \end{columns} 278 | \end{frame} 279 | 280 | %------------------------------------------------ 281 | \section{定理与表格} 282 | %------------------------------------------------ 283 | 284 | \begin{frame} 285 | \frametitle{定理环境} 286 | \begin{definition} \upshape\rmfamily 287 | This is a definition environment. 这是一个定义环境. 288 | \end{definition} 289 | 290 | 291 | \begin{lemma} \upshape\rmfamily 292 | This is a lemma environment. 这是一个引理环境. 293 | \end{lemma} 294 | 295 | \begin{proposition} \upshape\rmfamily 296 | This is a proposition environment. 这是一个命题环境. 297 | \end{proposition} 298 | 299 | \begin{theorem}[Mass--energy] \upshape\rmfamily 300 | This is a theorem environment. 这是一个定理环境. 301 | \end{theorem} 302 | 303 | \begin{proof} 304 | This is a proof environment. 这是一个证明环境. 305 | \end{proof} 306 | 307 | \end{frame} 308 | 309 | %------------------------------------------------ 310 | 311 | 312 | \begin{frame} 313 | \frametitle{定理示例} 314 | 315 | \begin{theorem}[Lax-Milgram Lemma] \upshape 316 | Let $X$ be a Hilbert space, let $a(\cdot, \cdot)$ : $X \times X \rightarrow \mathbb{R}$ be a continuous and coercive bilinear form, and let $F : X \rightarrow \mathbb{R}$ be a linear functional in $X^{\prime}$. Then the variational problem: 317 | \begin{equation} 318 | \alert{ 319 | \left\{\begin{aligned} 320 | &\text {Find } u \in X \text { such that } \\ 321 | &a(u, v)=F(v), \forall v \in X 322 | \end{aligned} \right. } 323 | \end{equation} 324 | has a unique solution. Moreover, we have 325 | \begin{equation} 326 | \alert{ \|u\| \leq \frac{1}{\alpha}\|F\|_{X^{\prime}} } 327 | \end{equation} 328 | \end{theorem} 329 | 330 | \end{frame} 331 | 332 | %------------------------------------------------ 333 | 334 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 335 | \frametitle{Verbatim} 336 | \begin{example}[Theorem Slide Code] 337 | \begin{verbatim} 338 | \begin{frame} 339 | \frametitle{Theorem} 340 | \begin{theorem}[Mass--energy equivalence] 341 | $E = mc^2$ 342 | \end{theorem} 343 | \end{frame}\end{verbatim} 344 | \end{example} 345 | 346 | \begin{table} 347 | \caption{这是一个三线表.} 348 | \begin{tabular}{l l l} 349 | \toprule 350 | \textbf{Treatments} & \textbf{Response 1} & \textbf{Response 2}\\ 351 | \midrule 352 | Treatment 1 & 0.0003262 & 0.562 \\ 353 | Treatment 2 & 0.0015681 & 0.910 \\ 354 | \bottomrule 355 | \end{tabular} 356 | \end{table} 357 | 358 | \end{frame} 359 | 360 | 361 | %------------------------------------------------ 362 | 363 | \begin{frame} 364 | \frametitle{表格环境} 365 | 本文定义了新的可变长度左中右 (LCR) 格式, LCR 三个格式会根据表格宽度的设定自行控制宽度, 且其宽度相等, 方便设置和页面相同宽度的表格. 本文还定义了 P\{\} 格式可以设定某一列宽度 (如 P\{1cm\} 控制某一列的宽度为 1cm) 并居中. 366 | \begin{table}[!htp] 367 | \centering 368 | % PLCR已经定义 369 | \caption{某校学生身高体重样本.} 370 | \label{tab2:heightweight} 371 | \begin{tabularx}{0.9\textwidth}{lCCC} 372 | \toprule 373 | 序号&年龄&身高&体重\\ 374 | \midrule 375 | 1&14&156&42\\ 376 | 2&16&158&45\\ 377 | 3&14&162&48\\ 378 | 4&15&163&50\\ 379 | \cmidrule{2-4} 380 | 平均&15&159.75&46.25\\ 381 | \bottomrule 382 | \end{tabularx} 383 | \end{table} 384 | 385 | \end{frame} 386 | 387 | 388 | %------------------------------------------------ 389 | 390 | \begin{frame} 391 | \frametitle{表格示例} 392 | \begin{table}[htp!] 393 | \centering 394 | \renewcommand\arraystretch{1.0} %定义表格高度 395 | % PLCR前面已经定义 396 | \caption{表格的描述.} 397 | \label{tab3:NumError} 398 | \begin{tabularx}{0.9\textwidth}{|P{1cm}|C|C|C|C|} 399 | \Xhline{2\arrayrulewidth} 400 | N & A & B & C & D \\ 401 | \Xhline{2\arrayrulewidth} 402 | 1 & 9.20E-05 & 9.90E-05 & 1.00E-06 & 8.00E-06 \\ 403 | 2 & 9.80E-05 & 8.00E-05 & 7.00E-06 & 1.40E-05 \\ 404 | 3 & 4.00E-06 & 8.10E-05 & 8.80E-05 & 2.00E-05 \\ 405 | 4 & 8.50E-05 & 8.70E-05 & 1.90E-05 & 2.10E-05 \\ 406 | 5 & 8.60E-05 & 9.30E-05 & 2.50E-05 & 2.00E-06 \\ 407 | 6 & 1.70E-05 & 2.40E-05 & 7.60E-05 & 8.30E-05 \\ 408 | 7 & 2.30E-05 & 5.00E-06 & 8.20E-05 & 8.90E-05 \\ 409 | 8 & 7.90E-05 & 6.00E-06 & 1.30E-05 & 9.50E-05 \\ 410 | 9 & 1.00E-05 & 1.20E-05 & 9.40E-05 & 9.60E-05 \\ 411 | \Xhline{2\arrayrulewidth} 412 | \end{tabularx} 413 | \end{table} 414 | 415 | \end{frame} 416 | 417 | %------------------------------------------------ 418 | 419 | \section{插图环境} 420 | 421 | \begin{frame} 422 | \frametitle{插图环境} 423 | 424 | Uncomment the code on this slide to include your own image from the same directory as the template .TeX file. 425 | \begin{figure}[htp!] 426 | \centering 427 | \includegraphics[width=0.5\linewidth]{image1} 428 | \caption{Caption of Figure 1.} \label{fig:A} 429 | \end{figure} 430 | \end{frame} 431 | 432 | %------------------------------------------------ 433 | 434 | \begin{frame} 435 | \frametitle{两图并排} 436 | \begin{figure}[htb] 437 | \centering 438 | \begin{minipage}{0.48\linewidth} 439 | \centering 440 | \includegraphics[width=\linewidth]{image1} 441 | \caption{Caption of Figure 1.} 442 | \end{minipage}\hfill 443 | \begin{minipage}{0.48\linewidth} 444 | \centering 445 | \includegraphics[width=\linewidth]{image2} 446 | \caption{Caption of Figure 2.} 447 | \end{minipage} 448 | \end{figure} 449 | \end{frame} 450 | 451 | %------------------------------------------------ 452 | \section{参考文献} 453 | %------------------------------------------------ 454 | 455 | \begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide 456 | \frametitle{Citation} 457 | An example of the \verb|\cite| command to cite within the presentation:\\~ 458 | 459 | This statement requires citation \cite{Smith2012}. \\~ 460 | 461 | 文献引用示例 \cite{LiLiu1997}, 可以修改引用文献样式. 462 | \end{frame} 463 | 464 | %------------------------------------------------ 465 | 466 | \begin{frame} 467 | \frametitle{References} 468 | \footnotesize{ 469 | \begin{thebibliography}{99} % Beamer does not support BibTeX so references must be inserted manually as below 470 | \bibitem[Smith, 2012]{Smith2012} John Smith, Title of the publication, \emph{Journal Name}, 12(3):45--678, 2012. 471 | \bibitem[李荣华, 1997]{LiLiu1997} 李荣华, 刘播. 微分方程数值解法. 东南大学出版社, 1997. 472 | \end{thebibliography} 473 | } 474 | \end{frame} 475 | 476 | 477 | %------------------------------------------------ 478 | %\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25] 479 | %\setbeamertemplate{headline}{} 480 | \begin{frame} 481 | %\sffamily 482 | \begin{center} 483 | \HUGE \textcolor[RGB]{165,3,3}{谢\quad 谢! \\[8pt] 484 | Thank you!} 485 | \end{center} 486 | \end{frame} 487 | 488 | %---------------------------------------------------------------------------------------- 489 | 490 | \end{document} 491 | 492 | 493 | --------------------------------------------------------------------------------