%/courses/2130/05f/maple_graph.tex
\documentclass{article}
\usepackage{2130}
\usepackage{graphicx}
\footers{\tiny /courses/2130/05f/import\_maple\_graph.tex}{}{}

\begin{document}

\begin{center}
\large Importing Maple Graphs into a \LaTeX\ document
\end{center}
\vskip 1ex

\noindent
Maple files can be exported as \LaTeX\ files. There is a problem with
this option unless you use the ``classic'' worksheet in Maple. So
rather than typing ``xmaple \&'' at a terminal prompt, simply type
``maple -cw \&'' instead. This gives the classic worksheet without all
the java. The output from the tex file is still not very nice. I would
recommend using the ``graphicx'' package instead. Hence the beginning
of your file should look like:

\begin{verbatim}
\documentclass{article}
\usepackage{2130}
\usepackage{graphicx}
\end{verbatim}

\noindent
The following plot commands were cut and pasted from the .tex file
``exported'' from the ``cycloids.mws'' Maple worksheet and put within
the ``verbatim'' environment. 

\begin{verbatim}
> p2:=plot([2*(t-sin(t)),2*(1-cos(t)),t=0..2*Pi],scaling=constrained,
          color=black):
> p1:=plot([t-sin(t),1-cos(t),t=0..4*Pi],scaling=constrained,color=black):
> p0:=plot([0.5*(t-sin(t)),0.5*(1-cos(t)),t=0..8*Pi],scaling=constrained,
          color=black):
> plots[display]({p0,p1,p2});
\end{verbatim}

\noindent
Then the plot was produced with the command:

\begin{verbatim}
\includegraphics[height=5cm,keepaspectratio=true]{cycloids01.eps}
\end{verbatim}
\vskip 1ex

\includegraphics[height=5cm,keepaspectratio=true]{cycloids01.eps}

\vskip 1ex
\noindent
Maple exports the graphs as Encapsulated PostScript files. The name of
the worksheet is used in the naming of these EPS files and they are
numbered starting with the number 01. Since our worksheet is called
``cycloids.mws'', our graph has the name ``cycloids01.eps''.

\end{document}


