-
Notifications
You must be signed in to change notification settings - Fork 1
/
extra-preamble.latex
47 lines (43 loc) · 1.3 KB
/
extra-preamble.latex
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
%% Better graphics sizes
\usepackage{graphicx}
% Redefine \includegraphics so that, unless explicit options are
% given, the image width will not exceed the width or the height of the page.
% Images get their normal width if they fit onto the page, but
% are scaled down if they would overflow the margins.
\makeatletter
\def\ScaleWidthIfNeeded{%
\ifdim\Gin@nat@width>\linewidth
\linewidth
\else
\Gin@nat@width
\fi
}
\def\ScaleHeightIfNeeded{%
\ifdim\Gin@nat@height>0.75\textheight
0.75\textheight
\else
\Gin@nat@width
\fi
}
\makeatother
\setkeys{Gin}{width=\ScaleWidthIfNeeded,height=\ScaleHeightIfNeeded,keepaspectratio}%
%% Eliminate header
%%\setbeamertemplate{headline}{}
%% Shorten footer title
\makeatletter
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,right]{author in head/foot}%
\usebeamerfont{author in head/foot}Ryan C. Thompson\hspace*{1em}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,left]{title in head/foot}%
\usebeamerfont{title in head/foot}\hspace*{1em}Genomic and epigenomic analysis of $\mathsf{CD4}^{+}$ memory
\end{beamercolorbox}}%
\vskip0pt%
}
\makeatother
%% Eliminate figure numbering
\usepackage{caption}
\captionsetup{labelformat=empty,labelsep=none}