此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.2)
Import/Export 导入/导出 格式

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["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.
  • In the Mathematica front end, LaTeX can be pasted directly into a notebook.
  • Save As exports the active notebook as a LaTeX document.
  • Save Selection As exports the selected part of a notebook to LaTeX.
"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
"Notebook"a Notebook version of the LaTeX file
"NotebookObject"LaTeX file represented as a NotebookObject
  • Mathematica by default uses the "Notebook" element when importing from LaTeX.
"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"AutomaticMathematica stylesheet to use in the generated notebook
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]=