Skip to content

Instantly share code, notes, and snippets.

@hsigrist
Created July 19, 2014 01:39
Show Gist options
  • Select an option

  • Save hsigrist/1c6bd03cdc3e1e198124 to your computer and use it in GitHub Desktop.

Select an option

Save hsigrist/1c6bd03cdc3e1e198124 to your computer and use it in GitHub Desktop.
beamerthemehytex
\ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/theme/beamerthemeHytex.sty,v 1.0 2005/12/08 08:00:00 hyndman Exp $
\mode<presentation>
\newif\ifbeamer@secheader
\beamer@secheaderfalse
\DeclareOptionBeamer{secheader}{\beamer@secheadertrue}
\ProcessOptionsBeamer
\ifbeamer@secheader\else\setbeamertemplate{headline}[default]\fi
%\setbeamertemplate{background canvas}{}
\usecolortheme{whale}
\usecolortheme{orchid}
\useinnertheme[shadow]{rounded}
%\useoutertheme[hooks]{tree}
%\useoutertheme{smoothtree}
\useoutertheme{hytex}
%\useoutertheme{split}
\usefonttheme{structurebold}
%\setbeamercovered{dynamic}
\AtBeginSection[] {
\begin{frame}<beamer>%[squeeze]
\frametitle{Outline}
\tableofcontents[currentsection]
\end{frame}
}
\def\notoc{\AtBeginSection[]{}}
\mode
<all>
\def\monashlogo{\logo{\raisebox{-0.2cm}[0cm][0cm]{\includegraphics[height=.7cm]{monash1line}}}}
%\def\monashlogo{\logo{\placefig{0}{7.4}{height=.7cm}{monash1line}}}
\def\dbeclogo{\logo{\raisebox{-0.2cm}[0cm][0cm]{\includegraphics[height=1.2cm]{dbeclogo}}}}
\setbeamerfont{author}{family=\bfseries}
\def\placefig#1#2#3#4{\begin{textblock}{.1}(#1,#2)\rlap{\includegraphics[#3]{#4}}\end{textblock}}
\def\fullheight#1{\begin{textblock}{12.8}(0,1.4)\centerline{\includegraphics[height=8.2cm]{#1}}\end{textblock}}
\def\fullwidth#1{\begin{textblock}{12.8}(0,1.4)\centerline{\includegraphics[width=12.8cm]{#1}}\end{textblock}}
\def\maroon{\setbeamercolor{structure}{fg=red!70!black}}
\def\purple{\setbeamercolor{structure}{fg=red!50!blue}}
\def\green{\setbeamercolor{structure}{fg=green!70!black}}
\usepackage{pifont}
\usepackage[absolute,overlay]{textpos}
\setlength{\TPHorizModule}{1cm}
\setlength{\TPVertModule}{1cm}
%% beamer shouldn't load amssymb given mathdesign
%\expandafter\let\csname [email protected]\endcsname\empty
%\documentclass{beamer}
%\expandafter\let\csname [email protected]\endcsname\relax
%\usefonttheme{serif}
%\usepackage{charter}
%\usepackage[charter]{mathdesign}
%\newcommand*{\atright}[1]{{%
% \unskip\nobreak\hfill\penalty50
% \hskip2em\hbox{}\nobreak\hfill#1
% \parfillskip=0pt\finalhyphendemerits=0}}%\par}}
\newcommand*{\atright}[1]{{%
\unskip\nobreak\hfill\penalty50
\hskip2em\hbox{}\nobreak\hfill#1
\parfillskip=0pt\finalhyphendemerits=0\par}}
%% STUFF BORROWED FROM UMBC
% Here we define two new environments, displaybox and inlinebox,
% draw fancy boxes around text and equations.
%
% Usage:
%
% \documentclass{beamer}
% ...
% \begin{displaybox}{5cm}
% \[ a^2 + b^2 = c^2 \]
% \end{displaybox}
% ...
% This is an \begin{inlinebox}{24mm} online box.\end{inlinebox}
\setbeamercolor{hytexboxes}{bg=structure!15!normal text.bg,fg=black}
\newenvironment{displaybox}[1]
{
\par\centerline\bgroup\hfill
\begin{beamerboxesrounded}[lower=hytexboxes,shadow=true,width=#1]{}
} {
\end{beamerboxesrounded}\hfill\egroup\par
}
\newenvironment{inlinebox}[1]
{
\newbox\@mybox
\newdimen\@myboxht
\setbox\@mybox\hbox\bgroup%
\begin{beamerboxesrounded}[lower=hytexboxes,shadow=true,width=#1]{}
\centering
} {
\end{beamerboxesrounded}\egroup
\@myboxht\ht\@mybox
\raisebox{-0.25\@myboxht}{\usebox\@mybox}\hspace{2pt}
}
%% HACK TO ALLOW NATBIB TO BE USED
\def\newblock{\relax}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment