-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpreamble.tex
122 lines (101 loc) · 3.54 KB
/
preamble.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
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathptmx}
\usepackage{color}
\usepackage{minted}
\usepackage{hyperref}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{menukeys}
\usepackage{subcaption}
% Stolen from John Miller's LaTeX course
\newcommand{\bftt}[1]{\textbf{\texttt{#1}}}
\newcommand{\comment}[1]{{\color[HTML]{008080}\textit{\textbf{\texttt{#1}}}}}
\newcommand{\cmmd}[1]{{\color[HTML]{008000}\bftt{#1}}}
\newcommand{\bs}{$\backslash$}
\newcommand{\cmdbs}[1]{\cmmd{\bs#1}}
\newcommand{\lcb}{\char '173}
\newcommand{\rcb}{\char '175}
\newcommand{\cmdbegin}[1]{\cmdbs{begin\lcb}\bftt{#1}\cmmd{\rcb}}
\newcommand{\cmdend}[1]{\cmdbs{end\lcb}\bftt{#1}\cmmd{\rcb}}
%\newcommand{\wllogo}{\textbf{write\textrm{\LaTeX}}}
% this is where the example source files are loaded from
% do not include a trailing slash
\newcommand{\wllogo}{\textbf{write\textrm{\LaTeX}}}
\newcommand{\fileuri}{https://raw.githubusercontent.com/kks32/writing-thesis-effectively/master/exercise/}
\newcommand{\wlserver}{https://www.overleaf.com}
\newcommand{\wlnewdoc}[1]{\wlserver/docs?snip\_uri=\fileuri#1\&splash=none}
\def\tikzname{Ti\emph{k}Z}
% stolen from minted.dtx
\newenvironment{exampletwoup}
{\VerbatimEnvironment
\begin{VerbatimOut}{example.out}}
{\end{VerbatimOut}
\setlength{\parindent}{0pt}
\fbox{\begin{tabular}{l| l}
\begin{minipage}{0.55\linewidth}
\inputminted[fontsize=\small,resetmargins]{latex}{example.out}
\end{minipage} &
\begin{minipage}{0.35\linewidth}
\input{example.out}
\end{minipage}
\end{tabular}}}
\newenvironment{exampletwouptiny}
{\VerbatimEnvironment
\begin{VerbatimOut}{example.out}}
{\end{VerbatimOut}
\setlength{\parindent}{0pt}
\fbox{\begin{tabular}{l|l}
\begin{minipage}{0.55\linewidth}
\inputminted[fontsize=\scriptsize,resetmargins]{latex}{example.out}
\end{minipage} &
\begin{minipage}{0.35\linewidth}
\setlength{\parskip}{6pt plus 1pt minus 1pt}%
\raggedright\scriptsize\input{example.out}
\end{minipage}
\end{tabular}}}
\newenvironment{exampletwouptinyfifty}
{\VerbatimEnvironment
\begin{VerbatimOut}{example.out}}
{\end{VerbatimOut}
\setlength{\parindent}{0pt}
\fbox{\begin{tabular}{l|l}
\begin{minipage}{0.45\textwidth}
\inputminted[fontsize=\scriptsize,resetmargins]{latex}{example.out}
\end{minipage} &
\begin{minipage}{0.45\textwidth}
\setlength{\parskip}{6pt plus 1pt minus 1pt}%
\raggedright\scriptsize\input{example.out}
\end{minipage}
\end{tabular}}}
% ******************************** Meta-data ***********************************
\mode<presentation>
{
\usetheme{Madrid}
\setbeamercovered{transparent}
}
\usepackage{caption}
\captionsetup{font=scriptsize, labelfont=scriptsize, justification=centering}
\title{Writing your papers and thesis more effectively}
\author {Krishna Kumar \inst{*}\thanks{github.com/kks32} }
\institute[ University of Cambridge ] % (optional, but mostly needed)
{
\includegraphics[width=0.9\textwidth]{figs/goto.png}
}
\pgfdeclareimage[height=0.2cm]{uni}{figs/Engineering.png}
% \logo{\pgfuseimage{uni}}
\date[LaTeX Course 2015]{Schofield Centre, January 2015}
% Delete this, if you do not want the table of contents to pop up at
% the beginning of each subsection:
\AtBeginSection[]
{
\begin{frame}<beamer>{Outline}
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
% If you wish to uncover everything in a step-wise fashion, uncomment
% the following command:
%\beamerdefaultoverlayspecification{<+->}