LaTeX (.tex)

MIME type: application/x-tex
LaTeX typesetting system and programming language.
Commonly used for typesetting mathematical and scientific publications.
Plain text format.
Describes the contents and the layout of multi-page documents.
Based on Donald Knuth's TeX typesetting system.
Developed in 1985 by Leslie Lamport as a special-purpose derivative of TeX.
  • Import fully supports AMS-LaTeX and other variants of the LaTeX language.
  • See the "TeX" reference page for full information about TeX export capabilities.

Import and ExportImport and Export

  • Import["file.tex"] imports a LaTeX document and returns a notebook version of it.
  • Import["file.tex"] converts a LaTeX document to a Notebook expression.
  • Import["file.tex",elem] imports the specified element from a LaTeX file.
  • Import["file.tex",{{elem1,elem2,}}] imports multiple elements.
  • The import format can be specified with Import["file", "LaTeX"] or Import["file",{"LaTeX",elem,}].
  • See the reference pages for full general information on Import.
  • ImportString supports the LaTeX format.

Notebook InterfaceNotebook Interface

  • In the Wolfram System front end, LaTeX can be pasted directly into a notebook.
  • Save As exports the active notebook as a LaTeX document.

ElementsElements

  • General Import elements:
  • "Elements"list of elements and options available in this file
    "Rules"full list of rules for each element and option
    "Options"list of rules for options, properties and settings
  • Import elements:
  • "Notebook"a Notebook version of the LaTeX file
    "NotebookObject"LaTeX file represented as a NotebookObject
  • The Wolfram Language by default uses the element when importing from LaTeX.

OptionsOptions

  • Advanced Import options:
  • "InputPath"{}list of directories to search for TeX input files
    "LogFile"Falsewhether to create a log file for the conversion process
    "OutputFile"Nonefile to which to save the Notebook expression
    "StyleDefinitions"AutomaticWolfram System stylesheet to use in the generated notebook

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Show the Import elements available in a LaTeX sample file:

In[1]:=
Click for copyable input
Out[1]=

Convert a LaTeX file to a Notebook expression:

In[2]:=
Click for copyable input
Out[2]=
Introduced in 2004
(5.1)
| Updated in 2007
(6.0)