	  %% Revised 7/26/02 (sasen, bveto, haspel, cmihelic)
%% Revised 7/19/04 (paulryu)
\documentclass[landscape]{slides}

\usepackage{standard-slide-include}
\usepackage{graphicx}

\title{Graphics and Graphs on Athena}
\author{RSI {\number\year} Staff}
\date{}

\begin{document}

\newbox\tildebox
\setbox\tildebox\hbox{\catcode`~ 11 \texttt{~}}

\def\arg#1{\texttt{<#1>}}

%\message{[Cleared \string\begin{document}.]}

\begin{slide}
    \thispagestyle{empty}
    \maketitle
\end{slide}

\begin{slide}
  \begin{small}
    \tableofcontents
  \end{small}
\end{slide}

\addtocounter{slide}{-1}

%\message{[Ready for 'What is Athena, Anyway?']}

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

\begin{slide}
  \slidetitle{Figures in \LaTeX\ }
  \begin{itemize}
    \item \verb+\includegraphics+ command
    % \item Only EPS files work natively, but other graphics can be converted


    \item Graphics can be scaled, rotated in \LaTeX
    \item XFig: a drawing program
    \item \verb+display+, \verb+gv+: image viewers
    \item gnumeric: a spreadsheet
  \end{itemize}
\end{slide}

\begin{slide}
  \slidetitle{Putting a Graphic in Your Paper}

  Use the \verb+\includegraphics+ command inside a \verb+figure+
  environment.
\begin{verbatim}
\begin{figure}[ht]\label{ceelogo}
\begin{center}
\includegraphics{cee.ps}
\end{center}
\caption{The CEE logo}
\end{figure}
\end{verbatim}

\begin{figure}[ht]\label{ceelogo}
\begin{center}
\includegraphics{cee.ps}
\end{center}
\caption{The CEE logo}
\end{figure}

Refer to it as \verb+Figure~\ref{ceelogo}+.

\end{slide}

\begin{slide}
  \slidetitle{Placing Your Figures}

\begin{center}
\verb+\begin{figure}[+\emph{letters}\verb+]+
\end{center}

where the \emph{letters} can be:
\begin{description}
\item[h] Place the figure right here, darn it.
\item[t] Place the figure at the top of the next page.
\item[b] Place the figure at the bottom of the page.  
\item[p] Place the figure on a page of figures.
\end{description}
Put your favorite choice first.  You are not guaranteed your first choice.
\end{slide}

\begin{slide}
  \slidetitle{Scaling and Rotating Graphics}

\begin{itemize}
\item\verb+\includegraphics[scale=2]{cee.ps}+
\item\verb+\includegraphics[height=4in]{cee.ps}+
\item\verb+\includegraphics[width=5in]{cee.ps}+
\item\verb+\includegraphics[angle=45]{cee.ps}+
\end{itemize}

You can give several optional arguments:
\begin{verbatim}
\includegraphics[scale=2,angle=45]{cee.ps}
\end{verbatim}

\end{slide}

\begin{slide}
  \slidetitle{Several Graphics in One Figure}

Put a \verb+tabular+ of graphics in the Figure:
\begin{verbatim}
\begin{figure}[hbtp]
\begin{center}
\begin{tabular}{cc}
\includegraphics{cee.ps}&\includegraphics{cee.ps}\\
\includegraphics{cee.ps}&\includegraphics{cee.ps}
\end{tabular}
\end{center}
\caption{Four times}
\end{figure}
\end{verbatim}

If your graphics are of different sizes, you might need to use
the \verb+width+ and/or \verb+height+ arguments to \verb+\includegraphics+.

\end{slide}

\begin{slide}
  \slidetitle{The Result}

\begin{figure}[hbtp]
\begin{center}
\begin{tabular}{cc}
\includegraphics{cee.ps}&\includegraphics{cee.ps}\\
\includegraphics{cee.ps}&\includegraphics{cee.ps}
\end{tabular}
\end{center}
\caption{Four times}
\end{figure}

\end{slide}

% \begin{slide}
%  \slidetitle{Converting to EPS}
%
%  If your graphic is not in EPS but is in some other commonly recognized
%  graphics format (e.g., TIFF, JPEG, GIF, or even Macintosh PICT), you
%  can convert it to EPS as follows:
%
%\begin{verbatim}
%athena% add graphics
%athena% imconvert filename.foo filename.eps
%\end{verbatim}
%
%On a Linux machine, say \verb+convert+ instead of \verb+imconvert+.
%
%Make sure to run \verb+clg+ over your newly created EPS graphics.
%
%Some programs that do not export EPS will export other graphics formats,
%after which you can finish the job with \verb+imconvert+.
%
%\end{slide}

\begin{slide}
    \slidetitle{Xfig}
\begin{itemize}
  \item Use grids to make figure to scale
  \item Modify coordinates manually if needed
  \item Use \verb+Fill+ $\rightarrow$ \verb+Pattern+ to fill in areas
  \item You will need to use all three mouse buttons.  The left button
  does what you would normally expect, the middle button generally
  completes a figure (closes polygons, etc.), and the right button
  generally discards.

\end {itemize} 
\end{slide}

\begin{slide}
    \slidetitle{Saving and Exporting}
  \begin{itemize}
  \item DO keep the original \texttt{*.fig} format
  \item THEN export file to an image format (\textit{not} \texttt{*.eps})
  \item Come back later and modify the \texttt{*.fig} file
  \end{itemize}
\end{slide}

\begin{slide}
    \slidetitle{display and gv}
\begin{itemize}
   \item \verb+display+ is primarily a graphics viewing program though it has some image editing tools
 
   \item Use \verb+display+ to view images, crop or resize them, or turn them to greyscale
   \item You can also use \verb+gimp+ to take screen captures (if you need)
   \item \verb+gv+ will view postscript files 
\end{itemize}
\end{slide}

\begin{slide}
    \slidetitle{Gnumeric}
\begin{itemize}
    \item Gnumeric is a spreadsheet similar to MS Excel.
    \item \verb+athena% add gnumeric+ \\
          \verb+athena% gnumeric &+
    \item Highlight data and click graph icon, modify options
    \item Do not use for tables! Use \LaTeX\ tables.
\end{itemize}
\end{slide}

\begin{slide}
    \slidetitle{Converting gnumeric to an image}
\begin{itemize}
    \item On chart: right-click, \verb+Save as image+
    \item Enter file name (foo) \\
     Use \texttt{.png} for file type
    % \item \verb+athena% convert foo.png foo.eps+ 
    \item OR just make the table in \LaTeX

\end{itemize}
\end{slide}

\end{document}

