\documentclass[11pt,letterpaper]{article}
\usepackage{graphicx}

\author{Jason Underdown}
\title{Tables and Images in \LaTeX{} Documents}


% This document shows how to add simple tables and figures (pictures)
% to LaTeX documents. Notice that if you wish to add pictures, then
% you will need use the "graphicx" package, i.e. you will neeed the
% above "\usepackage{graphicx}" command in the preamble of your
% document.


\begin{document}

\maketitle

\section{Tables}

When you need to put a table in your document, you should let the
\LaTeX{} engine figure out where to ``float'' your table. To do this
wrap the \texttt{tabular} environment in a \texttt{table} environment,
to get something like so:

\begin{table}[htp] % position specifier h=here, t=top, p=page
  
  \centering
  \begin{tabular}{c|r|r} % defines number of columns and alignment for each
    \hline
    S.\&P. 500& Dow & Nasdaq \\
    \hline
    1,671.71 & 15,063.12 & 3,706.18 \\
    +16.54 & +140.62 & +46.17 \\
    +1.00\% & +0.94\% & +1.26\% \\
    \hline
  \end{tabular}
  
  \caption{Today's stock data}
  \label{tab:stocks} % a name for the table so we can refer to it in
                     % the text
\end{table}

The \texttt{tabular} environment is simply a container for the data of
your table. The \texttt{table} environment turns it into a floating
body, which is simply a way to refer to a document element that can't
be split up over pages. See the ``Not So Short Introduction to
\LaTeX2e'' for details.

These environments come with stock \LaTeX{}, no need to use any
additional packages. When you wrap a \texttt{tabular} environment in a
\texttt{table} environment it allows you to add a \texttt{label} so
that you can refer back to the table via a \texttt{ref}. For example
the preceding table is table \ref{tab:stocks}. See the accompanying
source code of this document for details.


\section{Images and Figures}

If you want to put images into your document, then you will need to
have the following in the preamble of your document.
\begin{verbatim}
\usepackage{graphicx}
\end{verbatim}

Recall that when you install \LaTeX{}, you actually install a whole
suite of programs which are capable of transforming \LaTeX{} source
documents into a variety of formats such as: PDF, PostScript, DVI, and
other formats.  Each of these document types have restrictions on
types of images they can contain.

% Put an image right here in the document, scaled down to half size
% and centered.
\begin{center}
\includegraphics[scale=0.5]{Ulogo.png}
\end{center}

% If you have a somewhat larger image such as a graph which you want
% to refer to later in your document then you should use a figure
% environment.

\begin{figure}[htp]
  \centering
  \includegraphics[scale=0.5]{sine.pdf}
  \caption{The graph of $f(x) =\sin(x)$.}
  \label{fig:sine}
\end{figure}







\end{document}
