This repository has been archived by the owner on Jan 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbeamerLCS27.sty
66 lines (51 loc) · 1.98 KB
/
beamerLCS27.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
% LCS27 template — Version 2.0
% Written in 2021-2022 by [LCS27](https://github.com/lcs27)
% This work is released under the CC0 1.0 Universal license. See the https://creativecommons.org/share-your-work/public-domain/cc0/ for details.
\mode<presentation>
\ifdefined\stylepath
\else
\newcommand{\stylepath}[1]{\sourcepath{beamer/#1}}
\fi
\ifdefined\packagepath
\else
\newcommand{\packagepath}[1]{\sourcepath{packages/#1}}
\fi
\ifdefined\languagefolderpath
\else
\newcommand{\languagefolderpath}[1]{\sourcepath{lang/#1}}
\fi
\RequirePackage{\stylepath{beamerfontthemeLCS27}}
\RequirePackage{\stylepath{beamercolorthemeLCS27}}
\RequirePackage{\stylepath{beamerinnerthemeLCS27}}
\RequirePackage{\stylepath{beamerouterthemeLCS27}}
\RequirePackage{kvoptions}
\RequirePackage{etoolbox}
\SetupKeyvalOptions{family=LCS, prefix=LCS@, setkeys=\kvsetkeys}
\newcommand{\ekv}[1]{\kvsetkeys{LCS}{#1}}
\DeclareStringOption[chinese]{mainlanguage}
\DeclareVoidOption{english}{\ekv{mainlanguage=english}}
\DeclareVoidOption{chinese}{\ekv{mainlanguage=chinese}}
\DeclareVoidOption{french}{\ekv{mainlanguage=french}}
\ProcessKeyvalOptions*\relax
\ifdefstring{\LCS@mainlanguage}{chinese}{
\RequirePackage[chinese]{\languagefolderpath{LCS27language}}
}{\RequirePackage{\languagefolderpath{chinese}}}
\ifdefstring{\LCS@mainlanguage}{english}{
\RequirePackage[english]{\languagefolderpath{LCS27language}}
}{\relax}
\ifdefstring{\LCS@mainlanguage}{french}{
\RequirePackage[french]{\languagefolderpath{LCS27language}}
}{\relax}
\RequirePackage{\packagepath{LCS27Packages}}
%\RequirePackage[main]{\sourcepath{lang/chinese}}
% %% Theorems
% \RequirePackage{etoolbox}
% \setbeamertemplate{theorems}[numbered]
% \theoremstyle{definition}
% \newtheorem{proposition}{\propositionwd}[section]
% \newtheorem{remark}{\remarkwd}[section]
% \newtheorem{quiz}{\quizwd}[section]
% \newtheorem{answer}{\answerwd}[section]
% \renewtheorem{lemma}{\lemmawd}[section]
% \renewtheorem{theorem}{\theoremwd}[section]
\mode<all>