Debian Codegraph @

texmf-dist/doc/latex/beamertheme-mirage/beamertheme-mirage-doc.tex

raw
1 \documentclass{article}
2 \usepackage{xeCJK}
3 \usepackage[lining,tabular]{carlito}
4 \usepackage{caladea}
5 \usepackage{microtype}
6 \usepackage{titling}
7 \pretitle{\begin{center}\LARGE\bfseries}
8 \posttitle{\par\end{center}}
9 \usepackage[a4paper,columnsep=3em,margin=0.5in,footskip=2em]{geometry}
10 \usepackage{fancyvrb}
11 \usepackage{paracol}
12 \usepackage{hologo}
13 \usepackage{graphicx}
14 \usepackage{pgffor}
15 \usepackage{enumitem}
16 \setlist{leftmargin=*}
17 \usepackage[colorlinks]{hyperref}
18
19 \title{``Mirage'' Beamer Theme “蜃楼”beamer主题}
20 \author{LianTze Lim 林莲枝}
21 \date{v1.1.1: 2025-01-19\\\url{https://github.com/liantze/beamerthemeMirage}}
22
23 \begin{document}
24 \maketitle
25
26 \begin{paracol}{2}
27 \begin{abstract}
28 A beamer theme inspired by the
29 \href{https://www.instagram.com/juncenart/p/C5LuwoSrBnW/?img_index=2}{album art} of Zhou Shen's song \href{https://open.spotify.com/track/1PR9aOkY0dyRRL81YXv9a4}{\emph{Mirage}},
30 the lead single from his album \href{https://open.spotify.com/album/6IcyslRZfwWzpdhnFML6cd}{\emph{Shenself}}.
31 \end{abstract}
32
33 \switchcolumn
34
35 \renewcommand*{\abstractname}{摘要}
36 \begin{abstract}
37 基于周深《\href{https://y.qq.com/n/ryqq/albumDetail/003szpvI3LMhQ7}{反深}\href{https://music.163.com/\#/album?id=190605791}{代词}》专辑的先行曲\href{http://xhslink.com/a/oF7IHZ0uUYkY}{《蜃楼》歌曲封面},二创的beamer主题。
38 \end{abstract}
39 \end{paracol}
40
41 \begin{center}
42 \includegraphics[page=1,width=.495\hsize]{mirage-beamer-zh.pdf}
43 \includegraphics[page=5,width=.495\hsize]{mirage-beamer-zh.pdf}
44 \end{center}
45
46 \begin{paracol}{2}
47 \section{Basic Usage}
48
49 Two modes are available: the default has a dark look, while the
50 \texttt{light} mode may be more suitable for printouts.
51
52 \switchcolumn
53
54 \section{基本用法}
55
56 两种模式可选:默认模式颜色深沉,\texttt{light}模式颜色较浅,较适合列印。详细使用方法可参考示范 .tex 文档。
57
58 \end{paracol}
59
60 \begin{center}
61 \begin{BVerbatim}
62 \usetheme{Mirage} OR \usetheme[light]{Mirage}
63 \end{BVerbatim}
64 \end{center}
65
66
67 \begin{paracol}{2}
68 The English sample files \texttt{*-en.tex} can be compiled with \hologo{pdfLaTeX}, \hologo{XeLaTeX} or \hologo{LuaLaTeX}; but compile the Chinese sample files \texttt{*-zh.tex} with \hologo{XeLaTeX}. Compile twice to get the correct total number of frames in the footer.
69
70 \switchcolumn
71
72 英文示范文档 \texttt{*-en.tex} 可用 \hologo{pdfLaTeX}, \hologo{XeLaTeX} 或 \hologo{LuaLaTeX}
73 编译。中文示范文档 \texttt{*-zh.tex} 请用中文编译。页脚里的幻灯片帧数需多次编译才能正确显示。
74
75 \switchcolumn*
76 \setlength{\fboxsep}{0pt}
77
78 \begin{center}
79 \foreach \n in {1,...,6} {\fbox{\includegraphics[page=\n,width=.49\hsize]{mirage-beamer-zh.pdf}} }
80 \end{center}
81
82 \switchcolumn
83
84 \begin{center}
85 \foreach \n in {1,...,6} {\fbox{\includegraphics[page=\n,width=.49\hsize]{mirage-beamer-en.pdf}} }
86 \end{center}
87
88 \switchcolumn*
89
90
91 \section{Posters}
92
93 With some modificatons, the Mirage theme can be used for creating posters the \texttt{beamerposter} package. See sample files \texttt{mirage-poster-en.tex} and \texttt{mirage-poster-zh.tex} for examples.
94
95 \switchcolumn
96
97 \section{海报}
98
99 “蜃楼”主题也可以和\texttt{beamerposter}搭配使用制作海报(一些设置需些许修改),请参照\texttt{mirage-poster-zh.tex}及\texttt{mirage-poster-en.tex}.
100
101 \switchcolumn*
102
103 \begin{center}
104 \fbox{\includegraphics[width=.8\hsize]{mirage-poster-en.pdf}}
105 \end{center}
106
107 \switchcolumn
108
109 \begin{center}
110 \fbox{\includegraphics[width=.8\hsize]{mirage-poster-zh.pdf}}
111 \end{center}
112
113 \switchcolumn*
114
115 \section{Some simple customisationoptions}
116
117 \begin{itemize}
118 \item The Mirage theme itself doesn't set any body fonts, so you can load your own preferred fonts in your \texttt{.tex} files.
119
120 \item The sample \texttt{.tex} files load the font packages \texttt{caladea}, \texttt{carlito}, \texttt{newtxsf} for the English (\hologo{pdfLaTeX}) samples, and \texttt{Fira Math} for the Chinese (\hologo{XeLaTeX}) samples. You can change these as you like.
121
122 \item \texttt{pullquote} used in frame 4 is a custom environment. You can change its beamer font and color, or re-define the \verb|\MiragePullquoteOpen| marker (see frame 4).
123
124 \item Other markers that can be \verb|\renewcommand|:
125 \begin{itemize}[nosep]
126 \item \verb|\MirageFrametitlePrefix|
127 \item \verb|\MirageProofPrefix|
128 \item \verb|\MirageTheoremPrefix|
129 \end{itemize}
130 for prefix icons of the frame title, \texttt{proof} block title and \texttt{theorem}-like block titles. (See commented code before frame 5.)
131
132 \item The Mirage theme loads \texttt{fontawesome5}, so you can use
133 icons provided by this package.
134
135 \item \verb|\MirageGlowRadius| is a length controlling the size of the glowy circle in the footline; especially useful when creating posters with \texttt{beamerposter}.
136 \end{itemize}
137
138 \switchcolumn
139
140 \section{一些可调整的元素}
141 \begin{itemize}
142 \item “蜃楼”本身并没有设置任何字体,用户可以自行在\texttt{.tex}导言曲加载自己喜欢的宏包或设置字体。
143
144 \item 示范的 \texttt{.tex} 档案导言区加载了\texttt{caladea}、\texttt{carlito}、 \texttt{newtxsf} (仅限英文\hologo{pdfLaTeX}示范文档) 、\texttt{Fira Math} (仅限中文\hologo{XeLaTeX}示范文档)。这些都是可以自行更换的!
145
146 \item 第4帧幻灯片里用的\texttt{pullquote}环境是“蜃楼”主题自定义的。它的beamer font、color都是可以更换的, 也可重新定义前缀装饰 \verb|\MiragePullquoteOpen| marker(详见第4帧幻灯片示范代码)。
147
148 \item 其它可以 \verb|\renewcommand|的装饰:
149 \begin{itemize}[nosep]
150 \item \verb|\MirageFrametitlePrefix|
151 \item \verb|\MirageProofPrefix|
152 \item \verb|\MirageTheoremPrefix|
153 \end{itemize}
154 这些是frame title、\texttt{proof} block title 以及\texttt{theorem}之类block titles的前缀装饰。(详见第5帧幻灯片之前的注释)
155
156 \item “蜃楼”主题已加载\texttt{fontawesome5}宏包,可以尽情使用此宏包提供的符号。
157
158 \item \verb|\MirageGlowRadius| 是用来控制页脚的小光球半径的length;制作海报时可以酌量加大。
159 \end{itemize}
160
161 \end{paracol}
162
163 \section{Revision History}
164 \begin{description}
165 \item[v1.0 (2024/04/14)] Initial commit.
166 \item[v1.01 (2024/09/18)] Adds beamerposter example and some updates for some easier customisations.
167 \item[v1.1 (2024/10/24)] Reorganises sample .tex files and documentations; submitted to CTAN.
168 \item[v1.1.1 (2025/01/19)] Bug fix: added missing second argument to \verb|\addtobeamertemplate{frametitle}|.
169 \end{description}
170 \end{document}