summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/fibeamer/theme/mu/med.dtx
blob: 722af59024f8bea3756e85f4a73b27f815648c04 (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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
% \file{theme/mu/beamercolorthemefibeamer-med.sty}
% This is the color theme for presentations written at the Faculty
% of Medicine at the Masaryk University in Brno. This theme has no
% effect outside the presentation mode.
%    \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{fibeamer/theme/mu/%
  beamercolorthemefibeamer-mu-med}[2016/01/14]
\mode<presentation>
%    \end{macrocode}
% This color theme uses the combination of red, gray and
% white. The |fibeamer@back|\-|groundInner| and
% |fibeamer@backgroundOuter| colors are used within the background
% canvas template, which is defined within the color theme of the
% Masaryk University and which draws the gradient background of
% dark frames.
%    \begin{macrocode}
  \definecolor{fibeamer@red}{HTML}{c82600}
  \definecolor{fibeamer@brightRed}{HTML}{FF350A}
  \definecolor{fibeamer@gray}{HTML}{999999}
  \colorlet{fibeamer@backgroundInner}{fibeamer@red}
  \colorlet{fibeamer@backgroundOuter}{fibeamer@red!60!black}
%    \end{macrocode}
% The |darkframes| environment switches the |\iffibeamer@darktrue|
% conditional on and sets a dark color theme.
%    \begin{macrocode}
  \renewenvironment{darkframes}{%
    \begingroup
      \fibeamer@darktrue
      %% Structures
      \setbeamercolor*{frametitle}{fg=fibeamer@red!30!white}
      \setbeamercolor*{framesubtitle}{fg=white}
      %% Text
      \setbeamercolor*{normal text}{fg=white, bg=fibeamer@red}
      \setbeamercolor*{structure}{fg=white, bg=fibeamer@red}
%    \end{macrocode}
% \changes{v1.1.0:7}{2016/01/12}{Added support for \cs{alert} to
%   the themes of the Masaryk University in Brno. [VN]}
%    \begin{macrocode}
      \setbeamercolor*{alerted text}{%
        fg=fibeamer@brightRed!60!white!80!yellow}
      %% Items
      \setbeamercolor*{item}{fg=fibeamer@red!30!white}
      \setbeamercolor*{footnote mark}{fg=fibeamer@red!30!white}
      %% Blocks
      \setbeamercolor*{block title}{%
        fg=white, bg=fibeamer@red!60!white}
      \setbeamercolor*{block title example}{%
        fg=white, bg=fibeamer@red!60!white}
      \setbeamercolor*{block title alerted}{%
        fg=white, bg=fibeamer@red!90!white}
      \setbeamercolor*{block body}{%
        fg=fibeamer@red, 
        bg=fibeamer@gray!15!white}
      \usebeamercolor*{normal text}
      % Code listings
      \lstset{%
        commentstyle=\color{green!30!white},
        keywordstyle=\color{blue!30!white},
        stringstyle=\color{fibeamer@red!30!white}}
      }{%
    \endgroup}
%    \end{macrocode}
% Outside the |darkframes| environment, the light theme is used.
%    \begin{macrocode}
  %% Structures
  \setbeamercolor{frametitle}{fg=fibeamer@red}
  \setbeamercolor{framesubtitle}{fg=black!75!white}
  %% Text
  \setbeamercolor{normal text}{fg=black, bg=white}
  \setbeamercolor{structure}{fg=black, bg=white}
%    \end{macrocode}
% \changes{v1.1.0:7}{2016/01/12}{Added support for \cs{alert} to
%   the themes of the Masaryk University in Brno. [VN]}
%    \begin{macrocode}
  \setbeamercolor{alerted text}{fg=fibeamer@brightRed}
  \addtobeamertemplate{block begin}{%
    \iffibeamer@dark % alerted text in plain block at dark slides
      \setbeamercolor{alerted text}{%
        fg=fibeamer@brightRed!80!white!80!yellow}%
    \else % alerted text in plain block at light slides
      \setbeamercolor{alerted text}{%
        fg=fibeamer@brightRed!80!white}%
    \fi}{}
  %% Items
  \setbeamercolor{item}{fg=fibeamer@red}
  \setbeamercolor{footnote mark}{fg=fibeamer@red}
  %% Blocks
  \setbeamercolor{block title}{%
    fg=white, bg=fibeamer@red!50!white}
  \setbeamercolor{block title example}{%
    fg=white, bg=fibeamer@red!50!white}
  \setbeamercolor{block title alerted}{%
    fg=white, bg=fibeamer@red}
  \setbeamercolor{block body}{%
    fg=fibeamer@red!90!black, 
    bg=fibeamer@gray!20!white}
  %% Title
  \setbeamercolor{title}{fg=white, bg=fibeamer@red}
  % Code listings
  \lstset{%
    basicstyle=\footnotesize\ttfamily,
    breakatwhitespace=false,
    breaklines=true,
    commentstyle=\color{green!60!black},
    extendedchars=true,
    keywordstyle=\color{blue},
    showspaces=false,
    showstringspaces=false,
    showtabs=false,
    stringstyle=\color{violet}}
\mode
<all>
%    \end{macrocode}