|
Export
Export["file.ext", expr] exports data to a file, converting it to a format corresponding to the file extension ext.
Export["file", expr, "format"] exports data to a file, converting it to the specified format.
Export can handle numerical and textual data, graphics, sounds, material from notebooks, and general expressions in various formats.
The following basic formats are supported for numerical and textual data:

In "CSV", "List" and "Table" format, numbers are written in C or Fortran-like "E" notation when necessary.
In "CSV" format, columns are separated by commas, unless other settings are specified using ConversionOptions.
In "Table" format, columns are separated by spaces.
Export["file.txt", expr] uses "Text" format.
Export["file.dat", expr] uses "Table" format.
The following additional formats are also supported for numerical and textual data:

All graphics formats in Export can handle any type of 2D or 3D Mathematica graphics.
They can also handle Notebook and Cell objects.
In some formats, lists of frames for animated graphics can be given.
The following options can be given when exporting graphics:

The following graphics formats are independent of the setting for ImageResolution:

The following graphics formats depend on the setting for ImageResolution:

The following three-dimensional graphics formats are supported:

The following sound formats are supported:

Notebook and Cell objects, as well as any box expression obtained from ToBoxes, can be exported in the following formats:

These formats generate markup material which maintains much of the document structure that exists within Mathematica.
With HTML and TeX formats, Export operates like HTMLSave and TeXSave.
The following XML formats are supported:

With format "MathML", box expressions are exported in terms of MathML presentation elements. Other expressions are if possible exported in TraditionalForm format.
With format "XML", notebook or cell expressions, and notebook objects, are exported as NotebookML. SymbolicXML expressions are exported as general XML. Other expressions are exported as ExpressionML.
Arbitrary Mathematica expressions can be exported in the following formats:

Many details can be specified in the setting for ConversionOptions.
The following general options can be given:

Possible formats accepted by Export are given in the list $ExportFormats.
Export["!prog", expr, "format"] exports data to a pipe.
See Section 1.11.3, Section 2.10.19 and Section 2.12.7.
See also: Import, ExportString, $ExportFormats, Display, Write, Put, TeXSave, HTMLSave, MathMLForm, DumpSave.
New in Version 4; modified in 5.0.
Additional Information
|