Exporting content

Editor content can be exported to a variety of formats. For maximum control, use the options provided under the Export menu. For select formats, you can convert content and place the result directly onto the clipboard.

Copying to the clipboard in special formats

Content can be copied to the clipboard in a special format using the Edit/Copy As menu. The content to copy will consist of the current selection, if any, or else the entire document. The following formats are available:

Image
Copies the content to the clipboard as a bitmap image.

LaTeX
Copies the content as a LaTeX document.

LaTeX for MathJax
Copies the content as LaTeX with no preamble, and with some constructs changed to work better with MathJax.

MathML
Copies the content as a MathML document.

MathML for MS Word
Copies the content as MathML for pasting into Word or other Office documents. Office’s ability to import MathML has some limitations which can affect the result:

  1. Only the full desktop version of Office applications can import math. MathML cannot be pasted into the Web version, but once the math is pasted into the document it will show in both versions.
  2. The Office equation editor is not meant for equations that span multiple lines. When pasting multiple lines, they will be combined into a single equation. As a workaround, you can copy and paste each line separately.

No additional options are available when copying to the clipboard. For more control over the conversion process, you can export content to a file as described below.

Exporting to an image

To convert a document into an image file, begin by choosing File/Export/Image. A dialog box opens so you can choose conversion options:

File type
Determines the image file format. Possible options include PNG, JPG, and SVG. We recommend using PNG or SVG, depending on what is supported by the app you wish to use the image in.

Scale
Scales the the image up or down compared to its default size (100%). Increasing the scale will make the image file larger, but yields a more detailed image that looks better when zoomed in or printed. The default scale of 100% is designed for use on screen. For high quality printing, a scale of about 300% is recommended. This options does not apply to SVG images. SVG is a vector image format, meaning that it can be scaled up to any size without becoming blurry. However, SVG is not as widely supported as the other formats.

Margins
Adds an empty margin around the outside of the content. The margin applies to all sides, and the size is set in pixels (small dots of color that comprise the image). For SVG images, a margin of similar size to the other formats is created, although SVG images are not made up of pixels.

Pencil color
This sets the default color for math. (That is, the color of math that you don’t explcitly style differently.)

Paper color
This sets the background color of the image. Note that the paper color of JPG images cannot be transparent or translucent, because the image format does not support this.

Export
Once all options are set as desired, choose Export to continue. You will be prompted to choose a file. Choose where to save the content, then choose Save to complete the export.

Exporting to LaTeX

LaTeX is a format for preparing documents for publication. Because of its broad support for mathematical documents, it is a commonly used in academia and publishing. Some applications also accept its math commands as a means of entering math content. To convert a document to LaTeX, begin by choosing File/Export/LaTeX Markup. A dialog opens so you can choose conversion options:

LaTeX dialect
Many differtent versions of LaTeX exist. This option lets you target a specific variant. The LaTeX option targets a broad range of versions. The XeTeX options targets XeTeX, which supports Unicode and modern fonts. The Jax option targets tools such as MathJax that can add support for rendering mathematics from LaTeX code to Web sites.

Display style
Controls whether math is formatted as Inline, meaning that it is included within a paragraph of regular text, or Display, which sets equations off similarly to a figure or table. The default Automatic option will format the document automatically based on the use of text objects within the document.

Math style
Controls whether the math is formatted to more closely match how it appears in the editor (As written) or typical LaTeX documents (Traditional).

Include preamble
If this option is enabled, a complete LaTeX document is produced that includes a preamble that explicitly includes any required packages. Otherwise, only the math content is exported.

Isolate definitions
This option only applies to the Jax dialect. When enabled, definitions in the generated LaTeX code will not affect other LaTeX on the same page. To work, your MathJax configuration must include the begingroup extension.

Export
Once all options are set as desired, choose Export to continue. You will be prompted to choose a file. Choose where to save the content, then choose Save to complete the export.

Exporting to MathML

MathML is an XML dialect for describing math content. It is commonly used in publishing and on some Web sites. To convert a document to MathML, begin by choosing File/Export/MathML Markup. A dialog opens so you can choose conversion options:

Dialect
This option lets you customize the generated MathML to target specific environments. Choose Standalone for a standalone XML document. Choose Embedded in HTML for MathML that will be part of an HTML5 document. Choose Jax for MathML that will be rendered using MathJax.

Display style
Controls whether math is formatted as Inline, meaning that it is included within a paragraph of regular text, or Display, which sets equations off similarly to a figure or table. The default Automatic option will format the document automatically based on the use of text objects within the document.

Preamble
Controls which XML declarations will be included at the start of the document: none, an XML declaration, a doctype declaration, or both. Choose Automatic to select the declarations automatically based on the other options that you choose.

Character escaping
This option controls which characters are escaped, and using what method. In XML and HTML, characters that are hard to type or might not be available in a file’s character encoding can be escaped. Some characters can be escaped using a special name that describes the character, such as &lt; for < less than. Any character, whether it has an assigned name or not, can be escaped using its numeric Unicode code point.

Choose Minimal to escape only characters that must be escaped in order to produce a valid result. Choose Numeric entities to escape both required characters and characters outside of the ASCII character set using their numeric values. Choose Named entities to escape characters using their special entity name when one is available, and otherwise using its numeric value. Note that some XML processing tools may not recognize the full set of names used by HTML documents (use numeric entities in this case).

Export
Once all options are set as desired, choose Export to continue. You will be prompted to choose a file. Choose where to save the content, then choose Save to complete the export.

Exporting to a PDF document

PDF is a common format for sharing uneditable versions of a document. Creating a PDF is similar to printing. To convert a document into a PDF file, begin by choosing File/Export/PDF Document. A dialog box opens so you can choose conversion options:

Paper size
Choose from standard sizes, including ISO standard sizes (such as A4) and North American standard sizes (such as Letter).

Layout
Choose portrait for a standard layout with the short edge at the top of the page. Choose landscape for a layout with the long edge at the top of the page. Portrait is recommended, as a landscape page with default settings will result in uncomfortably long lines of text.

Margins
Set the size of the margin on each side of page. The margin defines the blank space between the page edge and the content. Margins are set in millimetres (mm). The default of 25 mm is equivalent to 2.5 cm or approximately 1 inch.

Export
Once all options are set as desired, choose Export to continue. You will be prompted to choose a file. Choose where to save the content, then choose Save to complete the export.

Repeating the most recent export

You can quickly repeat the last export, updating it to match changes to the document using the same options and destination file. Choose File/Export/Repeat Last Export from the menu.


Contents