
Printing and Viewing Maple LaTeX Documents
==========================================


To format and print documents export (or saved) as LaTeX from Maple you
will need access to a standard version of LaTeX (LaTeX2e) and the LaTeX
style package "maple2e.sty". A copy of this package resides in this
directory.

Place this style file in the same directory (or folder) as the
file you wish to process. Processing the file with "latex" creates
a .dvi file.

Your document preamble should contain a command to use this package as 
in

    \documentclass[fullpage,11pt]{article}  % a standard latex style
    \usepackage{maple2e}

or for LaTeX 2.09,

    \documentstyle[fullpage,11pt,maple209]{article}

The file "maple2e.sty" (or "maple209.sty" if you are using LaTeX 2.09)
reads in the maple2e package of macros. 
It defines the various environments used in the LaTeX
document which Maple produced.  This includes definitions for the
special environments

    \begin{mapleinput}  ... \end{mapleinput}
    \begin{maplettyout} ... \end{maplettyout}
    \begin{maplelatex}  ... \end{maplelatex}

and the macro

    \mapleplot{plotfilename}

to facilitate the inclusion of plots, and a macro "\mapleinline" for
handling inline 2-D display which Maple generates.  For example,

    \mapleinline{inert}{2d}{sin(x^2);}{$\sin(x^2)$}

The exported worksheet also has provision for defining styles. 
A macro appears in the preamble for each of the paragraph and character
styles in use, including named user styles.  This macro checks to
see if LaTeX has defined such a style, and if not, defines it
in a manner which defaults to the normal document style.  This
The user can easily override this by defining new latex environments
or macros.  Some examples of such definitions are:

    % Named Maple Paragraph Styles
    \newenvironment{Normal}{\normalsize\rmfamily\mdseries}{}
    \newenvironment{Text Output}{\normalsize\ttfamily\mdseries}{}
    \newenvironment{Title}{\begin{center}\rmfamily\Large\bfseries\upshape}%
    {\end{center}}
    % Named Maple Character styles
    \newenvironment{Warning}{\ttfamily}{}
    \def\HyperLink#1{{\normalsize\rmfamily\itshape #1}}

Character style names with blanks in them require special treatment as in

    \expandafter\def\csname Help Heading\endcsname#1{%
        {\large\bfseries\sffamily\upshape #1}}

You can modify the overall style of your latex document by creating
or changing these macro definitions.  Such changes should occur
in the preamble.


Changing Layout Parameters 
--------------------------

You can change the layout of the special Maple regions by modifying
the settings of some of the parameters which maple2e.sty defines
and by redefining the character style and paragraph style definitions
as the previous section described.

The file maple2e.sty has a detailed list of such parameters.
You may make the changes in the preamble to your document.


Including Plots 
---------------

When Maple generated plots are encountered, they are written to 
a file in postscript and a macro call of the form

	\mapleplot{postscript.out}

is inserted into your file.  

In order to include such graphics in your document you must have
one of the many "dvi" to "postscript" conversion programs that are
now available.

If you do not have any such program, then modify the your preamble to
include the line

	\usepackage[noplots]{maple2e}

Alternatively, if you have a specific dvi conversion program such as
"dvips" then modify your preamble to 

	\usepackage[dvips]{maple2e}

The conversion program "dvips" is the default if you do not specify
an option. 
