viewing - Maple Help

# Online Help

###### All Products    Maple    MapleSim

Printing and Viewing Maple LaTeX Documents

Setup for Printing and Viewing Maple LaTeX Documents

 • To format and print documents exported (or saved) as LaTeX from Maple worksheets, you require access to a standard version of LaTeX and to the LaTeX style package maple.sty located in the etc subdirectory of your Maple installation.  On Macintosh, the style file is located in the /Library/Frameworks/Maple.framework/etc folder of your Maple installation.
 • Copy the maple.sty file into the same directory (or folder) as the LaTeX file you want to process. Processing your file with LaTeX creates a .pdf or .dvi file. If you are unable to locate the maple.sty file, enter kernelopts(mapledir) to see the directory of your Maple installation, use a File Manager to locate it, and under it you will find the etc directory containing maple.sty.
 Note: For Classic worksheets (.mws files), see Setup for Classic Maple LaTeX Documents.

Document Structure

 • An exported "Maple to LaTeX" document is structured as described below.
 • The document preamble contains the following command, which instructs LaTeX to use the maple package.  The document class can be changed.
 \documentclass[fullpage,11pt]{article}  % a standard LaTeX style
 \usepackage{maple}
 • The macro definitions for "maple" define the various environments used in the LaTeX documents produced by Maple.  They include definitions for the following special environments:
 • Maple spreadsheets are exported to a special tabular environment:
 \begin{maplespreadsheet}...\end{maplespreadsheet}

Changing Overall Layout Parameters

 • You can change the overall layout either by choosing a different document class, for example
 \documentclass[10pt]{book}  % a standard LaTeX style
 \usepackage{maple}
 or by making a copy of the maple.sty file and editing some of the parameters that are set in that file. These parameters control properties such as page height and width and the amount of spacing above and below Maple objects.

Exporting Worksheets Containing Plots

 • When you export a Maple worksheet that contains Maple-generated plots, each plot is regenerated by Maple in PostScript and saved to a separate file. The plot file names are generated automatically from the name of the worksheet and are numbered sequentially.
 A reference to the exported PostScript file, such as
 \mapleplot{worksheetname01.ps}
 is inserted into your LaTeX file at the location where the inline plot will appear.

Printing LaTeX Files Containing Maple Plots

 • To process a LaTeX file that contains macros of the form \mapleplot{...}, LaTeX must know which dvi-to-PostScript conversion program is to be used.
 • By default, it is assumed that the PostScript conversion program dvips is in use, but there are several other such programs to choose from, depending on which LaTeX installation you are using.
 • To make use of a different dvi-to-PostScript converter (for example, dvi2ps), modify the maple usepackage definition in your document preamble to read
 \usepackage[dvi2ps]{maple}
 • If you do not have any dvi-to-PostScript conversion program installed, modify the usepackage macro call to read
 \usepackage[noplots]{maple}

Setup for Classic Maple LaTeX Documents

 • To format and print documents exported (or saved) as LaTeX from Classic Maple worksheets (.mws files), use the LaTeX style package maple2e.sty.  This style file is also located in the etc subdirectory of your Maple installation.  Follow the instructions above to copy the contents of the etc directory to the location with your LaTeX file.  In the document preamble, the following command instructs LaTeX to use the maple2e package.
 \documentclass[fullpage,11pt]{article}  % a standard LaTeX style
 \usepackage{maple2e}
 • The formatting and style macros are the same as those described above for maple.
 • To set the dvi-to-PostScript converter (for example, dvi2ps), modify the usepackage definition in your document preamble to read
 \usepackage[dvi2ps]{maple2e}

 See Also