Debian Codegraph @

texmf-dist/doc/latex/beamertheme-westlake/beamertheme-westlake-demo.tex

raw
1 \documentclass[handout, svgnames, aspectratio = 1610]{beamer}
2
3 \usepackage{microtype, siunitx, shortvrb}
4 \MakeShortVerb\"
5 \providecommand \pkg {\textsf}
6 \providecommand \cls {\textsf}
7 \usepackage[mono = false]{libertine}
8 \usetheme[logobg = westlake-logo.pdf, lbadge = westlake-badge-en.pdf,
9 mainbg = westlake-paint-a.png, basebg = westlake-paint-b.png]
10 {westlake}
11 \graphicspath{{./media/}}
12 \usepackage[superscript]{cite}
13 \makeatletter \renewcommand \@citess [1]{\textsuperscript{[#1]}} \makeatother
14 \DeclareRobustCommand \meta[1]
15 {\itshape \ensuremath \langle #1\/\ensuremath \rangle \upshape}
16 \ExplSyntaxOn
17 \DeclareDocumentCommand \key { s m }
18 {
19 \IfBooleanTF {#1} { \textcolor{red}{\ttfamily \bfseries #2} }
20 {
21 \group_begin: \ttfamily
22 \seq_set_from_clist:Nn \l_tmpa_seq {#2}
23 \seq_set_map:NNn \l_tmpb_seq \l_tmpa_seq
24 { \exp_not:n { \textcolor{red}{\bfseries ##1} } }
25 \seq_use:Nn \l_tmpb_seq { ,~ } \:=\:
26 \group_end:
27 }
28 }
29 \DeclareCommandCopy \val \meta
30 \ExplSyntaxOff
31
32 \title[beamerthemeWestlake]{Westlake Beamer Theme}
33 \author[Mingyu Xia]{Mingyu Xia \texttt{<%
34 \href{mailto:[email protected]}{[email protected]}>}}
35 \makeatletter
36 \date{\texorpdfstring
37 {\texttt{Released \westlake@date}}{Released \westlake@date}}
38 \makeatother
39
40 \begin{document}
41
42 \maketitle
43
44 \section{INTRODUCTION}
45
46 \begin{frame}{Theme Introduction}
47 This is the Westlake Beamer Theme.
48 Different from the basic \cls{beamer} class,
49 this theme provides
50 \begin{alertblock}{Highlights}
51 \begin{itemize}
52 \item Decorations at the bottom of the homepage;
53 \item Progress bar with percentage at the north east corner of
54 every slide and section pages;
55 \item Interfaces for modifying the logo, backgrounds, etc.
56 \end{itemize}
57 \end{alertblock}
58 {\usebeamerfont{frametitle}\usebeamercolor[fg]{frametitle}
59 The meaning of Westlake}
60 \begin{exampleblock}{A freshwater lake}
61 West Lake, also known as Xihu and by other names,
62 is a freshwater lake in Hangzhou, China.
63 Situated to the west of Hangzhou's former walled city,
64 the lake has a surface area of \qty{6.39}{\km^2} (\qty{2.47}{mi^2}),\cite{1}
65 stretching \qty{3.2}\km (\qty{2.0}{mi}) from north to south
66 and \qty{2.8}\km (\qty{1.7}{mi}) from east to west.\cite{2}
67 \end{exampleblock}
68 \begin{block}{A private research university}
69 Westlake University is a private research university in
70 Hangzhou, Zhejiang, China.
71 \end{block}
72 \end{frame}
73
74 \section{USAGE}
75
76 \begin{frame}[t, fragile]{User Interface}
77 To load this package, under the \pkg{beamer} class, write the line\par
78 \begin{quote}
79 "\usetheme["\meta{keys}"]{westlake}"
80 \end{quote}\par
81 where the supported keys are
82 \begin{itemize}
83 \item \key{themeRGB}\val{num, num, num} to config the RGB values
84 (ranges between $0$ to $1$) of the theme color
85 (Default: "{0, 70, 134}").
86 \item \key{lbadge, rbadge, logobg, mainbg, basebg}\val{file} to config the
87 graphic files for
88 \begin{itemize}
89 \item logo: appears at the right side of every slide,
90 \item lbadge/rbadge: appears at the north west/east corner of homepage
91 and section pages,
92 \item main background: appears on homepage and section pages, and
93 \item base background: appears on other pages, respectively.
94 \end{itemize}
95 \item \key{logobg.op, mainbg.op, basebg.op}\val{fp num} to config the
96 opacity of the corresponding graphic (Default: "0.1", "0.16", "0.8").
97 \end{itemize}
98 {\usebeamerfont{frametitle}\usebeamercolor[fg]{frametitle} Reference}
99 \begin{thebibliography}{9}
100 \bibitem{1}
101 Zhejiang Provincial Bureau of Surveying and Mapping. 2010-09-30.
102 \bibitem{2}
103 Overview of the West Lake. Hangzhou Chronicles.
104 Zhonghua Book Company. 1995.
105 \end{thebibliography}
106 \end{frame}
107
108 \section{Thanks for Listening! Any Questions?}
109
110 \end{document}