TeXFragment (.tex)
- "TeXFragment" is supported by Export and ExportString only.
Background & Context
-
- MIME type: application/x-tex
- TeX typesetting system and programming language.
- Commonly used for typesetting mathematical and scientific publications and other technical documents.
- Plain text format.
- Describes the contents and the layout of multipage documents.
- Developed since 1977 by Donald Knuth.
Export
- Export["file.tex",expr,"TeXFragment"] or ExportString[expr,"TeXFragment"] create TeX fragment versions of expr.
- See the following reference pages for full general information:
-
Export export to a file CloudExport export to a cloud object ExportString export to a string ExportByteArray export to a byte array
Options
- Advanced Export options:
-
"BoxRules" {} specifies mappings from Wolfram Language box expressions to TeX elements "ConversionRules" Automatic specifies mappings from Wolfram System cell styles to TeX elements "DocumentClass" "article" what LaTeX document type to use "FullDocument" False whether to export a complete TeX document "MathOutput" "TeX" format to use for typeset expressions "UsePackages" Automatic list of packages to include in \usepackage{} - Typical settings for "DocumentClass" include "article", "report", and "letter".
- Possible values for "MathOutput" are:
-
"EPS" converts typeset expressions to EPS, stored in separate files "TeX" formats all typeset expressions to embedded TeX macros