Translation of Maple Worksheets to LaTeX
The Export as LaTeX facility translates a Maple worksheet or document into a LaTeX 2e document.
For instructions on how to export a Maple worksheet as LaTeX, see Export as LaTeX.
The generated LaTeX document contains a number of usepackage calls corresponding to packages distributed with modern LaTeX distributions.
Description
The Maple LaTeX Document Structure
Redefining Styles
The following is a description of what happens when you export the worksheet:
Displayed mathematics including both Maple output and 2-D input is translated into LaTeX 2e, using line-breaking algorithms to conform to the document width requested by the user.
Many special symbols and mathematical notation are translated to equivalent LaTeX expressions to preserve their appearance in LaTeX.
1-D Maple input is translated using the listings package.
Code Edit Regions are translated using the listings package.
Text is exported to LaTeX text using UTF-8 encoding.
Text formatting such as bold, underline, superscripts, subscripts are exported to LaTeX equivalents.
Hidden content is not exported.
Images are exported to external image files and links to these files are included in the LaTeX document.
Sections and subsections are mapped to LaTeX sections and subsections as required.
Note that sections which are collapsed at time of export will not appear in the generated LaTeX.
Sketches are not exported.
Maple character styles are mapped directly onto LaTeX 2e macro calls.
Maple paragraph styles are mapped onto LaTeX environments.
Maple spreadsheets are converted to LaTeX tables.
Processing
The Maple worksheet or document is processed from beginning to end and written to a file.
Images and plots are exported to separate files in appropriate formats and links to those files are inserted in the LaTeX document.
The resulting text file is a LaTeX document that can be presented in many different formats simply by selecting different LaTeX document classes and parameters.
In the initial document, Maple uses a standard LaTeX style known as article.
Some page numbering options specified in the Maple worksheet are applied to the LaTeX document. These include the following:
Page numbering on or off
Starting number
Numbering of the first page
Style of the page numbers
Page Layout
The horizontal and vertical positions of the page numbers are not exported. They are determined by LaTeX.
Page break objects are translated to the corresponding page break object.
The overall page layout of the document is decided by the document class specified at the top of the file. This is done by including a line of the following form:
\documentclass{article}
Several standard LaTeX 2e styles are available, such as report, book, and article, each giving a slightly different page layout. Many mathematics publishers provide their own styles.
The document body (the actual content of the Maple worksheet) appears between the lines.
\begin{document}
and
\end{document}
Macros
Several TeX macros appear between the class definition and the document body (an area of the LaTeX document called the document preamble.) These macros define (or redefine) other macros used in the document body.
The macro definitions specific to Maple documents are defined as a macro package called maplestd2e. This is included in your document by the line:
\usepackage{maplestd2e}
The Maple-defined styles used in your document are made known to LaTeX by macro calls of the following form:
\DefineParaStyle{maplegroup}
\DefineParaStyle{Author}
\DefineParaStyle{subtitle}
\DefineParaStyle{Bullet Item}
\DefineParaStyle{Dash Item}
\DefineParaStyle{Diagnostic}
\DefineParaStyle{Error}
\DefineParaStyle{Heading 1}
\DefineParaStyle{Heading 2}
\DefineParaStyle{Heading 3}
\DefineParaStyle{Heading 4}
\DefineParaStyle{Normal}
\DefineParaStyle{Text Output}
\DefineParaStyle{Title}
\DefineParaStyle{Warning}
\DefineCharStyle{2D Math}
\DefineCharStyle{Help Heading}
\DefineCharStyle{Maple Input}
\DefineCharStyle{FixedWidth}
\DefineCharStyle{endFixedWidth}
The default Maple styles each have a predefined LaTeX definition in maplestd2e.sty. For information, see Printing and Viewing Maple LaTeX documents. The user defined styles default to the style of the LaTeX document, but you can override them by adding macro definitions similar to those outlined below.
Samples of these style definitions are included near the end of the maplestd2e.sty file.
For example, the paragraph style for Normal and Title paragraph styles are defined as follows:
\newenvironment{Normal}{\normalsize\rmfamily\mdseries}{}
\newenvironment{Title}{\begin{center}\rmfamily\LARGE\upshape\ignorespaces}%
{\end{center}}
Character styles generally take the following form:
\expandafter\def\csname 2D Math\endcsname#1{%
{\rmfamily\upshape #1}}
\expandafter\def\csname Maple Input\endcsname#1{%
{\ttfamily\upshape #1}}
See Also
Export as LaTeX
Hide Content
latex
latex[functions]
latex[names]
Printing and Viewing Maple LaTeX documents
Download Help Document
What kind of issue would you like to report? (Optional)