LaTeX Templates

Beamer Template

Template

Template Assignment

 

Beamer Template

 

\documentclass{article}  %change this to \documentclass{article} to get beamer notes

\usepackage{amssymb} %math symbols

\usepackage{amsmath} %math stuff

\usepackage{mathrsfs}

\usepackage{fullpage}

\usepackage{epstopdf}

\usepackage{setspace} %Spacing

\usepackage{graphicx}

\usepackage{enumerate}

\newcommand {\tlde}[1] {\underset{\widetilde{}}{#1}}

\newcommand {\dsum}{\displaystyle \sum}

\newcommand {\dprod}{\displaystyle \prod}

\usepackage{beamerarticle} %uncomment when making beamernotes

\usetheme{Madrid}

\usecolortheme{seahorse}

\begin{document}

 

\title{Talk Title}

\author{Name}

\date{\today}

\maketitle

 

\begin{frame}

\frametitle{Quiz Time!}

\begin{itemize}

\item What do I want to write here?

\begin{enumerate}

\item[(a)] 1

\item[(b)] 2

\item[(c)] 3

\item[(d)] 4

\end{enumerate}

\item Second Point

\begin{enumerate}

\item[(a)] Some Stuff

\item[(b)] Some Stuff

\item[(c)] Some Stuff

\item[(d)] Some Stuff

\end{enumerate}

\end{itemize}

\end{frame}

 

\begin{frame}

\frametitle{Slide Number 2}

I could put a table here!

\begin{table}[ht] 

\caption{Caption Here} % title of Table 

\centering      % used for centering table 

\begin{tabular}{|c |c |c|}  % centered columns (3 columns with lines on the outside) 

\hline\hline                        %inserts double horizontal lines 

Heading 1\ & Heading 2 \ &Heading 3 \\   

%heading 

\hline                    % inserts single horizontal line 

4 &-2.07244857 &5\\

3  &-1.21470216   &4\\

10 &-0.70118498  &3\\

1  &-0.06561265    &$\int 5x^2 dx$\\

5   &0.09670152     &75\\

2   &0.67603297     &Something\\

\hline     %inserts single line 

\end{tabular} 

\end{table} 

\end{frame}

 

\end{document}

Back to top

 

Template

 

\documentclass[12pt, letterpaper]{article}    

\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent

\usepackage{graphicx}

\usepackage{amssymb} %math symbols

\usepackage{amsmath} %math stuff

\usepackage{amsthm} %Theorems and Such

\usepackage{mathrsfs}

\usepackage{epstopdf}

\usepackage{enumerate} %allows to change bullet points in enumerate

\usepackage{fullpage}  

\usepackage{setspace} %Spacing

\usepackage{hyperref} %links from table of contents

\newcounter{qcounter} %counting thing

\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}

 \setstretch {1.25} %line spacing

 

 %allows theorems and such

\newtheorem{theorem}{Theorem}[section]

\newtheorem{lemma}[theorem]{Lemma}

\newtheorem{proposition}[theorem]{Proposition}

\newtheorem{corollary}[theorem]{Corollary}

 

\newcommand {\tlde}[1] {\underset{\widetilde{}}{#1}}

 

\begin{document}

 

\title{Title Page of Template\\Second Line}

\author{Your Name}

\date{\today}                                           % Activate to display a given date or no date

\maketitle

\newpage

 

\text{  }

\newpage

 

 

\tableofcontents

\setcounter{tocdepth}{3}

 

\newpage \text{ }

\newpage

 

\section{Some Stuff}

\subsection{Introduction}

Some text could go here, or how about an inline equation $\int_{-\infty}^\infty e^{-\frac{x^2}{2}} dx$. We could also put a centered equation:

$$\hat{\mu}_{a} = \frac{53+212+10+50+60+115+19+65+112+118+77+68+35+8+46+12}{16} = 66.25$$

 

And thats it here.

 

\subsubsection{And More!}

 

Lets explore different type faces:

 

\textbf{Here's Bold}

 

\emph{Italics}

 

Centered Text?

\begin{center}

Okay. Now it's centered.

\end{center}

 

\subsubsection{Aligned equations}

 

%\tlde is a command i defined, if you use my header, you'll have it too

\begin{align*}

\mathbb{E}[(\frac{d}{d\theta} \ln f_{\tlde{X}}(\tlde{x};\theta))^2] &= \mathbb{E}[(\frac{\partial}{\partial\theta} ln \prod f_{X_i}(x_i;\theta))^2] \\

&= \mathbb{E}[(\frac{d}{d\theta} \sum_{i=1}^n\ln f_{X_i}(x_i;\theta))^2] \\

&=\mathbb{E}[\sum_{i=1}^n(\frac{d}{d\theta} \ln f_{X_i}(x_i;\theta))^2] + \mathbb{E}[\frac{d}{d\theta} \sum_{i\not=j}\sum \ln f_{X_i}(x_i;\theta)\ln f_{X_j}(x_j;\theta)] \\

&=\mathbb{E}[ \sum_{i=1}^n(\frac{d}{d\theta}\ln f_{X_i}(x_i;\theta))^2]  +  \underbrace{\mathbb{E}[\sum(\frac{\partial}{\partial\theta}ln f_{X_i}(x_i;\theta))]^2}_{= 0\text{ by lemma}} \\ 

&=\sum_{i=1}^n\mathbb{E}[(\frac{d}{d\theta} \ln f_{X_i}(x_i;\theta))^2] \\

&= n \mathbb{E}[(\frac{d}{d\theta} \ln f_{X_i}(x_i;\theta))^2] 

\end{align*}

 

If I wanted the lines to be numbered, I would have just removed the * in the command.

 

\begin{align}

A &=  \sum_1^n (\frac{X_i - \mu}{\sigma})^2 \sim \chi_n^2 \\

B &\sim \text{ ?} \\

C &\sim \chi_1^2

\end{align}

 

\subsection{Enumeration}

\subsubsection{Itemize}

 

If I want to create ordered lists with bullet points, use itemize

\begin{itemize}

\item First Point

\item Second Point

\item Third Point

\end{itemize}

 

\subsubsection{Enumerate}

 

If i want the list to have numbers instead, use enumerate

\begin{enumerate}

\item First Point

\item Second Point

\item Third Point

\end{enumerate}

 

The following command is what lets us change the numbers in enumerate to what ever we want:\begin{verbatim} \usepackage{enumerate} \end{verbatim} %in verbatim mode, things show up exactly as you type them

 

\begin{enumerate}

\item[(a)] First Point

\item[$\frac{1}{2}$] Second Point

\item[(55)] Third Point

\item If i dont put anything, it restarts the numbering (thats why this is number 1)

\end{enumerate}

 

Mixing the two:

 

\begin{enumerate}

\item Point 1

\item[(b)] Point 2

\begin{itemize}

\item Subpoint 1

\item Subpoint 2

\end{itemize}

\item[(c)] Point 3

\end{enumerate}

 

\section{Tables, Figures and Matrices}

Lets explore matrices and tables.

 

\subsection{Tables} Here is a table to play with.

\begin{table}[ht] 

\caption{Caption Here} % title of Table 

\centering      % used for centering table 

\begin{tabular}{|c |c |c|}  % centered columns (3 columns with lines on the outside) 

\hline\hline                        %inserts double horizontal lines 

Heading 1\ & Heading 2 \ &Heading 3 \\   

%heading 

\hline                    % inserts single horizontal line 

4 &-2.07244857 &5\\

3  &-1.21470216   &4\\

10 &-0.70118498  &3\\

1  &-0.06561265    &$\int 5x^2 dx$\\

5   &0.09670152     &75\\

2   &0.67603297     &Something\\

\hline     %inserts single line 

\end{tabular} 

\end{table} 

 

 

\subsection{Figures} % Save a picture in the same directory that you're working in, and and change figure.png to the correct name, then uncomment this code to insert a picture

 \begin{figure}[htbp]

\begin{center}

\includegraphics[height=50mm]{figure.png}

\caption{Caption}

\end{center}

\end{figure}

 

\subsection{Matrices}

Matrices work just like tables. 

 

 $$\left[

\begin{matrix}

\lambda &1&0&0&0\\

0&\lambda&1&0&0\\

0&0&\lambda&0&0\\

0&0&0&\lambda&0\\

0&0&0&0&\lambda\\

\end{matrix}

\right]$$

 

\section{Conclusion}

Thats it for this one!

 

\end{document}

Back to top

 

Template Assignment

 

\documentclass[12pt, letterpaper]{article}    

\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent

\usepackage{amssymb} %math symbols

\usepackage{amsmath} %math stuff

\usepackage{mathrsfs}

\usepackage{fullpage}

\usepackage{epstopdf}

\usepackage{setspace} %Spacing

\usepackage{graphicx}

\usepackage{enumerate}

\newcommand {\dsum}{\displaystyle \sum}

\newcommand {\dprod}{\displaystyle \prod} 

\newcommand {\E}{\mathbb{E}} 

\newcommand {\bs}{\boldsymbol} 

\newcommand {\tlde}[1] {\underset{\widetilde{}}{#1}}

\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}

 \setstretch{1.33} %line spacing

\begin{document}

\begin{center}

Assignment Number\\

Name\\

Student Number\\

Course Name\\

Course Number\\

\end{center}

 

\textbf{Question 1:}

\begin{enumerate}

\item[(a)] Answer to question 1 part a

\item[(b)] Answer to question 1 part b

\item[(c)] Answer to question 1 part c

\end{enumerate}

 

\textbf{Question 2:}

\begin{enumerate}

\item[(a)] Answer to question 2 part a

\item[(b)] Answer to question 2 part b

\item[(c)] Answer to question 2 part c

\end{enumerate}

 

\textbf{Question 3:}

Your answer to question 3

 

 \end{document}
Back to top