%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Filename: TeXIntro.tex
%  Created: 9/23/07
%   Author: Timothy Brick
%    No rights reserved.
% 	 Feel free to claim, borrow, or steal any of it.
% 	 I'll totally agree if someone asks if you made it.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%	Modified 2008-24-09 for use at DADA by tbrick.
%   Or am I just claiming that?
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%	Modified 2010-20-10 for use at DADA again the next year.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\documentclass[11pt,presentation]{beamer}
\documentclass[handout]{beamer}

\mode<handout>
{
	\usepackage{pgfpages}
	\pgfpagesuselayout{4 on 1}[letterpaper, border shrink=5mm]
	\setbeameroption{hide notes}
}

\mode<presentation> {
    \usetheme{CVille}
%	\usetheme[hideothersubsections]{PaloAlto}
%	\usetheme{Madrid}
	\usecolortheme{cavs}
	\setbeamercovered{invisible}
	\setbeameroption{hide notes}
}

\usepackage[english]{babel} % or whatever
\usepackage[latin1]{inputenc} % or whatever
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{booktabs}
\usepackage{multimedia}
\usepackage{hyperref}
\usepackage{geometry}
\usepackage{apacite}

\newlength{\figurewidth}
\figurewidth \textwidth  % This is for rectangular graphs
\newlength{\figurewidthB}
\figurewidthB .7\textwidth  % This is for square graphs

%\pgfdeclareimage[height=1cm]{university-logo}{rolg_blueseal_su} % Logo must be in this folder
%\logo{\pgfuseimage{university-logo}}  % Add the University logo

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\title[\LaTeX{} Intro: Part The First]{ Introduction to \LaTeX{}: \\ How To TeX, Beamer And Influence People }

\author[Brick]{Timothy R. Brick}
\institute[UVa]{Department of Psychology \\
             University of Virginia \\
             C'ville, VA 22903}

\date[DADA Fall 2008]{Design And Data Analysis \\  Sept 25\textsuperscript{th}, 2008}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

\frame{\titlepage}

\frame{{Outline}{}
	\tableofcontents%[pausesections]
}

\AtBeginSection[]
{
	\frame{{Outline}{}
		\tableofcontents[currentsection,currentsubsection]
	}
}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{What is it?}
\frame{ {\LaTeX{}}{So... what is this thing again?}

\begin{columns}[t]
\begin{column}[T]{5cm}
    \LaTeX{} is built so that you can:
    \begin{itemize}
        \item Write your paper once
        \item Easily change layouts
        \item Add, delete, and move, \\
             figures, tables, \& sections \\
              without having to renumber or alter layout
        \item Easily manage references (with BibTeX)
        \item Easily build things like tables of contents, etc.
    \end{itemize}
\end{column}

\begin{column}[T]{5cm}
\center{
  \fbox{\includegraphics[width=3.5cm]{WrittenPage.pdf}} \\
    {\em A page of typeset text}
}
\end{column}
\end{columns}

}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{ {The Main Idea} {Write Logically, Not Visually}

\LaTeX{} is designed to let you:
\begin{itemize}
	\item Write logically, not visually.
	\item Mark things like {\large \em Chapter}, {\em Section}, and {\em Emphasis}.
	\item Not have to worry about things like spacing and style.
\end{itemize}

\vskip .5cm

It is meant so that you don't have to worry about whether {\em
emphasis} should be {\bf bold}, \underline{underlined}, or {\it
italic}, or exactly which figure number had the picture of the deer.

 }
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{ {A Short Demo} {A paper I just submitted}

	{\LARGE DEMO!}

 }
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Installation and Mgmt}
\frame{{Installation of \LaTeX{}} {You only need a few things}

To install \LaTeX{}, you need two parts: a typesetting engine, and a
text editor.

{\bf On Windows} \\
You can use {\em MiKTeX}, and either {\em TeXMaker}, {\em WinEdt}, or
{\em E} as your editor. \\
{\bf On A Mac} \\
{\em MacTeX} installs its own typesetter and the {\em TeXShop}
editor.  You can install {\em TeXMaker} or {\em TextMate} as an alternative.
\\
You can get all the necessary components at
\url{http://people.virginia.edu/~trb6e/tex/} for either platform.

}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{ {Two quick notes}

For MiKTeX:
\begin{enumerate}
\item Install for all users unless you don't have Administrator
\item Make sure to change the page size to {\bf Letter}
\end{enumerate}

For MacTeX:
\begin{enumerate}
\item You'll need to authenticate to install.
\item TeXShop will show up in Applications\texttt{->}TeX.
\end{enumerate}

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{ {Packages} {New Option Sets}
	\begin{itemize}
		\item Packages are add-ons to basic \LaTeX{}
		\item They include things like:
		\begin{itemize}
			\item APA Style Format
			\item Beamer
			\item Sweave
		\end{itemize}
		\item On Windows, MikTeX will handle most of the management and \\
		MiKTeX Package Manager will handle the rest
		\item On a Mac, the TeXLive Utility will do most of it
	\end{itemize}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{{The Tough Way To Install Packages} {Sadly, sometimes required}

Steps to install a package the tough way:

	\begin{enumerate}
		\item Download the package
		\item Copy it to the TeX folder
		\begin{itemize}
			\item For Macs, this is ~/Library/texmf/tex/latex
			\item For Windows, it's in the MiKTeX folder, under texmf/tex/latex
		\end{itemize}
		\item Rebuild the names database
		\begin{itemize}
			\item For Windows, it's under MiKTeX's Settings.
			\item For Macs, you run Terminal, and type \texttt{sudo texhash}.
		\end{itemize}
	\end{enumerate}

}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Basic Usage}
\label{sec:Basic}
\frame{{Commands}

\begin{itemize}
\item Commands begin with backslashes, like \texttt{$\backslash$LaTeX\{\}}\\ (Which does this: \LaTeX{}).
\item {\em Scope} is delimited by curly braces \{\}.
\begin{itemize}
	\item \LaTeX{} $\heartsuit$s curly braces (\{\}).
	\item Some commands like \texttt{$\backslash$emph\{scopes\}} need a \emph{scope}.
	\item Others, like \texttt{\{$\backslash$em scope\}}, change the current {\em scope}.
\end{itemize}
\item Environments begin with \texttt{$\backslash$begin\{\}} and end with
\texttt{$\backslash$end\{\}}
\begin{itemize}
	\item So, for example, we use \texttt{$\backslash$begin\{document\}} to start the paper.
\end{itemize}

\end{itemize}

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{{Characters}{Breaking Lines}

\begin{itemize}
\item \LaTeX{} ignores line breaks in most cases.
\item You type: \texttt{``This is part<Enter> of a line.''}
\item You get: This is part
 of a line.

\item Use \texttt{<Enter><Enter>} between paragraphs.

\item And: \texttt{``This is part<Enter><Enter>of a line.''}
\item Becomes: This is part

 of a line.

\end{itemize}

}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{{Control Characters}{Changing things}

\begin{itemize}
	\item Curly braces (\{\}) delimit a \emph{scope}.
	\item Square brackets ({$[$$]$}) are for options.
	\item Use $\backslash$$\backslash$ to end a line.
	\item \% Signs make \LaTeX{} ignore the rest of the line.  These are for {\em comments}.
	% Comments are handy for making notes to yourself that aren't in the text.
	\item A Tilde~(~{$\widetilde{}$}~)~is for spaces.
	\item Use ` and ' as single quotes, and `` and '' for doubles. \\
	" will give you either "flat" quoes or ''backward'' quotes.
\end{itemize}

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{{Characters}{Some Handy Notes}

\begin{itemize}
	\item There are a few characters it's tough to get.
	\item Most control characters (like \{ and \}, or \$) can be displayed by putting a 	 $\backslash$ first.\\ (So $\backslash$\$, for example.)
	\item To get an actual $\backslash$, use \$$\backslash$backslash\$.  \\ (This draws the backslash in math mode.  This works for $[$$]$, too.)
	\item Tildes are trickier.  In an article, you can use $\backslash$verb\{~~$\widetilde{}$~~\}.  \\
	In Beamer, you need to use \$$\backslash$widetilde\{\}\$.
	\item A single - is a minus sign. \\
	Use two (- -) to get -- and three (- - -) for ---
\end{itemize}

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Figures, Tables, Math, Etc.}
\frame{{Figures}{Yeah, it does.}

\begin{columns}[T]
\begin{column}[T]{6cm}
	\begin{itemize}
		\item The \texttt{figure} environment marks an APA figure.
		\item Inside it, use \texttt{$\backslash$includegraphics$[]$\{\}} command.
		\begin{itemize}
			\item In the $[]$, you can list size requirements: \\
 				$[$width$=$5cm$]$
			\item In the \{\}, list the filename.
		\end{itemize}
		\item You can include a caption with $\backslash$caption\{\}.
		\item To get a box around it, put the includegraphics in an $\backslash$fbox\{\}
		\item Use figure* to span columns.
	\end{itemize}
\end{column}

\begin{column}[T]{4cm}
\begin{figure}[htbp]
	\begin{center}
	\fbox{\includegraphics[width=4cm]{placeholder}} \\
	\caption{\sf This is a figure.} \label{fig:FigureExample}
	\end{center}
\end{figure}

\end{column}
\end{columns}


}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{{Labels and References}{Which Image Was That, Again?}

\begin{enumerate}
	\item In just about any environment that numbers things, you might want to refer back to a number.
	\item You can do this by using a $\backslash$label\{\} command.
	\item For example, I'll label this item $\backslash$label\{item:AnItem\} \label{item:AnItem}
	\item Now I can type ``Item $\backslash$ref\{item:AnItem\}'' to refer to Item~\ref{item:AnItem}.
	\item Since I labelled the figure above as well, I can also refer to Figure~\ref{fig:FigureExample}. Or Table~\ref{tab:TableExample}, below. Or Section~\ref{sec:Basic}.
	\item Note that you should always put the label after the caption.
\end{enumerate}

}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{{Tables}{All Set. But Complicated}

\begin{columns}[T]
\begin{column}[T]{6cm}
	\begin{itemize}
		\item Tables are trickier.
		\item The \texttt{table} environment marks an APA table.
		\item The \texttt{tabular}\{\}\{\} environment actually lays out the table.
		\begin{itemize}
			\item In the \{\} after tabular, list the columns.
			\item $\backslash$begin\{tabular\}\{lcc\} \\
			 is a 3-column table, with the middle cols centered.
		\end{itemize}
		\item Inside the table, use \& to separate columns.
		\item $\backslash$thickline for horizontal lines. 
	\end{itemize}
\end{column}

\begin{column}[T]{4cm}
	\begin{table}[htbp]
	\begin{center}
	\caption{\sf This table is an APA style template with \texttt{booktabs}. \label{tab:TableExample}} \medskip {
	\begin{tabular}{lcc} \toprule
	Head1 & Head2 & Head3  \\ \midrule
	 $5$  & $5^2$ & etc    \\
	      &       &        \\
	      &       &        \\
	      &       &        \\
	      &       &        \\ \bottomrule
	\end{tabular}
	}
	\end{center}
	\end{table}
\end{column}
\end{columns}

}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{{Introduction to Math} {Math Basics}

\begin{itemize}
\item The basic {\em inline} math environment can be started and ended with
a \$.
\item But it's apparently better to use $\backslash($ and
$\backslash)$
\item From there, \^~ means superscript, \_ means subscript.
\item Use \{ \} to enclose more than one object.
\item $\backslash($ X\^~2\_n $\backslash)$ gets you \(X^2_n\)
\item and $\backslash($ X\^~\{2e$+$15\} $\backslash)$ gets you
\(X^{2e+15}\)
\item[]
\item You can use these to write things like H$_2$O and HNO$_3$
\end{itemize}

}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{{Introduction to Math} {Math Symbols}

\begin{itemize}
\item In math mode, you can also use math characters
\item Like $<$, $>$, which show up as < and >, otherwise.
\item Also, most of the greek alphabet is available using
$\backslash${\em$<$lettername$>$}
\begin{itemize}
\item So, $\backslash$alpha for $\alpha$ and $\backslash$delta for
$\delta$
\item A couple also have capitals, so $\backslash$gamma for
$\gamma$ or $\backslash$Gamma for $\Gamma$.
\item Use google to find a full list.
\end{itemize}
\item There're also useful other symbols like $\backslash$pm for
$\pm$
\end{itemize}

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{{Introduction to Math} {Math Environments}

\begin{itemize}
\item To get the {\em display math} environment, use two \$s
\item (For better form, use $\backslash$[ and $\backslash$])
\item Display math sets off the equation from the rest of the
text.
\end{itemize}

For example, I could write something here, then mention this
equation: \[ X_i = \alpha^2_i \] and then continue typing.

(For example, I could write something here, then mention this
equation: \$\$ X\_i = $\backslash$ alpha\^~2\_i \$\$  and then continue
typing.)

}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{{Introduction to Math} {Math Environments}

\begin{itemize}
\item The {\em equation environment} also numbers the equation
\item Use $\backslash$begin\{equation\} and
$\backslash$end\{equation\} to set it off.
\item It looks like display math, but with numbers.
\end{itemize}

\begin{equation}
X_i = \alpha^2_i
\label{eq:XEqualsAlpha}
\end{equation}
Then (if I label it) I can refer to Equation~\ref{eq:XEqualsAlpha}.

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Citing}
\frame{{BibTeX}{Keeping Your References Straight}

\begin{itemize}
	\item BibTeX is the tool \LaTeX{} uses for reference management.
	\item To use it, you need to make a .bib file. But only one.  Ever.
	\item .bib files keep the information about your citations.
	\item Reference your bib file at the bottom of your document, using $\backslash$bibliography\{filename\}
\end{itemize}

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{{Inline Citations}{And How To Use 'Em}

\begin{itemize}
	\item Once you have a bibfile attached, you can cite using $\backslash$cite\{citeKey\}.
	\item You need to run \LaTeX{}, then BibTeX, then \LaTeX{} again.
	\item But it will automatically fill in the information you request.
	\item And add the reference to your reference page.
\end{itemize}

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{{Inline Citations}{The Fun Ones}

\begin{itemize}
	\item There are trickier citations, too.
	\item $\backslash$citeauthor\{citeKey\} gets just the name.
	\item Similarly, you can use $\backslash$citeyear\{citeKey\}
	\item And add notes using $\backslash$cite$<$pretext$>$ $[$posttext$]$\{citeKey\}
\end{itemize}

}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{{APA Reformats}{The Quick Switch}

\begin{itemize}
	\item The layout of the document is specified by the $\backslash$documentclass$[]$\{\} line at the top.
	\item In the \{\}s is the name of the style you're using.
	\item Inside the $[]$ are the options to that style file.
	\item Mostly for papers, we use \{apa\}.
	\item But the APA specifies several formats.
	\item Use $[$doc$]$ for standard docs.
	\item $[$jou$]$ gets you two-column reprints.
	\item $[$man$]$ gets you submission-style manuscripts with figures at the end, etc.
	\item If you're switching column widths and want a page-wide figure or table, use figure* or table* environments instead.
\end{itemize}

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{{APA Reformats}{A few useful commands}

\begin{itemize}
	\item Sometimes you want things to change when you shift from a two-column to one-column preprint.
	\item The APA style provides a few standards for this.
	\item Use $\backslash$ifapamode\{man-code\}\{jou-code\}\{doc-code\}
	\item Then fill in XXX-code with the code for that mode.
	\item There's also $\backslash$ifapamodejou\{jou-code\}\{man-or-doc-code\}
	\item This will only do one part, depending on the mode.
	\item Try $\backslash$newlength\{$\backslash$figurewidthChanges\} \\
$\backslash$ifapamodejou\{$\backslash$figurewidthChanges 3.1in\}\{$\backslash$figurewidthChanges $\backslash$textwidth\}
	\item If your figure uses  $[$width$=\backslash$figurewidthChanges$]$ then the figure will get smaller in two-column mode.
\end{itemize}

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Lists}
\frame{ {Basic Layout} {Lists}

Lists in \LaTeX{} come in two forms: {\em enumeration} (numbers) and
{\em itemize} (bullets).
\begin{enumerate}
\item Both are environments, so begin them with
$\backslash${\bf begin}\{{\em Listtype}\} \\
    (Where {\em Listtype} is {\bf itemize} or {\bf enumerate})
\item Each element of the list is a $\backslash$\bf{item}.
\item End them with $\backslash${\bf end}\{{\em Listtype}\}
\end{enumerate}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{ {Basic Layout} {Enumerations}

\begin{columns}[t]
\column[T]{5cm} {\small
 $\backslash$begin\{enumerate\} \\
 $\backslash$item This is an example. \\
 $\backslash$item This is another.
\hspace{2em}    $\backslash$begin\{enumerate\} \\
\hspace{2em}    $\backslash$item Subexample. \\
\hspace{2em}    $\backslash$item Two, actually. \\
\hspace{2em}    $\backslash$end\{enumerate\} \\
$\backslash$item More examples. $\backslash$label\{ex:AnExample\} \\
$\backslash$end\{enumerate\}
 }

\column[T]{4cm} {\small
\begin{enumerate}[1]
\item This is an example.
\item This is another.
    \begin{enumerate}[A]
    \item With parts.
    \item Two, actually.
   \end{enumerate}
\item More examples. \label{ex:AnExample}
\end{enumerate}
}
\end{columns}
\vspace{.5cm}{\center I've labelled Ex.~\ref{ex:AnExample}.}

}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\frame{ {Basic Layout} {Enumerate}

\begin{columns}[t]
\column[T]{5cm}
\LaTeX{}:\\
{\small
 $\backslash$begin\{enumerate\}[Ex. I] \\
 $\backslash$item This is an example. \\
 $\backslash$item This is another.
\hspace{2em}    $\backslash$begin\{enumerate\}[\{part\} a)] \\
\hspace{2em}    $\backslash$item Subexample. \\
\hspace{2em}    $\backslash$item Two, actually. \\
\hspace{2em}    $\backslash$end\{enumerate\} \\
$\backslash$item More examples. $\backslash$label\{EX2\} \\
$\backslash$end\{enumerate\}
 }

\column[T]{4cm} {\small
Output:\\
\begin{enumerate}[Ex. I]
\item This is an example.
\item This is another.
    \begin{enumerate}[{part} a)]
    \item With parts.
    \item Two, actually.
    \end{enumerate}
\item More examples. \label{EX2}
\end{enumerate}
}
\end{columns}
\vspace{.5cm}{\center I've labelled Ex.~\ref{EX2}.}

}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{ {Basic Layout} {Itemize}

\begin{columns}[t]
\column[T]{5cm}
\LaTeX{}:\\
{\small
 $\backslash$begin\{itemize\} \\
 $\backslash$item This is an example. \\
 $\backslash$item This is another.
\hspace{2em}    $\backslash$begin\{itemize\} \\
\hspace{2em}    $\backslash$item With parts. \\
\hspace{2em}    $\backslash$item Two, actually. \\
\hspace{2em}    $\backslash$end\{itemize\} \\
$\backslash$item[-] More examples. \\
$\backslash$end\{itemize\}
 }

\column[T]{5cm}
Output:
{\small
\begin{itemize}
\item This is an example.
\item This is another.
    \begin{itemize}
    \item With parts.
    \item Two, actually.
    \end{itemize}
\item[-] More examples.
\end{itemize}
}
\end{columns}

}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{ {Basic Layout} {Itemize}

\begin{columns}[t]
\column[T]{5cm} {\small
 $\backslash$begin\{description\} \\
 $\backslash$item[This] is an example. \\
 $\backslash$item[This] is another.
\hspace{2em}    $\backslash$begin\{description\}[\{part\} a)] \\
\hspace{2em}    $\backslash$item[With] parts. \\
\hspace{2em}    $\backslash$item[Two], actually. \\
\hspace{2em}    $\backslash$end\{description\} \\
$\backslash$item[More] examples. \\
$\backslash$end\{description\}
 }

\column[T]{5cm} {\small
\begin{itemize}
\item[This] is an example.
\item[This] is another.
    \begin{itemize}
    \item[With] parts.
    \item[Two] actually.
    \end{itemize}
\item[More] examples. \label{EX4}
\end{itemize}
}
\end{columns}

}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Beamer}
\begin{frame}
Beamer lets you write nifty-looking presentations.
\begin{itemize}
\item<1-> And reveal things
\item<2-> One at a time
\item<3> And even hide them again
\item<4- | handout:0> As you go along.
\end{itemize}
\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
To use Beamer, you need to install the beamer package (like we talked about).
\begin{itemize}
\item Then you use beamer in the documentclass line:
\item $\backslash$documentclass$[$presentation$]$\{beamer\}
\item Beamer requires you write your file like a slideshow from there.
\item But just about everything that worked in APA format works here, too.
\end{itemize}
\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{{The Frame Enviroment}{The Core Of Beamer}

The \texttt{frame} environment in beamer is the main feature.
\begin{itemize}
\item Officially, use $\backslash$begin\{frame\} and $\backslash$end\{frame\}.
\item Then titles are with $\backslash$frametitle\{A Title!\}
\item And subtitles are with $\backslash$framesubtitle\{Subtitles are optional, surely.\}
\item The faster way is with $\backslash$frame\{\{A Title\}\{Subtitles are optional, surely.\} and then the frame text and a \}
\end{itemize}

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{ {A Simple Frame} {That's self-referential}

$\backslash$frame\{ \{A Simple Frame\} \{That's self-referential\} \\

...\\

 \}

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{ {Themes} {The Beamer Themer}

Layouts in Beamer have themes that define how they look.
\begin{itemize}
	\item Themes are named after cities. Why? Dunno.
	\item Steve made a CVille theme for Charlottesville.
	\item But people like PaloAlto and Madrid a lot, too.
	\item Set themes using the \texttt{$\backslash$usetheme\{City\}} command.
	\item This gets set at the top of the .tex file.
	\item There are also \texttt{$\backslash$usecolortheme\{mascot\}}.
	\item {\small Ours is \texttt{$\backslash$usecolortheme\{cavs\}}.}
\end{itemize}

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{ {Mode Changes}{Like For Handouts}

To change modes, just change the word presentation in \\ $\backslash$documentclass$[$presentation$]$\{beamer\} \\
to something else.
\begin{itemize}
	\item Handouts are the most common.
	\item You can define what's different in those modes using $\backslash$mode$<$name$>$\{\\
		options\\
		\}
	\item That way you don't need to rewrite anything to make handouts.
\end{itemize}

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{ {Reveals} {One-at-a-timing}

To do reveals, use \texttt{$\backslash$uncover<2->\{Text\}}
\begin{itemize}
	\item The \texttt{2-} means from frame 2 on.
	\item You could use \texttt{2-4} to mean 2 through 4
	\item Or \texttt{-3} to mean until frame 3.
	\item If you remove the \texttt{$\backslash$setbeamercovered\{transparent\}} command, you'll be able to see these a little bit.
	\item items in a list can just use \texttt{$\backslash$item<2->} as a shortcut.
	\item And to hide an item in some modes, use something like \texttt{<handout:0>}
\end{itemize}

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{ {Conclusions} {Not that I'm really concluding anything.}

\LaTeX{} and Beamer are awesome.
\begin{itemize}
	\item Play with them a little, and you'll get used to them quickly.
	\item To start, copy and paste from templates.  It's easier.
	\item If you have questions, the Internet is your friend.
	\item Also, my email is tbrick at virginia.  Feel free to email. \\
	{\small But be warned that I'm not always quick at replying.}
\end{itemize}

}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{ {Conclusions} {Not that I'm really concluding anything.}

\begin{center}
	{\bf \huge Thank You.}
\end{center}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\appendix
\section{This Section Wasn't Listed Before}
\frame{ {A Hidden Slide}{In case you like those}

This slide won't show up on the Outline, but is here to answer questions.

}

\end{document}

