OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

This translates a (RefLink[Cell, paclet:ref/Cell]) expression to a TeX fragment:

ExportString[Cell[TextData["Converting a Cell expression to a TeX fragment"],"Subsection"], "TeXFragment"]

Translate an arbitrary expression to a TeX fragment:

ExportString[x+y,"TeXFragment"]

Translate (StringTypeLink["MathML", paclet:ref/format/MathML]) to a TeX fragment:

ExportString["<math xmlns='http://www.w3.org/1998/Math/MathML'>\n <mrow>\n  <mi>x</mi>\n  <mo>+</mo>\n  <mi>y</mi>\n </mrow>\n</math>","TeXFragment"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {Related Formats:  (RefLink[TeX, paclet:ref/format/TeX])  ▪  (RefLink[EPS, paclet:ref/format/EPS])  ▪  (RefLink[HTML, paclet:ref/format/HTML])  ▪  (RefLink[LaTeX, paclet:ref/format/LaTeX])  ▪  (RefLink[MathML, paclet:ref/format/MathML])  ▪  (RefLink[NB, paclet:ref/format/NB])  ▪  (RefLink[PDF, paclet:ref/format/PDF])  ▪  (RefLink[RTF, paclet:ref/format/RTF])  ▪  (RefLink[XHTML, paclet:ref/format/XHTML])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Document Formats, paclet:guide/DocumentFormats])}, {▪(RefLinkPlain[Graphics Importing & Exporting, paclet:guide/GraphicsImportingAndExporting])}, {▪(RefLinkPlain[Importing & Exporting, paclet:guide/ImportingAndExporting])}, {▪(RefLinkPlain[Listing of All Formats, paclet:guide/ListingOfAllFormats])}, {▪(RefLinkPlain[Print Formats, paclet:guide/PrintFormats])}, {▪(RefLinkPlain[Vector Graphics Formats, paclet:guide/VectorGraphicsFormats])}})}})