# Importing $\LaTeX$

I have a LaTex file, and import it this way:

tex=Import["texfile.tex"];


Now according to Help, this returns a notebook expression:

Notebook[{Cell[
TextData[{"Question  Define the potential temperature ",
"InlineFormula"], ". "}], "Section"]},
StyleDefinitions -> "Article/LaTeX-Article.nb"]


But what do I do with that? I want it displayed as text. Help refers to Notebook but that is of no help really.

• You can use it with CreateDocument, or you can pick it to parts and do something with the cells separately. Feb 9 '16 at 21:04
• Isn't there some simple way to convert it to text, like Print[tex]? I do not want to write tons of code just to import latex, it would be almost faster to rewrite it then. Also I want to use it for part of a document (imagine first part is more easier to write in Latex the other in Mathematica (as it contains some calculations as well) so CreateDocument probably is not the best option. Feb 9 '16 at 21:22
• Have you tried CreateDocument? I do not understand your comment. It will give you the text in a readable, copyable, editable form. Feb 9 '16 at 22:02

NotebookWrite[SelectedNotebook[], Import["ExampleData/test.tex"]]