added a bunch of changes to the basic beamer template
This commit is contained in:
1
slides_template/.gitignore
vendored
Normal file
1
slides_template/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
auto/*
|
||||||
@@ -4,8 +4,8 @@ all: $(patsubst %.tex,%.pdf,$(wildcard *.tex))
|
|||||||
pdf: all
|
pdf: all
|
||||||
|
|
||||||
%.pdf: %.tex
|
%.pdf: %.tex
|
||||||
perl -p -e 's/©//' refs.bib > refs-cleaned.bib
|
#perl -p -e 's/©//' refs.bib > refs-cleaned.bib
|
||||||
recode -d u8..ltex < refs-cleaned.bib > refs-processed.bib
|
#recode -d u8..ltex < refs-cleaned.bib > refs-processed.bib
|
||||||
mogrify -format pdf figures/logo.svg
|
mogrify -format pdf figures/logo.svg
|
||||||
rubber -fd $<
|
rubber -fd $<
|
||||||
extract-notes $<
|
extract-notes $<
|
||||||
@@ -14,8 +14,8 @@ clean:
|
|||||||
rubber -d --clean *.tex
|
rubber -d --clean *.tex
|
||||||
rm -f *.tmp
|
rm -f *.tmp
|
||||||
rm -f vc
|
rm -f vc
|
||||||
rm -f refs-cleaned.bib
|
#rm -f refs-cleaned.bib
|
||||||
rm -f refs-processed.bib
|
#rm -f refs-processed.bib
|
||||||
rm -f figures/logo.pdf
|
rm -f figures/logo.pdf
|
||||||
rm -f *.pdfpc
|
rm -f *.pdfpc
|
||||||
|
|
||||||
|
|||||||
@@ -1,20 +1,60 @@
|
|||||||
\documentclass[xcolor=dvipsnames]{beamer}
|
\documentclass[xcolor=dvipsnames]{beamer}
|
||||||
|
|
||||||
|
|
||||||
\renewcommand{\rmdefault}{ugm}
|
\renewcommand{\rmdefault}{ugm}
|
||||||
\renewcommand{\sfdefault}{phv}
|
|
||||||
|
|
||||||
\usepackage[garamond]{mathdesign}
|
\usepackage[garamond]{mathdesign}
|
||||||
|
|
||||||
|
\renewcommand{\sfdefault}{phv}
|
||||||
|
\usepackage{relsize}
|
||||||
|
|
||||||
\usepackage{ucs}
|
\usepackage{ucs}
|
||||||
\usepackage[utf8x]{inputenc}
|
\usepackage[utf8x]{inputenc}
|
||||||
\usepackage[T1]{fontenc}
|
\usepackage[T1]{fontenc}
|
||||||
\usepackage{textcomp}
|
\usepackage{textcomp}
|
||||||
|
|
||||||
|
% add tikz and a bunch of tikz foo
|
||||||
|
\usepackage{tikz}
|
||||||
|
\usetikzlibrary{shapes,shapes.misc,backgrounds,fit,positioning}
|
||||||
|
\tikzstyle{every picture}+=[remember picture]
|
||||||
|
|
||||||
|
% add functions to circle parts of slides (e.g., in tables)
|
||||||
|
\newcommand\marktopleft[1]{%
|
||||||
|
\tikz[overlay,remember picture]
|
||||||
|
\node (marker-#1-a) at (0,1.5ex) {};%
|
||||||
|
}
|
||||||
|
\newcommand\markbottomright[1]{%
|
||||||
|
\tikz[overlay,remember picture]
|
||||||
|
\node (marker-#1-b) at (0,0) {};%
|
||||||
|
\tikz[overlay,remember picture,dashed,inner sep=3pt]
|
||||||
|
\node[violet!75,ultra thick,draw,rounded rectangle,fit=(marker-#1-a.center) (marker-#1-b.center)] {};%
|
||||||
|
}
|
||||||
|
|
||||||
|
% add function to build a huge centered dropshadow
|
||||||
|
\newcommand\dropshadow[3]{%
|
||||||
|
\node[black!30!white] at (#1+0.1,#2-0.1) {
|
||||||
|
\scalebox{2}{\Huge \textbf{#3}}
|
||||||
|
};
|
||||||
|
\node at (#1,#2) {
|
||||||
|
\scalebox{2}{\Huge \e{#3}}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
% add function to stop numbering appendix slides
|
||||||
|
\newcommand{\backupbegin}{
|
||||||
|
\newcounter{framenumberappendix}
|
||||||
|
\setcounter{framenumberappendix}{\value{framenumber}}
|
||||||
|
}
|
||||||
|
\newcommand{\backupend}{
|
||||||
|
\addtocounter{framenumberappendix}{-\value{framenumber}}
|
||||||
|
\addtocounter{framenumber}{\value{framenumberappendix}}
|
||||||
|
}
|
||||||
|
|
||||||
% packages i use in essentially every document
|
% packages i use in essentially every document
|
||||||
\usepackage{graphicx}
|
\usepackage{graphicx}
|
||||||
\usepackage{url}
|
\usepackage{url}
|
||||||
|
% \usepackage{dcolumn}
|
||||||
|
% \usepackage{booktabs}
|
||||||
|
|
||||||
|
%% BEAMER THEME STUFF
|
||||||
\usetheme[pageofpages=/,% String used between the current page and the
|
\usetheme[pageofpages=/,% String used between the current page and the
|
||||||
% total page count.
|
% total page count.
|
||||||
bullet=default,% Use circles instead of squares for bullets.
|
bullet=default,% Use circles instead of squares for bullets.
|
||||||
@@ -35,12 +75,11 @@
|
|||||||
\setbeamertemplate{items}[default]
|
\setbeamertemplate{items}[default]
|
||||||
\setbeamertemplate{blocks}[shadow=true]
|
\setbeamertemplate{blocks}[shadow=true]
|
||||||
|
|
||||||
|
|
||||||
\usepackage{tcolorbox}
|
\usepackage{tcolorbox}
|
||||||
% These options will be applied to all `tcolorboxes`
|
% These options will be applied to all `tcolorboxes`
|
||||||
\tcbset{%
|
\tcbset{%
|
||||||
noparskip,
|
noparskip,
|
||||||
colback=white, %background color of the box
|
colback=makopurple5, %background color of the box
|
||||||
colframe=makopurple1, %color of frame and title background
|
colframe=makopurple1, %color of frame and title background
|
||||||
coltext=black, %color of body text
|
coltext=black, %color of body text
|
||||||
coltitle=white, %color of title text
|
coltitle=white, %color of title text
|
||||||
@@ -66,6 +105,19 @@
|
|||||||
\setbeamerfont{frametitle}{series=\bfseries}
|
\setbeamerfont{frametitle}{series=\bfseries}
|
||||||
\setbeamerfont{title}{series=\bfseries}
|
\setbeamerfont{title}{series=\bfseries}
|
||||||
|
|
||||||
|
% tweak the beamer font to make it a bit lists a bit smaller
|
||||||
|
\setbeamerfont*{itemize/enumerate body}{size=\small}
|
||||||
|
\setbeamerfont*{itemize/enumerate subbody}{size=\footnotesize}
|
||||||
|
\setbeamerfont*{itemize/enumerate subsubbody}{size=\footnotesize}
|
||||||
|
|
||||||
|
% indent the margins of the itemize lists a little bit
|
||||||
|
\setlength{\leftmargin}{0pt}
|
||||||
|
\setlength{\leftmargini}{0.7cm}
|
||||||
|
\setlength{\leftmarginii}{0.7cm}
|
||||||
|
|
||||||
|
% create a new \e{} command to make things purple and bold
|
||||||
|
\newcommand{\e}[1]{\textcolor{makopurple1}{\textbf{#1}}}
|
||||||
|
|
||||||
% remove the nagivation symbols
|
% remove the nagivation symbols
|
||||||
\setbeamertemplate{navigation symbols}{}
|
\setbeamertemplate{navigation symbols}{}
|
||||||
|
|
||||||
@@ -84,6 +136,10 @@
|
|||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
|
|
||||||
|
% remove some of the space in the itemize to make it quite compact
|
||||||
|
\let\olditemize\itemize
|
||||||
|
\renewcommand\itemize{\olditemize\itemsep-1pt}
|
||||||
|
|
||||||
%% SLIDE: Title Slide
|
%% SLIDE: Title Slide
|
||||||
\begin{frame}[plain]
|
\begin{frame}[plain]
|
||||||
\titlepage
|
\titlepage
|
||||||
@@ -93,7 +149,6 @@
|
|||||||
% This is the slide 1 notes.
|
% This is the slide 1 notes.
|
||||||
|
|
||||||
% pdfpc:end
|
% pdfpc:end
|
||||||
|
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
%% SLIDE: Slide 2
|
%% SLIDE: Slide 2
|
||||||
@@ -127,11 +182,23 @@ An itemized list:
|
|||||||
|
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
|
\appendix
|
||||||
|
\backupbegin
|
||||||
|
|
||||||
|
\begin{frame}[plain]
|
||||||
|
\begin{tikzpicture}[remember picture,overlay,shift={(current page.center)}]
|
||||||
|
\dropshadow{0}{0.7}{Example and}
|
||||||
|
\dropshadow{0}{-.7}{Data Appendix}
|
||||||
|
\end{tikzpicture}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
\begin{frame}{A sample slide}
|
\begin{frame}{A sample slide}
|
||||||
|
|
||||||
|
Final Sample Slide
|
||||||
% pdfpc:begin
|
% pdfpc:begin
|
||||||
% This is the slide 3 notes.
|
% This is the slide 3 notes.
|
||||||
% pdfpc:end
|
% pdfpc:end
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
\backupend
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
|||||||
Reference in New Issue
Block a user