forked from fliptanedo/FlipBeamerTheme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFlipBeamerTemplate.tex
executable file
·152 lines (108 loc) · 4.78 KB
/
FlipBeamerTemplate.tex
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
%% BEAMER THEME FLIP 2012: Main tex file for compiling
%$ Compile this file.
%%
%% Copyright 2012 by Flip Tanedo
%% This file may be distributed and/or modified
%% 1. under the LaTeX Project Public License and/or
%% 2. under the GNU Public License.
%%
%% If you e-mail Flip ([email protected]) to say that you
%% like this style file, then it would make him smile.
%% Please see notes.txt for comments on Beamer Theme Flip 2013
%% By default, this template is meant to be run with XeLaTeX (for fonts)
%% To run in PDFLaTeX, remove fontspec and any font commands
%% Discussion of Beamer vs XeLaTeX vs LuaLaTeX
%% http://tex.stackexchange.com/questions/29497/xelatex-preventing-beamer-from-using-different-backgrounds
\documentclass[12 pt]{beamer}
\usetheme[
bullet=circle, % Other option: square
bigpagenumber, % circled page number on lower right
topline=true, % colored bar at the top of the frame
shadow=false, % Shading for beamer blocks
watermark=BG_lower, % png file for the watermark
]{Flip}
\newcommand{\titleimage}{title} % Custom title
\newcommand{\tanedo}{tanedolight} % Custom author name
\newcommand{\CMSSMDM}{CMSSMDMlight.png} % light background plot
%%%%%%%%%%
% FONTS %
%%%%%%%%%%
%% Default font: lmodern, doesn't require fontspec % solves some default warnings
\usepackage[T1]{fontenc}
\usepackage{lmodern}
%\usepackage{sfmath} % Sans Serif Math, off by default
%% Protects fonts from Beamer screwing with them
%% http://tex.stackexchange.com/questions/10488/force-computer-modern-in-math-mode
\usefonttheme{professionalfonts}
%% XeLaTeX fonts: (comment out if you don't use XeLaTeX)
%% For advanced fonts: access local OS X fonts
\usepackage[no-math]{fontspec}
%% This template uses typical OS X and Adobe fonts
\defaultfontfeatures{Mapping=tex-text} % This seems to be important for mapping glyphs properly
\setmainfont{Gill Sans} % Beamer ignores "main font" in favor of sans font
\setsansfont{Gill Sans} % This is the font that beamer will use by default
% \setmainfont{Gill Sans Light} % Prettier, but harder to read
\setbeamerfont{title}{family=\fontspec{Gill Sans}}
\newcommand{\handwriting}{\fontspec{augie}} % From Emerald City, free font
% \newcommand{\handwriting}{} % If you prefer no special handwriting font or don't have augie
%% Gill Sans doesn't look very nice when boldfaced
%% This is a hack to use Helvetica instead
%% Usage: \textbf{\forbold some stuff}
\newcommand{\forbold}{\fontspec{Helvetica}}
% \newcommand{\forbold}{} % if you want no special boldface
%%%%%%%%%%%%%%%%%%%%%%%%
% Usual LaTeX Packages %
%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{mathrsfs} % For Weinberg-esque letters
\usepackage{cancel} % For "SUSY-breaking" symbol
\usepackage{slashed} % for slashed characters in math mode
\usepackage{bbm} % for \mathbbm{1} (unit matrix)
\usepackage{amsthm} % For theorem environment
\usepackage{multirow} % For multi row cells in table
\usepackage{arydshln} % For dashed lines in arrays and tables
\usepackage{tikzfeynman} % For Feynman diagrams
% \usepackage{subfig} % for sub figures
% \usepackage{young} % For Young Tableaux
% \usepackage{xspace} % For spacing after commands
% \usepackage{wrapfig} % for Text wrap around figures
% \usepackage{framed}
\graphicspath{{images/}} % Put all images in this directory. Avoids clutter.
\usetikzlibrary{backgrounds}
\usetikzlibrary{mindmap,trees} % For mind map
% http://www.texample.net/tikz/examples/computer-science-mindmap/
% SOME COMMANDS THAT I FIND HANDY
% \renewcommand{\tilde}{\widetilde} % dinky tildes look silly, dosn't work with fontspec
\newcommand{\comment}[1]{\textcolor{comment}{\footnotesize{#1}\normalsize}} % comment mild
\newcommand{\Comment}[1]{\textcolor{Comment}{\footnotesize{#1}\normalsize}} % comment bold
\newcommand{\COMMENT}[1]{\textcolor{COMMENT}{\footnotesize{#1}\normalsize}} % comment crazy bold
\newcommand{\Alert}[1]{\textcolor{Alert}{#1}} % louder alert
\newcommand{\ALERT}[1]{\textcolor{ALERT}{#1}} % loudest alert
%% "\alert" is already a beamer pre-defined
\author[Flip Tanedo\quad {[email protected]}]{Flip Tanedo}
\title[Flip's Beamer Theme]{Flip's Beamer Theme}
\institute{Cornell University}
\date{\today}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%
% Additional settings %
%%%%%%%%%%%%%%%%%%%%%%%%
%% To use external nodes; http://www.texample.net/tikz/examples/beamer-arrows/
\tikzstyle{every picture}+=[remember picture]
%%%%%%%%%%%%%%%%%%%%%%%%
% Actual content below %
%%%%%%%%%%%%%%%%%%%%%%%%
%% It's much nicer to have all the content in a separate file
\include{content}
% \begin{frame}{test}
% Main text still in Gill Sans
% $$\frac{f}{f^4}$$
%
% But math is now different
% \Large
% $$\frac{f^2}{f^4}$$
% \end{frame}
\end{document}