<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% \iffalse meta-comment
% !TeX program  = XeLaTeX
% !TeX encoding = UTF-8
%
% Copyright (C) 2019--2021 by Jingxuan Yang &lt;yanglatex2e@gmail.com&gt;
%
% This file may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
% of this license or (at your option) any later version.
% The latest version of this license is in:
%
% http://www.latex-project.org/lppl.txt
%
% and version 1.3c or later is part of all distributions of LaTeX
% version 2008/05/04 or later.

%&lt;*internal&gt;
\def\nameofplainTeX{plain}
\ifx\fmtname\nameofplainTeX\else
  \expandafter\begingroup
\fi
%&lt;/internal&gt;
%&lt;*install&gt;

\input docstrip
\keepsilent
\askforoverwritefalse
\preamble

This is a generated file.

Copyright (C) 2019--\the\year by Jingxuan Yang &lt;yanglatex2e@gmail.com&gt;

This file may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3c
of this license or (at your option) any later version.
The latest version of this license is in:

http://www.latex-project.org/lppl.txt

and version 1.3c or later is part of all distributions of LaTeX
version 2008/05/04 or later.

To produce the documentation run the original source files ending with `.dtx'
through LaTeX.

\endpreamble
\postamble

This package consists of the file  thubeamer.dtx,
             and the derived files thubeamer.pdf,
                                   beamerthemethubeamer.sty,
                                   beamercolorthemethubeamer.sty,
                                   beamerinnerthemethubeamer.sty,
                                   beamerouterthemethubeamer.sty.

\endpostamble

\usedir{tex/latex/thubeamer}
\generate
  {
    \file{dtx-style.sty}{\from{\jobname.dtx}{dtx-style}}
  \file{beamerthemethubeamer.sty}{\from{\jobname.dtx}{thubeamer}}
	\file{beamercolorthemethubeamer.sty}{\from{\jobname.dtx}{thucolorstyle}}
	\file{beamerinnerthemethubeamer.sty}{\from{\jobname.dtx}{thuinnerstyle}}
	\file{beamerouterthemethubeamer.sty}{\from{\jobname.dtx}{thuouterstyle}}
  }

\Msg{***********************************************************}
\Msg{*}
\Msg{* To finish the installation you have to move the following}
\Msg{* files into a directory searched by TeX:}
\Msg{*}
\Msg{* The recommended directory is TEXMF/tex/latex/thubeamer}
\Msg{*}
\Msg{* \space\space dtx-style.sty}
\Msg{* \space\space beamerthemethubeamer.sty}
\Msg{* \space\space beamercolorthemethubeamer.sty}
\Msg{* \space\space beamerinnerthemethubeamer.sty}
\Msg{* \space\space beamerouterthemethubeamer.sty}
\Msg{*}
\Msg{* To produce the documentation run the files ending with}
\Msg{* `.dtx' through LaTeX.}
\Msg{*}
\Msg{* Happy TeXing!}
\Msg{***********************************************************}

%&lt;/install&gt;
%&lt;install&gt;\endbatchfile
%&lt;*internal&gt;

\usedir{tex/latex/thubeamer}
\generate
  {
	\file{\jobname.ins}{\from{\jobname.dtx}{install}}
  }
\nopreamble\nopostamble

\ifx\fmtname\nameofplainTeX
  \expandafter\endbatchfile
\else
  \expandafter\endgroup
\fi
%&lt;/internal&gt;
%
%&lt;thubeamer|thucolorstyle|thuinnerstyle|thuouterstyle&gt;\NeedsTeXFormat{LaTeX2e}
%&lt;thubeamer&gt;\ProvidesPackage{beamerthemethubeamer}
%&lt;thucolorstyle&gt;\ProvidesPackage{beamercolorthemethubeamer}
%&lt;thuinnerstyle&gt;\ProvidesPackage{beamerinnerthemethubeamer}
%&lt;thuouterstyle&gt;\ProvidesPackage{beamerouterthemethubeamer}
%&lt;thubeamer|thucolorstyle|thuinnerstyle|thuouterstyle&gt;[2021/11/15 v1.1.0 A Beamer Theme for Tsinghua University (THU)]
%
%&lt;*driver&gt;
\ProvidesFile{thubeamer.dtx}[2021/11/15 v1.1.0 A Beamer Theme for Tsinghua University (THU)]
\documentclass{ltxdoc}
\usepackage{dtx-style}

\EnableCrossrefs
\CodelineIndex
\RecordChanges

\begin{document}
  \DocInput{\jobname.dtx}
\end{document}
%&lt;/driver&gt;
%
% \fi
%
% \CheckSum{0}
% \CharacterTable
%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%   Digits        \0\1\2\3\4\5\6\7\8\9
%   Exclamation   \!     Double quote  \"     Hash (number) \#
%   Dollar        \$     Percent       \%     Ampersand     \&amp;
%   Acute accent  \'     Left paren    \(     Right paren   \)
%   Asterisk      \*     Plus          \+     Comma         \,
%   Minus         \-     Point         \.     Solidus       \/
%   Colon         \:     Semicolon     \;     Less than     \&lt;
%   Equals        \=     Greater than  \&gt;     Question mark \?
%   Commercial at \@     Left bracket  \[     Backslash     \\
%   Right bracket \]     Circumflex    \^     Underscore    \_
%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%   Right brace   \}     Tilde         \~}
%
% \GetFileInfo{\jobname.dtx}
%
% \changes{v1.0.0}{2021/07/07}{Initially design thubeamer}
%
% \DoNotIndex{\begin,\end,\begingroup,\endgroup}
% \DoNotIndex{\ifx,\ifdim,\ifnum,\ifcase,\else,\or,\fi,\-}
% \DoNotIndex{\let,\def,\xdef,\newcommand,\renewcommand}
% \DoNotIndex{\expandafter,\csname,\endcsname,\relax,\protect}
% \DoNotIndex{\Huge,\huge,\LARGE,\Large,\large,\normalsize}
% \DoNotIndex{\small,\footnotesize,\scriptsize,\tiny}
% \DoNotIndex{\normalfont,\bfseries,\slshape,\interlinepenalty}
% \DoNotIndex{\hfil,\par,\hskip,\vskip,\vspace,\quad}
% \DoNotIndex{\centering,\raggedright}
% \DoNotIndex{\c@secnumdepth,\@startsection,\@setfontsize}
% \DoNotIndex{\ ,\@plus,\@minus,\p@,\z@,\@m,\@M,\@ne,\m@ne}
% \DoNotIndex{\@@par,\DeclareOperation,\RequirePackage,\LoadClass}
% \DoNotIndex{\AtBeginDocument,\AtEndDocument}
%
% \IndexPrologue{\section*{ç´¢~~~~å¼•}}
% \GlossaryPrologue{\section*{ä¿®æ”¹è®°å½•}}
%
% \definecolor{beamer@headercolor}{RGB}{129,48,140}
% \title{\bfseries\color{beamer@headercolor}\thubeamerï¼šæ¸…åŽå¤§å­¦é£Žæ&nbsp;¼\\ Beamerä¸»é¢˜}
% \author{{\Large\fangsong æ¨æ•¬è½©}\\[5pt]\texttt{yanglatex2e@gmail.com}\\[5pt]\texttt{yangjx20@mails.tsinghua.edu.cn}}
% \date{\fileversion\ (\filedate)}
%
% \maketitle\thispagestyle{empty}
%
% \vskip 0.5cm
%
% \def\abstractname{\Large æ‘˜\quad è¦}
% \begin{abstract}\normalsize\vskip0.5cm
% \thubeamer~ä¸»é¢˜ä¸ºä½œè€…åœ¨å‡†å¤‡è¯¾ç¨‹å±•ç¤ºæ—¶è®¾è®¡åˆ¶ä½œï¼Œ
% æ—¨åœ¨å¸®åŠ©æ¸…åŽå¤§å­¦å¸ˆç”Ÿè¿›è¡Œå­¦æœ¯äº¤æµæˆ–å…¶ä»–éœ€è¦æ¼”ç¤ºæ–‡ç¨¿æ´»åŠ¨æ—¶ï¼Œæ–¹ä¾¿çš„ä½¿ç”¨ \LaTeX{} åˆ¶ä½œå«æœ‰å­¦æ&nbsp;¡ç‰¹è‰²çš„æ¼”ç¤ºæ–‡ç¨¿ã€‚
% \end{abstract}
%
% \vspace*{2em}
% \def\abstractname{\Large å…è´£å£°æ˜Ž}
% \begin{abstract}
% \noindent\normalsize
%  \begin{enumerate}
% \item æœ¬æ¨¡æ¿çš„å‘å¸ƒéµå®ˆ \href{http://www.latex-project.org/lppl.txt}{\LaTeX\ Project Public License 1.3c} ä»¥åŠå…¶åŽçš„æœ€æ–°ç‰ˆæœ¬ï¼Œä½¿ç”¨å‰è¯·è®¤çœŸé˜…è¯»åè®®å†…
%   å®¹ã€‚
%  \item æœ¬ä¸»é¢˜ä¸ºä½œè€…ä¸ªäººåˆ¶ä½œï¼Œä½¿ç”¨ä»…ä¾›å‚è€ƒï¼Œä»»ä½•ç”±äºŽä½¿ç”¨æœ¬ä¸»é¢˜è€Œå¼•èµ·çš„ä»»ä½•é—®é¢˜å‡ä¸Žæœ¬ä¸»é¢˜ä½œè€…æ—&nbsp;å…³ã€‚
%  \item ä»»ä½•ä¸ªäººæˆ–ç»„ç»‡ä»¥æœ¬æ¨¡æ¿ä¸ºåŸºç¡€è¿›è¡Œä¿®æ”¹ã€æ‰©å±•è€Œç”Ÿæˆçš„æ–°çš„ä¸“ç”¨æ¨¡æ¿ï¼Œè¯·ä¸¥æ&nbsp;¼éµ
%   å®ˆ \href{http://www.latex-project.org/lppl.txt}{\LaTeX\ Project Public License 1.3c} åè®®ä»¥åŠå…¶åŽçš„æœ€æ–°ç‰ˆæœ¬ã€‚ç”±äºŽè¿çŠ¯åè®®è€Œå¼•èµ·çš„ä»»ä½•çº&nbsp;çº·äº‰ç«¯å‡ä¸Ž
%   æœ¬æ¨¡æ¿ä½œè€…æ—&nbsp;å…³ã€‚
%  \end{enumerate}
% \end{abstract}
%
%
% \clearpage
% \pagestyle{fancy}
% \begin{multicols}{2}[
%   \setlength{\columnseprule}{.4pt}
%   \setlength{\columnsep}{18pt}]
%   \tableofcontents
% \end{multicols}
% \clearpage
%
% \section{æ¨¡æ¿ä»‹ç»}
% \thubeamer\ (\textbf{T}sing\textbf{H}ua \textbf{U}niversity \LaTeX{}
% \textbf{Beamer} Template) æ˜¯ä¸ºäº†å¸®åŠ©æ¸…åŽå¤§å­¦å¸ˆç”Ÿæ’°å†™æ¼”ç¤ºæ–‡ç¨¿è€Œç¼–å†™çš„ \LaTeX{} Beamer æ¨¡æ¿ã€‚
%
% æœ¬æ–‡æ¡£å°†å°½é‡å®Œæ•´çš„ä»‹ç»æ¨¡æ¿çš„ä½¿ç”¨æ–¹æ³•ï¼Œå¦‚æœ‰ä¸æ¸…æ¥šä¹‹å¤„å¯ä»¥å‚è€ƒç¤ºä¾‹æ–‡æ¡£æˆ–è€…æ&nbsp;¹æ®
% ç¬¬~\ref{sec:howtoask} èŠ‚è¯´æ˜Žæé—®ï¼Œæœ‰å…´è¶£è€…å¯ä»¥è”ç³»ä½œè€…å‚ä¸Žå®Œå–„æ­¤æ‰‹å†Œï¼Œéžå¸¸æ¬¢è¿Žä½&nbsp;æ¸…å­¦å­å¯¹æœ¬ä»£ç&nbsp;ä½œå‡ºè´¡çŒ®ã€‚
%
% \section{å®‰è£…}
% \label{sec:installation}
%
% \thubeamer\ å·²ç»ä¸Šä¼&nbsp; CTANï¼Œå·²åŒ…å«åœ¨ TeXLive ä¸Ž MiKTeX å‘è¡Œç‰ˆä¸­ã€‚
% å®‰è£…æ–¹æ³•ï¼šæ‰“å¼€å‘½ä»¤è¡Œï¼Œè¾“å…¥ä»¥ä¸‹å‘½ä»¤å³å¯
% \begin{shell}
% $ tlmgr install thubeamer
% \end{shell}
% é˜…è¯»æœ¬è¯´æ˜Žæ–‡æ¡£å¯ä»¥ä½¿ç”¨ä»¥ä¸‹å‘½ä»¤ï¼š
% \begin{shell}
% $ texdoc thubeamer
% \end{shell}
%
% å¦‚æžœè¦ä½¿ç”¨å¼€å‘ç‰ˆï¼Œéœ€è‡ªå·±ä¸‹è½½ï¼Œ\thubeamer\ ç›¸å…³é“¾æŽ¥ï¼š
% \begin{itemize}
% \item ä¸»é¡µï¼š\href{https://github.com/YangLaTeX/thubeamer}{GitHub}
% \item ä¸‹è½½ï¼š\href{http://www.ctan.org/pkg/thubeamer}{CTAN}
% \end{itemize}
%
% \subsection{æ¨¡æ¿çš„ç»„æˆ}
% ä¸‹è¡¨åˆ—å‡ºäº† \thubeamer{} çš„ä¸»è¦æ–‡ä»¶åŠå…¶åŠŸèƒ½ä»‹ç»ï¼š
%
% \begin{longtable}{l|p{8cm}}
% \toprule
% {\heiti æ–‡ä»¶ï¼ˆå¤¹ï¼‰} &amp; {\heiti åŠŸèƒ½æè¿°}\\\midrule
% \endfirsthead
% \midrule
% {\heiti æ–‡ä»¶ï¼ˆå¤¹ï¼‰} &amp; {\heiti åŠŸèƒ½æè¿°}\\\midrule
% \endhead
% \endfoot
% \endlastfoot
% thubeamer.dtx &amp; ä¸»é¢˜å®åŒ…ã€è¯´æ˜Žæ–‡æ¡£ä»¥åŠä¸»é¢˜é©±åŠ¨æ–‡ä»¶çš„æ··æŽ’æ–‡ä»¶\\
% main.tex &amp; ä¸»é¢˜æµ‹è¯•æ–‡æ¡£\\
% figures/ &amp; ä¸»é¢˜ç›¸å…³çŸ¢é‡å›¾å­˜å‚¨æ–‡ä»¶å¤¹\\
% makedoc.bat &amp; ç”Ÿæˆä¸»é¢˜ä¸Žç”¨æˆ·æ‰‹å†Œè„šæœ¬\\
% makebeamer.bat &amp; ç¼–è¯‘æµ‹è¯•æ&nbsp;·ä¾‹è„šæœ¬\\
% makeclean.bat &amp; æ¸…ç†ç¼–è¯‘è¿‡ç¨‹ä¸­é—´æ–‡ä»¶è„šæœ¬\\
% makecleanall.bat &amp; æ¸…ç†ç¼–è¯‘è¿‡ç¨‹ä¸­é—´æ–‡ä»¶ä¸Žæ&nbsp;·å¼æ–‡ä»¶è„šæœ¬\\
% Makefile &amp; Linux \&amp; Mac OSè„šæœ¬\\
% \textbf{thubeamer.pdf} &amp; ç”¨æˆ·æ‰‹å†Œï¼ˆæœ¬æ–‡æ¡£ï¼‰\\
% \bottomrule
% \end{longtable}
% \textbf{æ³¨ï¼š}ä½¿ç”¨å‰ï¼Œè¯·ä»”ç»†é˜…è¯»\textbf{thubeamer.pdf}ï¼Œå³æœ¬æ–‡æ¡£ã€‚
%
% \section{ä½¿ç”¨è¯´æ˜Ž}
% \label{sec:usage}
% æœ¬æ‰‹å†Œå‡å®šç”¨æˆ·å·²ç»èƒ½å¤„ç†ä¸€èˆ¬çš„ \LaTeX\ æ–‡æ¡£ï¼Œå¹¶å¯¹ \BibTeX\ æœ‰ä¸€å®šäº†è§£ã€‚å¦‚æžœ
% ä»Žæ¥æ²¡æœ‰æŽ¥è§¦è¿‡ \TeX\ å’Œ \LaTeXï¼Œå»ºè®®å…ˆå­¦ä¹&nbsp;ç›¸å…³çš„åŸºç¡€çŸ¥è¯†ã€‚
%
% \subsection{å…³äºŽæé—®}
% \label{sec:howtoask}
% æŒ‰ç…§ä¼˜å…ˆçº§æŽ¨èæé—®çš„ä½ç½®å¦‚ä¸‹ï¼š
%
% \begin{itemize}
% \item Github Issues: \href{http://github.com/YangLaTeX/thubeamer/issues}{http://github.com/YangLaTeX/thubeamer/issues}
% \item Email: \href{mailto:yanglatex2e@gmail.com}{yanglatex2e@gmail.com}, \href{mailto:yangjx20@mails.tsinghua.edu.cn}{yangjx20@mails.tsinghua.edu.cn}
% \end{itemize}
%
% \subsection{ç¤ºä¾‹æ–‡ä»¶}
% \label{sec:userguide}
% æ¨¡æ¿æ&nbsp;¸å¿ƒæ–‡ä»¶æœ‰å››ä¸ª\file{*.sty}ï¼Œä½†æ˜¯å¦‚æžœ
% æ²¡æœ‰ç¤ºä¾‹æ–‡æ¡£ç”¨æˆ·ä¼šå‘çŽ°å¾ˆéš¾ä¸‹æ‰‹ã€‚æ‰€ä»¥æŽ¨èæ–°ç”¨æˆ·ä»Žæ¨¡æ¿è‡ªå¸¦çš„ç¤ºä¾‹æ–‡æ¡£å…¥æ‰‹ï¼Œé‡Œé¢åŒ…
% æ‹¬äº†Beamerå†™ä½œç”¨åˆ°çš„æ‰€æœ‰å‘½ä»¤åŠå…¶ä½¿ç”¨æ–¹æ³•ï¼Œåªéœ€è¦ç”¨è‡ªå·±çš„å†…å®¹è¿›è¡Œç›¸åº”æ›¿æ¢å°±å¯ä»¥ã€‚
% å¯¹äºŽä¸æ¸…æ¥šçš„å‘½ä»¤å¯ä»¥æŸ¥é˜…æœ¬æ‰‹å†Œã€‚ä¸‹é¢çš„ä¾‹å­æè¿°äº†æ¨¡æ¿ä¸­ç«&nbsp;èŠ‚çš„ç»„ç»‡å½¢å¼ï¼Œæ¥è‡ªäºŽç¤º
% ä¾‹æ–‡æ¡£ï¼Œå…·ä½“å†…å®¹å¯ä»¥å‚è€ƒæ¨¡æ¿é™„å¸¦çš„ \file{main.tex}ã€‚
%
% \lstinputlisting[style=lstStyleLaTeX]{main.tex}
%
% \subsection{è®ºæ–‡é€‰é¡¹}
% \label{sec:option}
%
% è®ºæ–‡é€‰é¡¹åœ¨\file{main.tex} æ–‡ä»¶çš„å¼€å¤´æè¿°ï¼Œæ­¤å¤„ä¸èµ˜è¿°ã€‚
%
% \section{ä½¿ç”¨æ¨¡æ¿}
% \subsection{å¦‚ä½•ç¼–è¯‘}\label{SubSec:HowToMake}
% \subsubsection{Windowsç”¨æˆ·}
% ä¸»é¢˜é¡¹ç›®é‡Œå·²ç»åˆ—å‡ºäº†è„šæœ¬ï¼š
% é¦–å…ˆåŒå‡»\file{makedoc.bat} è„šæœ¬ï¼Œç”Ÿæˆä¸»é¢˜å’Œç”¨æˆ·æ‰‹å†Œï¼›
% ç„¶åŽåŒå‡»\file{makebeamer.bat} è„šæœ¬ç”Ÿæˆæµ‹è¯• Beamer æ–‡ä»¶é¢„è§ˆï¼›
% æœ€åŽåŒå‡»\file{makeclean.bat} æ¸…ç†ç¼–è¯‘è¿‡ç¨‹çš„ä¸­é—´æ–‡ä»¶ï¼›
% åŒå‡»\file{makecleanall.bat}å¯ä»¥æ¸…é™¤è¾…åŠ©æ–‡ä»¶ä»¥åŠæ&nbsp;·å¼æ–‡ä»¶ã€‚
%
% \subsubsection{Linux \&amp; Mac OSç”¨æˆ·}
% é¦–å…ˆè¿è¡Œä¸‹é¢å‘½ä»¤ç”Ÿæˆä¸»é¢˜å’Œç”¨æˆ·æ‰‹å†Œï¼›
% \begin{shell}
% $ make doc
% \end{shell}
%
% ç„¶åŽè¿è¡Œä¸‹é¢å‘½ä»¤ç”Ÿæˆæµ‹è¯• Beamer æ–‡ä»¶é¢„è§ˆï¼›
% \begin{shell}
% $ make beamer
% \end{shell}
%
% æœ€åŽè¿è¡Œä¸‹é¢å‘½ä»¤æ¸…ç†ç¼–è¯‘è¿‡ç¨‹çš„ä¸­é—´æ–‡ä»¶ã€‚
% \begin{shell}
% $ make clean
% \end{shell}
%
% è‹¥è¿è¡Œä¸‹é¢å‘½ä»¤åˆ™æ¸…ç†ç¼–è¯‘è¿‡ç¨‹çš„ä¸­é—´æ–‡ä»¶ä»¥åŠæ‰€æœ‰æ&nbsp;·å¼æ–‡ä»¶ã€‚
% \begin{shell}
% $ make cleanall
% \end{shell}
%
% \section{è‡´è°¢}
% \label{sec:thanks}
% æ„Ÿè°¢ \href{https://github.com/StickCui/XDUstyle-Beamer-Theme}{XDUstyle}ã€\href{https://github.com/tl3shi/THUBeamer}{thubeamer} æ¨¡æ¿çš„ä½œè€…ï¼Œæœ¬æ¨¡æ¿åŸºäºŽä»–ä»¬æ”¹ç¼–è€Œæ¥ï¼
%
% æ¬¢è¿Žå„ä½åˆ° \href{http://github.com/YangLaTeX/thubeamer/}{\thubeamer\ Github ä¸»é¡µ}è´¡çŒ®ï¼
%
% \StopEventually{\PrintChanges\PrintIndex}
% \clearpage
%
% \section{å®žçŽ°ç»†èŠ‚}
%
% \subsection{ä¸»é¢˜ä¸»æ–‡ä»¶éƒ¨åˆ†}
% å¯¼å…¥å¿…è¦å®åŒ…
%    \begin{macrocode}
%&lt;*thubeamer&gt;
\def\thubeamer{\textsc{thu}\-\textsc{Beamer}}
\RequirePackage{tikz}
\usetikzlibrary{external}
\RequirePackage{pgf}
\RequirePackage{multicol}
\RequirePackage{multimedia}
\RequirePackage{calc}
\RequirePackage{amsmath}
\RequirePackage{amsthm}
\RequirePackage{amssymb}
\RequirePackage{bm}
\RequirePackage{graphicx}
\RequirePackage{tabularx}
\RequirePackage{booktabs}
\RequirePackage{multirow}
\RequirePackage{enumerate}
\RequirePackage{hyperref}
\RequirePackage{algorithm}
\RequirePackage{algorithmic}
\RequirePackage[T1]{fontenc}
\RequirePackage{latexsym,xcolor,multicol,calligra}
\RequirePackage{pstricks,listings,stackengine}
\RequirePackage[sort&amp;compress,numbers]{natbib}
%    \end{macrocode}
%
% ä¸»é¢˜é€‰é¡¹
%    \begin{macrocode}
\DeclareOptionBeamer{thupurple}{
  \PassOptionsToPackage{thupurple}{beamercolorthemethubeamer}
  \PassOptionsToPackage{thupurple}{beamerinnerthemethubeamer}
  \PassOptionsToPackage{thupurple}{beamerouterthemethubeamer}
}
\DeclareOptionBeamer{thupurple2}{
  \PassOptionsToPackage{thupurple2}{beamercolorthemethubeamer}
  \PassOptionsToPackage{thupurple2}{beamerinnerthemethubeamer}
  \PassOptionsToPackage{thupurple2}{beamerouterthemethubeamer}
}
\DeclareOptionBeamer{smoothbars}{
  \PassOptionsToPackage{smoothbars}{beamercolorthemethubeamer}
  \PassOptionsToPackage{smoothbars}{beamerouterthemethubeamer}
}
\DeclareOptionBeamer{sidebar}{
  \PassOptionsToPackage{sidebar}{beamercolorthemethubeamer}
  \PassOptionsToPackage{sidebar}{beamerouterthemethubeamer}
}
\DeclareOptionBeamer{sectiontoc}{
  \PassOptionsToPackage{sectiontoc}{beamerinnerthemethubeamer}
}
\DeclareOptionBeamer{subsectiontoc}{
  \PassOptionsToPackage{subsectiontoc}{beamerinnerthemethubeamer}
}
\DeclareOptionBeamer{en}{
  \PassOptionsToPackage{en}{beamerinnerthemethubeamer}
}
\ProcessOptionsBeamer
%    \end{macrocode}
%
% ç‰¹æ®Šè®¾ç½®
%    \begin{macrocode}
\mode&lt;presentation&gt;
{
  \useinnertheme{thubeamer}
  \useoutertheme{thubeamer}
  \usecolortheme{thubeamer}
}

\mode&lt;all&gt;
%&lt;/thubeamer&gt;
%    \end{macrocode}
% \subsection{ä¸»é¢˜é…è‰²æ–‡ä»¶éƒ¨åˆ†}
%
% å‚æ•°è®¾ç½®
%    \begin{macrocode}
%&lt;*thucolorstyle&gt;
\DeclareOptionBeamer{thupurple}{\def\beamer@thucolor{thupurple}}
\DeclareOptionBeamer{thupurple2}{\def\beamer@thucolor{thupurple2}}
\DeclareOptionBeamer{smoothbars}{\def\beamer@thubar{smoothbars}}
\DeclareOptionBeamer{sidebar}{\def\beamer@thubar{sidebar}}
\ProcessOptionsBeamer

\def\beamer@thucolorpurple{thupurple}
\def\beamer@thusidebar{sidebar}
%    \end{macrocode}
%
% é¢œè‰²è®¾ç½®ã€‚
%    \begin{macrocode}
\mode&lt;presentation&gt;

\ifx\beamer@thucolor\beamer@thucolorpurple
  \definecolor{beamer@textcolor}{RGB}{119,33,151}
  \definecolor{beamer@headercolor}{RGB}{129,48,140} % purple
  \ifx\beamer@thubar\beamer@thusidebar
    \definecolor{beamer@sidebarcolor}{RGB}{129,48,140}
  \else
    \definecolor{beamer@sidebarcolor}{RGB}{129,48,140}
  \fi
\else
  \definecolor{beamer@textcolor}{RGB}{119,33,151}
  \definecolor{beamer@headercolor}{RGB}{129,48,140}
  \ifx\beamer@thubar\beamer@thusidebar
    \definecolor{beamer@sidebarcolor}{RGB}{129,48,140}
  \else
    \definecolor{beamer@sidebarcolor}{RGB}{129,48,140}
  \fi
\fi

% \setbeamercolor{footline}{bg=beamer@headercolor}
\setbeamercolor{title}{fg=white,bg=beamer@headercolor}
\ifx\beamer@thubar\beamer@thusidebar
  \setbeamercolor{frametitle}{fg=beamer@headercolor,bg=beamer@headercolor!10}
\else
  \setbeamercolor{frametitle}{fg=white,bg=beamer@headercolor}
\fi
\setbeamerfont{frametitle}{size=\large}

\setbeamercolor{secondbottomline}{fg=white,bg=beamer@headercolor!50!black}
\setbeamercolor{firstbottomline}{fg=white,bg=beamer@headercolor}

\setbeamercolor{palette primary}{use=structure,fg=white,bg=structure.fg}
\setbeamercolor{palette secondary}{use=structure,fg=white,bg=structure.fg!75!black}
\setbeamercolor{palette tertiary}{use=structure,fg=white,bg=structure.fg!50!black}
\setbeamercolor{palette quaternary}{fg=white,bg=structure.fg!50!black}

\setbeamercolor{block title}{fg=white,bg=beamer@headercolor}
\setbeamercolor{block body}{bg=beamer@headercolor!10}
\setbeamercolor{block title example}{%
  use={normal text,example text},fg=white,bg=example text.fg!75!green
}
\setbeamercolor{fine separation line}{}
\setbeamercolor{item projected}{fg=white}

\setbeamercolor{palette sidebar primary}{use=normal text,fg=normal text.fg}
\setbeamercolor{palette sidebar secondary}{use=structure,fg=structure.fg}
\setbeamercolor{palette sidebar tertiary}{use=normal text,fg=normal text.fg}
\setbeamercolor{palette sidebar quaternary}{use=structure,fg=structure.fg}

\setbeamercolor{section in sidebar}{fg=beamer@textcolor}
\setbeamercolor{section in sidebar shaded}{fg=gray}
\setbeamercolor{separation line}{}
\ifx\beamer@thubar\beamer@thusidebar
  \setbeamercolor{sidebar}{bg=beamer@sidebarcolor!10}
\else
  \setbeamercolor{sidebar}{bg=beamer@sidebarcolor}
\fi
\setbeamercolor{sidebar}{parent=palette primary}
\setbeamercolor{structure}{fg=beamer@headercolor}
\setbeamercolor{subsection in sidebar}{fg=beamer@textcolor}
\setbeamercolor{subsection in sidebar shaded}{fg=gray}
\setbeamercolor{logo}{bg=beamer@headercolor!20}

\mode&lt;all&gt;
%&lt;/thucolorstyle&gt;
%    \end{macrocode}
%
% \subsection{å†…éƒ¨ä¸»é¢˜æ–‡ä»¶éƒ¨åˆ†}
%
% å¿…è¦å®åŒ…
%    \begin{macrocode}
%&lt;*thuinnerstyle&gt;
\RequirePackage{tikz}
\usetikzlibrary{external}
%    \end{macrocode}
%
% å‚æ•°è®¾ç½®
% \changes{v1.1.0}{2021/11/15}{add option `en' for preparing beamer in English}
%    \begin{macrocode}
\DeclareOptionBeamer{en}{\def\beamer@thulang{english}}
\DeclareOptionBeamer{sectiontoc}{\def\beamer@thusectoc{sectiontoc}}
\DeclareOptionBeamer{subsectiontoc}{\def\beamer@thusubsectoc{subsectiontoc}}
\ProcessOptionsBeamer

\def\beamer@thulanguage{english}
\def\beamer@thusectiontoc{sectiontoc}
\def\beamer@thusubsectiontoc{subsectiontoc}
%    \end{macrocode}
%
% ç‰¹æ®Šè®¾ç½®
%    \begin{macrocode}
\mode&lt;presentation&gt;

\ifx\beamer@thulang\beamer@thulanguage
  \relax
\else
  \RequirePackage{ctex}
\fi

\useinnertheme{circles}
% \usefonttheme{structurebold}
\setbeamertemplate{caption}[numbered]{}
\useinnertheme[shadow]{rounded}

\newcommand\varparallel{%
  \mathrel{%
    \text{%
      \tikz[baseline] \draw (0em,-0.3ex) -- (.4em,1.7ex) (.2em,-0.3ex) -- (.6em,1.7ex);
    }%
  }%
}

\ifx\beamer@thusectoc\beamer@thusectiontoc
  \AtBeginSection[]{
    \begin{frame}
      \begin{multicols}{2}
        \tableofcontents[sectionstyle=show/shaded,subsectionstyle=show/shaded/hide,subsubsectionstyle=show/shaded/hide]
      \end{multicols}
    \end{frame}
  }
\fi

\ifx\beamer@thusubsectoc\beamer@thusubsectiontoc
  \AtBeginSubsection[]{
    \begin{frame}
      \begin{multicols}{2}
        \tableofcontents[sectionstyle=show/shaded,subsectionstyle=show/shaded/hide,subsubsectionstyle=show/shaded/hide]
      \end{multicols}
    \end{frame}
  }
\fi

\mode&lt;all&gt;
%&lt;/thuinnerstyle&gt;
%    \end{macrocode}
% \subsection{å¤–éƒ¨ä¸»é¢˜æ–‡ä»¶éƒ¨åˆ†}
%
%    \begin{macrocode}
%&lt;*thuouterstyle&gt;
%    \end{macrocode}
%
% å‚æ•°è®¾ç½®
%    \begin{macrocode}
\DeclareOptionBeamer{smoothbars}{\def\beamer@thubar{smoothbars}}
\DeclareOptionBeamer{sidebar}{\def\beamer@thubar{sidebar}}
\ProcessOptionsBeamer
\def\beamer@thusidebar{sidebar}

\mode&lt;presentation&gt;

% å–æ¶ˆå¯¼èˆªç¬¦å·
\setbeamertemplate{navigation symbols}{}

\ifx\beamer@thubar\beamer@thusidebar
  \useoutertheme[width=0.17\linewidth]{sidebar}
  \logo{\includegraphics[width=0.08\linewidth]{thulogo.pdf}}
\else
  \useoutertheme[footline=authorinstitutetitle,subsection=false]{smoothbars}
\fi

% set footline
\makeatletter
\newcommand{\frameofframes}{/}
\newcommand{\setframeofframes}[1]{
  \renewcommand{\frameofframes}{#1}
}
\setbeamertemplate{footline}{%
  \begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
  \end{beamercolorbox}
  \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
    leftskip=.3cm,rightskip=.3cm plus1fil]{firstbottomline}%
    \leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor}%
    \hfill%
    {\usebeamerfont{institute in head/foot}%
    \usebeamercolor[fg]{frame number}%
      \insertshortinstitute
    }%
  \end{beamercolorbox}%
  \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
    leftskip=.3cm,rightskip=.3cm plus1fil]{secondbottomline}%
    {\usebeamerfont{title in head/foot}\insertshorttitle}%
    \hfill%
    {\usebeamerfont{frame number}\usebeamercolor[fg]{frame number}\insertframenumber~\frameofframes~\inserttotalframenumber}
  \end{beamercolorbox}%
  \begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
  \end{beamercolorbox}
}
\makeatother

\mode&lt;all&gt;
%&lt;/thuouterstyle&gt;
%    \end{macrocode}
%
% \iffalse
%    \begin{macrocode}
%&lt;*dtx-style&gt;
\ProvidesPackage{dtx-style}
\RequirePackage{hypdoc}
\RequirePackage[UTF8,scheme=chinese,fontset=windowsnew]{ctex}
\RequirePackage{newpxtext}
\RequirePackage{newpxmath}
\RequirePackage[top=2.5cm, bottom=2.5cm, left=3cm, right=2cm, headsep=8mm]{geometry}
\RequirePackage{array,longtable,booktabs}
\RequirePackage{listings}
\RequirePackage{fancyhdr}
\RequirePackage{xcolor}
\RequirePackage{enumitem}
\RequirePackage{etoolbox}
\RequirePackage{metalogo}
\RequirePackage{hyperref}

\colorlet{thu@macro}{purple!60!black}
\colorlet{thu@env}{purple!70!black}
\colorlet{thu@option}{purple}
\patchcmd{\PrintMacroName}{\MacroFont}{\MacroFont\bfseries\color{thu@macro}}{}{}
\patchcmd{\PrintDescribeMacro}{\MacroFont}{\MacroFont\bfseries\color{thu@macro}}{}{}
\patchcmd{\PrintDescribeEnv}{\MacroFont}{\MacroFont\bfseries\color{thu@env}}{}{}
\patchcmd{\PrintEnvName}{\MacroFont}{\MacroFont\bfseries\color{thu@env}}{}{}

\def\DescribeOption{%
  \leavevmode\@bsphack\begingroup\MakePrivateLetters%
  \Describe@Option}
\def\Describe@Option#1{\endgroup
  \marginpar{\raggedleft\PrintDescribeOption{#1}}%
  \thu@special@index{option}{#1}\@esphack\ignorespaces}
\def\PrintDescribeOption#1{\strut \MacroFont\bfseries\sffamily\color{thu@option} #1\ }
\def\thu@special@index#1#2{\@bsphack
  \begingroup
    \HD@target
    \let\HDorg@encapchar\encapchar
    \edef\encapchar usage{%
      \HDorg@encapchar hdclindex{\the\c@HD@hypercount}{usage}%
    }%
    \index{#2\actualchar{\string\ttfamily\space#2}
           (#1)\encapchar usage}%
    \index{#1:\levelchar#2\actualchar
           {\string\ttfamily\space#2}\encapchar usage}%
  \endgroup
  \@esphack}

\lstdefinestyle{lstStyleBase}{%
   basicstyle=\small\ttfamily,
   aboveskip=\medskipamount,
   belowskip=\medskipamount,
   lineskip=0pt,
   boxpos=c,
   showlines=false,
   extendedchars=true,
   upquote=true,
   tabsize=2,
   showtabs=false,
   showspaces=false,
   showstringspaces=false,
   numbers=none,
   linewidth=\linewidth,
   xleftmargin=4pt,
   xrightmargin=0pt,
   resetmargins=false,
   breaklines=true,
   breakatwhitespace=false,
   breakindent=0pt,
   breakautoindent=true,
   columns=flexible,
   keepspaces=true,
   gobble=2,
   framesep=3pt,
   rulesep=1pt,
   framerule=1pt,
   backgroundcolor=\color{gray!5},
   stringstyle=\color{purple!40!black!100},
   keywordstyle=\bfseries\color{purple!50!black},
   commentstyle=\slshape\color{black!60}}

\lstdefinestyle{lstStyleShell}{%
   style=lstStyleBase,
   frame=l,
   rulecolor=\color{purple},
   language=bash}

\definecolor{beamer@headercolor}{RGB}{21,95,130}
\lstdefinestyle{lstStyleLaTeX}{%
   style=lstStyleBase,
   frame=l,
   rulecolor=\color{beamer@headercolor},
   language=[LaTeX]TeX}

\lstnewenvironment{latex}{\lstset{style=lstStyleLaTeX}}{}
\lstnewenvironment{shell}{\lstset{style=lstStyleShell}}{}

\setlist{nosep}

\DeclareDocumentCommand{\option}{m}{\textsf{#1}}
\DeclareDocumentCommand{\env}{m}{\texttt{#1}}
\DeclareDocumentCommand{\pkg}{s m}{%
  \texttt{#2}\IfBooleanF#1{\thu@special@index{package}{#2}}}
\DeclareDocumentCommand{\file}{s m}{%
  \texttt{#2}\IfBooleanF#1{\thu@special@index{file}{#2}}}
\newcommand{\myentry}[1]{%
  \marginpar{\small\raggedleft\color{purple}\bfseries\strut #1}}
\newcommand{\note}[2][Note]{{%
  \color{magenta}{\bfseries #1}\emph{#2}}}
\def\thubeamer{\textsc{Thu}\-\textsc{Beamer}}
\def\thu{æ¸…åŽå¤§å­¦}
%&lt;/dtx-style&gt;
%    \end{macrocode}
% \fi
%
% \Finale
%
\endinput
% \iffalse
%  Local Variables:
%  mode: doctex
%  TeX-master: t
%  End:
% \fi
</pre></body></html>