-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBeamerHead.sty
114 lines (97 loc) · 4.15 KB
/
BeamerHead.sty
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
%---------------------------------------------------------------------------
% BeamerHead.sty
%---------------------------------------------------------------------------
\usepackage{ifxetex,ifluatex}
%---------------------------------------------------------------------------
% General
%---------------------------------------------------------------------------
\usepackage{setspace}
\setstretch{1.25}
%\usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs
% \usepackage[utf8]{inputenc}
% \usepackage{lmodern}
%\usepackage{fourier} % Use the Adobe Utopia font for the document - comment this line to return to the LaTeX default
% \setbeamerfont{item}{size*={7.5}{8}}
% \setbeamerfont{item projected}{size*={7.5}{8}}
% \setbeamerfont{itemize item}{size*={7.5}{8}}
% \setbeamerfont{itemize subitem}{size*={7.5}{8}}
% \setbeamerfont{itemize subsubitem}{size*={7.5}{8}}
% \setbeamerfont{itemize/enumerate body}{size*={7.5}{8}}
% \setbeamerfont{itemize/enumerate subbody}{size*={7.5}{8}}
% \setbeamerfont{itemize/enumerate subsubbody}{size*={7.5}{8}}
% \setbeamerfont{caption}{size*={7.5}{8}}
% \setbeamerfont{caption name}{size*={7.5}{8}}
% \setbeamerfont{frametitle}{size*={9}{9.5}}
% \setbeamerfont{normal text}{size*={7.5}{8}}
% Smaller itemize bullets
\setbeamertemplate{itemize items}{
\raisebox{0.15\height}{$\vcenter{\hbox{\scalebox{0.5}{
\usebeamercolor[fg]{structure} $\blacktriangleright$}}}$}}
% Small font in shaded environment
\renewenvironment{Shaded}{\begin{snugshade}\small}{\end{snugshade}}
%\usepackage{sectsty} % Allows customizing section commands
%\allsectionsfont{\centering \normalfont\scshape} % Make all sections centered, the default font and small caps
%\numberwithin{equation}{section} % Number equations within sections
%\numberwithin{figure}{section} % Number figures within sections
%\numberwithin{table}{section} % Number tables within sections
\usepackage{multicol}
\setlength{\columnsep}{20pt}
\newlength\Colsep
%---------------------------------------------------------------------------
% Header/footer
%---------------------------------------------------------------------------
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}[page number]
%---------------------------------------------------------------------------
% Citations
%---------------------------------------------------------------------------
% \usepackage[backend=bibtex]{biblatex}
%---------------------------------------------------------------------------
% Tables, figures, images
%---------------------------------------------------------------------------
\usepackage{wrapfig}
\usepackage{longtable}
\setlength{\LTcapwidth}{\textwidth}
\usepackage{xtab, booktabs}
\usepackage{multirow}
% \usepackage{tikz}% Probability trees and flow charts and the like
% \usetikzlibrary{%
% trees,
% arrows,
% shapes,
% %decoration,
% automata,
% backgrounds,
% petri}
% Witin cell wrapping
% https://tex.stackexchange.com/questions/2441/how-to-add-a-forced-line-break-inside-a-table-cell
\usepackage{makecell}
\renewcommand\theadalign{bc}
\renewcommand\theadfont{\bfseries}
\renewcommand\theadgape{\Gape[4pt]}
\renewcommand\cellgape{\Gape[4pt]}
% Usage
% \thead{Two line \\ head}
% \makecell{Some really \\ longer text}
% \usepackage{graphicx,grffile}
% For tables and figures in parts %%%%
\usepackage{caption}
\DeclareCaptionLabelFormat{cont}{#1~#2\alph{ContinuedFloat}}
% \usepackage{subcaption}
% \captionsetup{font=scriptsize,labelfont=scriptsize}
%\graphicspath{ {file.path.here} }
% \usepackage{subfloat}
% Set column widths in tabular environment!
\usepackage{array}
\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
\newcolumntype{C}[1]{>{\PreserveBackslash\centering}p{#1}}
\newcolumntype{R}[1]{>{\PreserveBackslash\raggedleft}p{#1}}
\newcolumntype{L}[1]{>{\PreserveBackslash\raggedright}p{#1}}
% Fancy fit image command with optional caption
\usepackage{adjustbox} % Shrink stuff
% \usepackage{showframe} % Useful for debugging
%---------------------------------------------------------------------------
% Typographical addendum
%---------------------------------------------------------------------------
\usepackage{bbm} % more BB
\input{\string~/HeadRs/common_supplement.tex}