summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/thubeamer/thubeamer.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-11-16 21:23:03 +0000
committerKarl Berry <karl@freefriends.org>2021-11-16 21:23:03 +0000
commit9dfe8f3d5332e7a706bd771490b5c49fc787b394 (patch)
tree74ca85bb324fe3aee0431906c618653d10b44b60 /Master/texmf-dist/source/latex/thubeamer/thubeamer.dtx
parent0b16a00bb08a3220476425bdb01e5d41eae25c82 (diff)
thubeamer (16nov21)
git-svn-id: svn://tug.org/texlive/trunk@61071 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/thubeamer/thubeamer.dtx')
-rw-r--r--Master/texmf-dist/source/latex/thubeamer/thubeamer.dtx17
1 files changed, 14 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/thubeamer/thubeamer.dtx b/Master/texmf-dist/source/latex/thubeamer/thubeamer.dtx
index 8cbdd0c5052..7ae1a2d3db5 100644
--- a/Master/texmf-dist/source/latex/thubeamer/thubeamer.dtx
+++ b/Master/texmf-dist/source/latex/thubeamer/thubeamer.dtx
@@ -108,10 +108,10 @@ This package consists of the file thubeamer.dtx,
%<thucolorstyle>\ProvidesPackage{beamercolorthemethubeamer}
%<thuinnerstyle>\ProvidesPackage{beamerinnerthemethubeamer}
%<thuouterstyle>\ProvidesPackage{beamerouterthemethubeamer}
-%<thubeamer|thucolorstyle|thuinnerstyle|thuouterstyle>[2021/07/07 v1.0.0 A Beamer Theme for Tsinghua University (THU)]
+%<thubeamer|thucolorstyle|thuinnerstyle|thuouterstyle>[2021/11/15 v1.1.0 A Beamer Theme for Tsinghua University (THU)]
%
%<*driver>
-\ProvidesFile{thubeamer.dtx}[2021/07/07 v1.0.0 A Beamer Theme for Tsinghua University (THU)]
+\ProvidesFile{thubeamer.dtx}[2021/11/15 v1.1.0 A Beamer Theme for Tsinghua University (THU)]
\documentclass{ltxdoc}
\usepackage{dtx-style}
@@ -335,7 +335,6 @@ This package consists of the file thubeamer.dtx,
\RequirePackage{multicol}
\RequirePackage{multimedia}
\RequirePackage{calc}
-\RequirePackage{ctex}
\RequirePackage{amsmath}
\RequirePackage{amsthm}
\RequirePackage{amssymb}
@@ -380,6 +379,9 @@ This package consists of the file thubeamer.dtx,
\DeclareOptionBeamer{subsectiontoc}{
\PassOptionsToPackage{subsectiontoc}{beamerinnerthemethubeamer}
}
+\DeclareOptionBeamer{en}{
+ \PassOptionsToPackage{en}{beamerinnerthemethubeamer}
+}
\ProcessOptionsBeamer
% \end{macrocode}
%
@@ -490,11 +492,14 @@ This package consists of the file thubeamer.dtx,
% \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}
@@ -503,6 +508,12 @@ This package consists of the file thubeamer.dtx,
% \begin{macrocode}
\mode<presentation>
+\ifx\beamer@thulang\beamer@thulanguage
+ \relax
+\else
+ \RequirePackage{ctex}
+\fi
+
\useinnertheme{circles}
% \usefonttheme{structurebold}
\setbeamertemplate{caption}[numbered]{}