Skip to content
Snippets Groups Projects
Commit 3ea866d4 authored by Joshua Fogg's avatar Joshua Fogg
Browse files

Merge remote-tracking branch 'ed-beam/master'

parents 8b9ec0e9 560a8d68
No related branches found
No related tags found
No related merge requests found
*.log
*.out
main.pdf
*.nav
.DS_Store
*.gz
Makefile 0 → 100644
SHELL=/bin/bash
NAME=uibeamernew
VERSION=0.1
DISTDIR=$(NAME)
ARCHIVE_NAME=/tmp/$(NAME)-$(VERSION)
SAMPLES=sample.pdf
DISTFILES=beamerthemeUsherNew.sty beamernotes.sty Makefile README.txt README *.tex *.pdf *.svgz
all: pdf
ps: $(NAME).ps
%.ps: %.dvi
dvips $(DVIPSOPT) $< -o $@
pdf: $(SAMPLES) $(DEP)
%.pdf: %.tex
pdflatex $<
dist: $(DISTFILES)
rm -rf $(DISTDIR)
mkdir $(DISTDIR)
cp -aL --parents $(DISTFILES) $(DISTDIR)
tar cfvz $(ARCHIVE_NAME).tgz $(DISTDIR)
rm -rf $(DISTDIR)
distzip: $(DISTFILES)
rm -rf $(DISTDIR)
mkdir $(DISTDIR)
cp -aL --parents $(DISTFILES) $(DISTDIR)
zip -r $(ARCHIVE_NAME).zip $(DISTDIR)
rm -rf $(DISTDIR)
clean:
rm -f $(NAME).{glo,log,toc,lot,lof,idx,ilg,ind,aux,blg,bbl,dvi}
rm -f *~
## New Usher Institute theme for LaTeX/beamer presentations.
### Usage:
Extract the contents of this archive to a directory in your $TEXINPUTS
path.
In your beamer source file, state `\usetheme{UsherNew}` in the
preamble. There are three different colour scheme variations:
- `\usetheme[colour=USHERorange]{UsherNew}`: the default colour scheme,
- `\usetheme[colour=USHERgreen]{UsherNew}` and
- `\usetheme[colour=USHERblue]{UsherNew}`
### Basic example:
```TeX
\documentclass{beamer}
%% this is the default orange theme; options USHERgreen and USHERblue
%% are also available
\usetheme{UsherNew}
\title[Short Title]{A Long and verbose title}
\subtitle{and a sub-title}
\author{Dr Benway}
\institute{The Mental Institute}
\date{Feb 1935}
\begin{document}
\maketitle
\begin{frame}{Words of Advice for Young People}
\label{sec:Advice}
People often ask me if I have any words of
\alert{advice} for young people... \\[2ex] \pause
\begin{itemize}
\item<1-> \alert{Never} interfere in a \alert{boy-and-girl} fight
\item<2-> Any \alert{old soul} is worth saving\\
\uncover<3->{at \alert{least to} a priest},
\begin{itemize}
\item<4-> But \alert{not} every soul is \alert{worth buying}.
\end{itemize}
\item<5-> ...
\end{itemize}
\end{frame}
\begin{frame}{Conclusions}
\label{sec:what?}
\begin{itemize}
\item<2-> What \alert{are} we doing here?
\item<4-> What?
\item<2-> Answers:
\begin{itemize}
\item<3-> We are here \alert{to go}.
\end{itemize}
\end{itemize}
\end{frame}
\end{document}
```
See also `sample.tex` for a basic presentation.
### Notes
If you use [pdf-presenter-console](https://pdfpc.github.io/), a
presenter console with multi-monitor support for PDF files, try
`\usepackage{beamernotes}` and enter your notes as in
```Tex
\bnote{my notes}
```
*after* the `frame` you want to annotate.
The contents will generate a filename.pdfpc file containing
all notes to be shown by pdfpc.
Enjoy.
--
SL (s.luz@ed.ac.uk)
%% In file.tex containing a Beamer presentation, Use \bnote{} so that
%% your notes on slides get converted automatically into
%% pdf-presenter-console notes (file.pdfpc)
%%
\begingroup
\catcode`\#=12
\gdef\slidenumberprefix{### }%
\endgroup
\typeout{Starting beamer notes.}
\let\BeamerNotesBuffer\empty
\newcounter{BeamerNotesCounter}
\newcommand{\bnote}[1]{\typeout{Creating note: #1}
\stepcounter{BeamerNotesCounter}%
\xdef\BeamerNotesBuffer{\BeamerNotesBuffer
^^J\slidenumberprefix \theBeamerNotesCounter ^^J#1}%
\mode<article>{#1}}
\AtEndDocument{%
\newwrite\file
\immediate\openout\file=\jobname.pdfpc
\immediate\write\file{[file]^^J%
\jobname.pdf^^J%
[end_user_slide]^^J%
\theBeamerNotesCounter^^J%
[notes]%
\BeamerNotesBuffer}
\closeout\file
}
%% Beamer template for USHER slides,
%% See README.txt for info on how to use this file.
\ProvidesPackage{beamerthemeUsherNew}
\RequirePackage{amsfonts}
\RequirePackage{graphicx}
\RequirePackage{times}
% 9:5 (approx), as in ppt template
\definecolor{UoEblue}{RGB}{0,50,95}
\definecolor{USHERorange}{RGB}{204, 89, 17}
\definecolor{USHERgreen}{RGB}{156, 154, 0}
\definecolor{USHERblue}{RGB}{69, 126, 129}
\definecolor{USHERGray}{rgb}{.392, .329, .329}
%% choose one of the following:
\newcommand{\beamer@Usher@color}{USHERorange}
\DeclareOptionBeamer{colour}{\def\beamer@Usher@color{#1}}
\newdimen\beamer@Usher@titleheight
\beamer@Usher@titleheight=10ex
\DeclareOptionBeamer{theight}{\beamer@Usher@titleheight=#1}
\geometry{paperwidth=25.40cm, paperheight=19.05cm}
\ProcessOptionsBeamer
\newcommand\crule[3][\beamer@Usher@color]{\textcolor{#1}{\rule{#2}{#3}}}
\setbeamerfont{title}{series=\bfseries,size=\fontsize{32}{36}}%
\setbeamerfont{subtitle}{size=\fontsize{24}{28}}
\setbeamerfont{author}{size={\fontsize{20}{24}}}
\setbeamerfont{institute}{size=\fontsize{22}{26}}
\setbeamerfont{pagexofy}{size=\tiny}
\setbeamerfont{caption}{size=\Large}
\setbeamerfont{frametitle}{family=\sffamily,series=\bfseries,size={\fontsize{23}{26}}}
\setbeamerfont{itemize item}{family=\sffamily,size={\fontsize{16}{18}}}
\setbeamerfont{itemize subitem}{family=\sffamily,size={\fontsize{16}{18}}}
\setbeamertemplate{itemize/enumerate body begin}{\fontsize{16}{19}\selectfont}
\setbeamertemplate{itemize/enumerate subbody begin}{\fontsize{16}{19}\selectfont}
\AtBeginDocument{\fontsize{16}{19}\selectfont}
%\setbeamertemplate{items}[ball]
\setbeamertemplate{navigation symbols}{}
\pgfdeclareimage[width=14.69cm]{white-tied-in}{white-tied-in}
\pgfdeclareimage[width=4.65cm]{edinburgh-logo}{edinburgh-logo}
\pgfdeclareimage[width=1.25cm]{little=u}{edinburgh-logo}
\setbeamerfont{alerted text}{series=\bfseries}
\setbeamercolor{alerted text}{fg=\beamer@Usher@color!80!black}
\setbeamercolor{title}{fg=black}
\setbeamercolor{normal text}{fg=black}
\setbeamertemplate{itemize item}{\color{\beamer@Usher@color}$\bullet$}
\setbeamertemplate{itemize
subitem}{\color{\beamer@Usher@color}$\circ$}
\newcommand{\SetUsherTitleMargin}[1]{\beamer@Usher@titleheight=#1}
\newcommand{\SetUsherTitleHeight}[1]{\beamer@Usher@titleheight=#1}
\newlength\barheight\setlength\barheight{\paperheight}
\divide\barheight by 12
\setbeamertemplate{title page}
{
\begin{minipage}{.6\linewidth}
\raggedright
{\usebeamerfont{title}\textcolor{white}\inserttitle\par~}
\ifx\insertsubtitle\@empty\else%
\\[1ex]
{\usebeamerfont{subtitle}\textcolor{white}\insertsubtitle}
\fi
\\[3ex]
{\usebeamerfont{author}\textcolor{white}\insertauthor}
\ifx\insertinstitute\@empty\else%
\\[3ex]
{\\\usebeamerfont{institute}\textcolor{white}\insertinstitute}
\fi
\ifx\insertdate\empty\else%
\\[3ex]
\usebeamerfont{date}\textcolor{white}{\insertdate}
\fi
\end{minipage}
}
% \setbeamercolor{background canvas}{bg=USHERorange}
\setbeamertemplate{background}{
\setlength{\unitlength}{1cm}
\ifnum\c@framenumber=1%
\begin{picture}(25.4,19.05)(0,0)
\put(-.1, 0){\crule[\beamer@Usher@color]{25.4cm}{19.05cm}}
\put(0.44, 0.1){\pgfuseimage{white-tied-in}}
\end{picture}
\else%
\begin{picture}(25.4,19.05)(0,0)
\put(23.5, 0){\crule[\beamer@Usher@color]{1.75cm}{19.05cm}}
\put(23.65, 17.3){\includegraphics[width=1.45cm,height=1.45cm]{edinburgh-logo}}
\end{picture}
\fi
}
\setbeamertemplate{frametitle}{
\ifnum\c@framenumber=1%
\empty%
\else
\vspace*{\beamer@Usher@titleheight}
\fi
\usebeamercolor[fg]{title}%
\usebeamerfont{title}\textcolor{black}{\insertframetitle}\vspace*{2ex}
}
%\newcommand{\ushersettitleheight}[1]{\makeatletter\beamer@Usher@titleheight=#1\makeatother}
\setbeamersize{text margin left=2cm,text margin right=2.5cm}
%% set top margin for each frame
%\addtolength{\headsep}{1cm}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "sample"
%%% End:
File added
File added
\documentclass{beamer}
\usetheme[colour=UoEblue]{UsherNew}
%% Alternative options are:
%\usetheme[colour=USHERgreen]{UsherNew}
%\usetheme[colour=USHERblue]{UsherNew}
\usepackage{beamernotes}
\usepackage{lipsum}
\pdfcompresslevel=9
\pdfobjcompresslevel=3
\title[Insert Title (short version of title)]{Title of Presentation}
\author{John Doe}
%\institute{Institute Name}
\date{3\textsuperscript{rd} July 2020}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\bnote{This generates notes for pdfpc. These notes also appear
on the handout/article versions.}
\begin{frame}[t]{Header title bold}
Main body text Sans. Here is a way to \alert{highlight text}.
\label{sec:Test1}
\begin{itemize}
\item Bullet points
\item ...
\begin{itemize}
\item subitem
\end{itemize}
\item \lipsum[2]
\end{itemize}
\end{frame}
\bnote{This is a note for the first slide. Mention how }
\begin{frame}{Inserting a figure, some maths...}
\begin{itemize}
\item Here's a figure:
\begin{figure}[h]
\centering
\colorbox{blue}{\includegraphics[width=.13\linewidth]{edinburgh-logo}}
\caption{The University of Edinburgh's logo}
\label{fig:edinburgh-logo}
\end{figure}
\item
And here's a famous equation:
\begin{eqnarray}
\label{eq:schroedinger}
i\hbar {\frac {\partial }{\partial t}}|\psi (t)\rangle ={\hat {H}}|\psi (t)\rangle
\end{eqnarray}
\end{itemize}
\end{frame}
\end{document}
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment