\documentclass[12pt]{article}

\usepackage{graphicx,fullpage}

\begin{document}
\section*{Figures, References and Citations}

\subsection*{Figures}

In this lab, we will be producing a lot of figures in Maple, and
we'll want to incorporate them into the lab.

I like to save two forms of each plot- One is the encapulated postscript
(eps) form, and one is the JPG form.  When you use {\tt PDFlatex}, the
program looks for the JPG format, but if you were to use just latex,
the software looks for the EPS form.  In Maple, go ahead and plot
something- For example,
\begin{verbatim}
plot(x^2,x=-3..3);
\end{verbatim}
Right click the mouse on the graph, and choose {\tt Export}, then
choose either JPG or Encapsulated Postscript.  

{\it IMPORTANT POINT:} Save
your graph in the same folder as your LaTeX file.

Now, in LaTeX, here is the command- In this example, I have my
figure saved as:  {\tt Lab02Fig01.jpg} and {\tt Lab02Fig01.eps} 
\begin{verbatim}
\begin{figure}[h]
\centering
\includegraphics[width=3.0in]{Lab02Fig01}
\caption{This is a caption for the figure.}
\label{LabelForGraph01}
\end{figure}
\end{verbatim}

And the result is Figure \ref{LabelForGraph01} (we've actually put
two graphs in one figure to show you how to do it).  The {\tt h} in the top line
tells LaTeX that you'd like the figure ``here''.  Other options
are T (for top) and B (for bottom).  Please do not try to force where
the figure appears- Let LaTeX figure it out automatically.
\begin{figure}[h]
\centering
\includegraphics[width=1.0in]{Lab02Fig01}\qquad
\includegraphics[width=1.0in]{Lab02Fig01}
\caption{This is a caption for the figure.}
\label{LabelForGraph01}
\end{figure}
Other notes:  In order to reference the figure in your text, we
needed to {\tt label} the figure (see the figure command above).
In LaTeX, we would type, for example:
\begin{verbatim}
See Figure \ref{LabelForGraph01}, where we plotted the function...
\end{verbatim}
And in your document, you should see (you may have to run LaTeX twice):
\begin{quote}
See Figure \ref{LabelForGraph01}, where we plotted the function...
\end{quote}

\subsection*{Labels and References}

We can label more than figures- We can label equations as well.  
Here is an example of labeling, then referencing an equation.  Note
the use of \verb+\begin{equation}+ instead of \verb+$$+.
\begin{verbatim}
\begin{equation}
x=\frac{-b\pm \sqrt{b^2-4ac}}{2a}
\label{QuadForm}
\end{equation}
\end{verbatim}
Which produces the quadratic formula, and the equation is numbered:
\begin{equation}
x=\frac{-b\pm \sqrt{b^2-4ac}}{2a}
\label{QuadForm}
\end{equation}


Now in my text, I can write something like:
\begin{verbatim}
...  the solutions are shown in Equation \ref{QuadForm}.
\end{verbatim}
and the result is:
\begin{quote}
...  the solutions are shown in Equation \ref{QuadForm}.
\end{quote}

You can also put labels on sections, subsections, and items in lists
in order to refer back to them (with numbers put in automatically!).

\newpage

\subsection*{Citations and Bibliography}

It is very important to always cite your sources.  Here is a very short
example citation from the website we linked to from class:
\begin{verbatim}
This is obvious \cite{norman}.
\end{verbatim}

Which results in:  This is obvious \cite{norman}.  If you see 
a question mark for the citation, run LaTeX again.  In place
of references in your document, you'll have:

\begin{verbatim}
 \begin{thebibliography}{1}
  \bibitem{notes} John W. Dower {\em Readings compiled for History
  21.479.}  1991.
  
  \bibitem{impj}  The Japan Reader {\em Imperial Japan 1800-1945} 1973:
  Random House, N.Y.
  
  \bibitem{norman} E. H. Norman {\em Japan's emergence as a modern
  state} 1940: International Secretariat, Institute of Pacific
  Relations.
  
  \end{thebibliography}
\end{verbatim}

For students interested in managing a large bibliography,
look up the use of ``BibTeX''.  We will typically have 1 or 2 references,
so the technique shown here is fine.


 \begin{thebibliography}{1}

  \bibitem{notes} John W. Dower {\em Readings compiled for History
  21.479.}  1991.

  \bibitem{impj}  The Japan Reader {\em Imperial Japan 1800-1945} 1973:
  Random House, N.Y.

  \bibitem{norman} E. H. Norman {\em Japan's emergence as a modern
  state} 1940: International Secretariat, Institute of Pacific
  Relations.

  \end{thebibliography}


\end{document}

