summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/medstarbeamer
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-11-12 22:16:42 +0000
committerKarl Berry <karl@freefriends.org>2015-11-12 22:16:42 +0000
commit0af11921db2db5ec5f91fc203ee43ebdba0a18c4 (patch)
tree65128710132cf3e579f227cd68345e35359ea394 /Master/texmf-dist/tex/latex/medstarbeamer
parenteb277e66df14695fd6d209dc60d5f7452347e9e3 (diff)
medstarbeamer (12nov15)
git-svn-id: svn://tug.org/texlive/trunk@38828 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/medstarbeamer')
-rw-r--r--Master/texmf-dist/tex/latex/medstarbeamer/beamercolorthemeMedStarColors.sty41
-rw-r--r--Master/texmf-dist/tex/latex/medstarbeamer/medstarbeamer.cls92
2 files changed, 114 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/latex/medstarbeamer/beamercolorthemeMedStarColors.sty b/Master/texmf-dist/tex/latex/medstarbeamer/beamercolorthemeMedStarColors.sty
new file mode 100644
index 00000000000..c140e4acedc
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/medstarbeamer/beamercolorthemeMedStarColors.sty
@@ -0,0 +1,41 @@
+%%%%%%%%% MedStar Beamer Template %%%%%%%%%
+%%%%%%%% Written By: Anagha Kumar %%%%%
+%%%%%%%% License: lppl1.3 %%%%%%%%%%%%%%%%
+%%%%%%%% Version: 2015-11-12 %%%%%%%%%%%%%%%%
+%%%%%%%% Colortheme: MedStarColors %%%%%%%%%%%%
+
+\ProvidesPackage{beamercolorthemeMedStarColors}
+
+\definecolor{medstaryellow}{rgb}{0.91, 0.78, 0.04} % define your own colors
+\definecolor{medstarblue}{rgb}{0.0, 0.18, 0.33} % define your own colors
+\definecolor{medstarred}{rgb}{0.8, 0.0, 0.0} % taken from http://latexcolor.com/
+
+\setbeamercolor*{date in head/foot}{parent=palette primary} % see below
+\setbeamercolor{author in head/foot}{parent=palette secondary}
+\setbeamercolor{title in head/foot}{parent=palette tertiary}
+
+\setbeamercolor{frametitle}{fg=medstarblue, bg=medstaryellow}
+\setbeamercolor{title}{fg=medstarblue} % controls the color of the title on the front page
+\setbeamercolor{subtitle}{fg=medstarblue}
+\setbeamercolor{palette primary}{fg=white, bg=medstarblue} % controls the foreground and background colors for the strip at the bottom right
+\setbeamercolor{palette secondary}{fg=white, bg=medstarblue} % controls the foreground and background colors for the bottom left strip and the second strip at the top
+\setbeamercolor{palette tertiary}{fg=medstarblue, bg=medstaryellow} %controls the foreground and background colors for the middle strip at the bottom and the top strip
+\setbeamercolor{author}{fg=medstarblue}
+\setbeamercolor{date}{fg=medstarblue}
+\setbeamercolor{normal text}{fg=medstarblue} % controls the font color on each slide - can be altered to something other than black
+\setbeamercolor{alerted text}{fg=medstarred}
+\setbeamercolor{caption}{fg=medstarblue} % because I want my captions in the medstar colors - this is an improvement over the default!
+\setbeamercolor{caption name}{fg=medstarblue}
+\setbeamercolor{item}{fg=medstarblue} % NOTE: works for other environments like enumerate. I think medstaryellow looks garish.
+\setbeamercolor{section in toc}{fg = medstarblue}
+\setbeamercolor{section in toc shaded}{fg = medstaryellow}
+\setbeamercolor{subsection in toc}{fg = medstarblue}
+\setbeamercolor{subsection in toc shaded}{fg = medstaryellow}
+\setbeamercolor{subsubsection in toc}{fg = medstarblue}
+\setbeamercolor{subsubsection in toc shaded}{fg = medstaryellow}
+
+% Can also set background color to something other than white if needed
+% \setbeamercolor{background canvas}{bg = blue!5}
+
+
+
diff --git a/Master/texmf-dist/tex/latex/medstarbeamer/medstarbeamer.cls b/Master/texmf-dist/tex/latex/medstarbeamer/medstarbeamer.cls
index 43920d8f8c9..a06562b55ef 100644
--- a/Master/texmf-dist/tex/latex/medstarbeamer/medstarbeamer.cls
+++ b/Master/texmf-dist/tex/latex/medstarbeamer/medstarbeamer.cls
@@ -1,11 +1,7 @@
%%%%%%%%% MedStar Beamer Template %%%%%%%%%
%%%%%%%% Written By: Anagha Kumar %%%%%
%%%%%%%% License: lppl1.3 %%%%%%%%%%%%%%%%
-
-% I wrote a beamer template for MedStar Health presentations. %%
-%% I've included sample presentations using both .tex files and .rnw files%%
-%% The document class is obviously compatible with both
-%% The advantage of the .rnw file is that it can be used with knitr such that you can weave your R code with your presentation %%
+%%%%%%%% Version: 2015-11-12 %%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{medstarbeamer}
@@ -21,24 +17,82 @@
\RequirePackage{cancel}
\RequirePackage{amsmath}
\RequirePackage{enumerate}
+\RequirePackage{ifthen}
+
+\defbeamertemplate*{footline}{}
+{
+ \hbox{%
+ \begin{beamercolorbox}[wd=.3333333\paperwidth,ht=0.25cm,dp=0.2cm,center]{author in head/foot}%
+ \usebeamerfont{author in head/foot}\insertshortauthor
+ \end{beamercolorbox}%
+ \begin{beamercolorbox}[wd=.3333333\paperwidth,ht=0.25cm,dp=0.2cm,center]{title in head/foot}%
+ \usebeamerfont{title in head/foot}\insertshorttitle
+ \end{beamercolorbox}%
+ \begin{beamercolorbox}[wd=.3333333\paperwidth,ht=0.25cm,dp=0.2cm, center]{date in head/foot}%
+ \usebeamerfont{date in head/foot}\insertshortdate{}\hfill \insertframenumber{} / \inserttotalframenumber
+ \end{beamercolorbox}}%
+}
+% ht controls the height of the boxes. %I want the text in the boxes to be centered. %dp controls the depth
+
+\defbeamertemplate*{headline}{}
+{
+ \begin{beamercolorbox}{section in head/foot}
+ \vskip3pt\insertnavigation{\paperwidth}\vskip3pt
+ \end{beamercolorbox}%
+ \ifbeamer@theme@subsection%
+ \begin{beamercolorbox}[ht=0.25cm,dp=0.2cm, leftskip=0.5cm]{subsection in head/foot}
+ \usebeamerfont{subsection in head/foot}\insertsubsectionhead
+ \end{beamercolorbox}%
+ \fi
+}
+
+\setbeamersize{text margin left=0.5cm,text margin right=0.75 cm} % This is important to specify so that the margins and hence, typeset font can be controlled in each slide. I prefer cm over em.
-\usetheme{CambridgeUS} % for an extensive list of themes, this is a useful website: http://deic.uab.es/~iblanes/beamer_gallery/index_by_theme.html %
-\definecolor{citrine}{rgb}{0.89, 0.82, 0.04}
-\definecolor{coolblack}{rgb}{0.0, 0.18, 0.39}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\usecolortheme{MedStarColors}
+\newif\ifbeamer@theme@subsection
+\beamer@theme@subsectiontrue %%%%%% adds in the blue line %%%%
-\usecolortheme{lily}
-\setbeamercolor{frametitle}{fg=white, bg=coolblack}
-\setbeamercolor{title}{fg=coolblack}
-\setbeamercolor{subtitle}{fg=coolblack}
-\setbeamercolor{palette primary}{fg=white, bg=coolblack} % controls the foreground and background colors for the strip at the bottom right
-\setbeamercolor{palette secondary}{fg=white, bg=coolblack} % controls the foreground and background colors for the bottom left strip and the second strip at the top
-\setbeamercolor{palette tertiary}{fg=black, bg=citrine} %controls the foreground and background colors for the middle strip at the bottom and the top strip
-\useoutertheme{miniframes}
-\setbeamercolor{item}{fg=coolblack} %customizing the colors for the inner theme
-\logo{\includegraphics[ height=1cm, width=2cm]{medstarlogo}} %the size of the logo to be included in every frame
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\logo{\includegraphics[ height=1cm, width=2.5cm]{medstarlogo}} %the size of the logo to be included in every frame
\setbeamercovered{dynamic} %overlays appear faintly
\setbeamertemplate{navigation symbols}{} % since I dislike the navigation symbols
\setbeamertemplate{caption}[numbered] % since beamer does not number captions without setting this
-\setbeamercolor{caption}{fg=coolblack}
+
+
+%%%%%%%%%%%%Shrinking the table of contents if needed %%%%%%%%%%%%%%%%%%%%%%%%%%
+\newcommand{\sizecontentsoutline}[1]
+{
+ \ifnum#1=1
+ \begin{frame}
+ \tableofcontents
+ \end{frame}
+ \else
+ \ifnum#1=2
+ \begin{frame}
+ \footnotesize{\tableofcontents}
+ \end{frame}
+ \fi
+}
+
+\newcommand{\sizecontentscurrent}[1]
+{
+\AtBeginSection{
+\ifthenelse{\thesection > 1}{
+ \ifnum#1=1
+ \begin{frame}
+ \tableofcontents[currentsection]
+ \end{frame}
+ \else
+ \ifnum#1=2
+ \begin{frame}
+ \footnotesize{\tableofcontents[currentsection]}
+ \end{frame}
+ \fi
+}
+}
+}
+
+% Define Author, Date, Institute, Title using small caps and different fonts - theme \ No newline at end of file