summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hitszbeamer/beamerinnerthemehitszbeamer.sty
blob: 23bdc4f3019485c86d42ed3a0bd7d87ca2ec85a0 (plain)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
%%
%% This is file `beamerinnerthemehitszbeamer.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% hitszbeamer.dtx  (with options: `hitszinnerstyle')
%% 
%% This is a generated file.
%% 
%% Copyright (C) 2019--2020 by Jingxuan Yang <yanglatex2e@gmail.com>
%% 
%% 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.
%% 

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerinnerthemehitszbeamer}
[2020/03/17 v1.0.0 A Beamer Theme for Harbin Institute of Technology, ShenZhen (HITSZ)]
\RequirePackage{tikz}
\usetikzlibrary{external}
\DeclareOptionBeamer{hitszred}{\def\beamer@hitszcolor{hitszred}}
\DeclareOptionBeamer{hitszblue}{\def\beamer@hitszcolor{hitszblue}}
\ProcessOptionsBeamer

\newlength{\beamer@plainpagewidth}
\def\beamer@hitszcolorblue{hitszblue}
\mode<presentation>

\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);
    }%
  }%
}

\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<all>
%% 
%% This package consists of the file  hitszbeamer.dtx,
%%              and the derived files hitszbeamer.pdf,
%%                                    beamerthemehitszbeamer.sty,
%%                                    beamercolorthemehitszbeamer.sty,
%%                                    beamerinnerthemehitszbeamer.sty,
%%                                    beamerouterthemehitszbeamer.sty.
%% 
%%
%% End of file `beamerinnerthemehitszbeamer.sty'.