Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica TexForm

  1. Mar 11, 2006 #1

    Mathematica has a command that converts notebook (.nb) format into TeX (.tex) format:

    [tex]\text{In[1]:=} \frac{{\left( x + y \right) }^2}{{\sqrt{x\,y}}}[/tex]
    [tex]\text{Out[1]:=} \frac{{\left( x + y \right) }^2}{{\sqrt{x\,y}}}[/tex]
    [tex]\text{In[2]:= TeXForm[ \% ]}[/tex]
    [tex]\text{Out[2] TeXForm=}[/tex] \frac{{\left( x + y \right) }^2}{{\sqrt{x\,y}}}

    I noticed that alot of calculus students have problems with interfacing these two forms and generally manually input equations into both programs independently. Also noticed problems with students on a Mathematica platform publishing their equations on this forum in TeX (.tex) format for peer review, however these instruction commands allow for usage for both applications.

    Physicsforums TeX interface:
    Code (Text):

    [tex]\frac{{\left( x + y \right) }^2}{{\sqrt{x\,y}}}[/tex]
     


    Mathematica notebooks provide a sophisticated environment for creating technical documents. But particularly if you want to merge your work with existing material in TeX, you may find it convenient to use TeXForm to convert expressions in Mathematica into a form suitable for input to TeX.

    Code (Text):

    TeXForm[ expr ] - print expr in TeX input form
     

    [tex]\text{In[3]:= TeXForm} [ \frac{{\left( x + y \right) }^2}{{\sqrt{x\,y}}}][/tex]
    [tex]\text{Out[3] TeXForm=}[/tex] \frac{{\left( x + y \right) }^2}{{\sqrt{x\,y}}}

    In addition to being able to convert individual expressions to TeX, Mathematica also provides capabilities for translating complete notebooks. These capabilities can usually be accessed from the Save As Special menu in the notebook front end, where various options can be set.
    Code (Text):

    TeXSave [" file .tex"] - save your complete notebook in current TeX input form.
    TeXSave [" file .tex", "source.nb"] - save a TeX version of the notebook source (.nb)
     
    Reference:
    http://documents.wolfram.com/v5/TheMathematicaBook/APracticalIntroductionToMathematica/FilesAndExternalOperations/1.11.6.html
    1.11.6_3.gif
    1.11.6_9.gif
     
    Last edited: Mar 11, 2006
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you help with the solution or looking for help too?
Draft saved Draft deleted



Similar Discussions: Mathematica TexForm
  1. In mathematica (Replies: 4)

  2. Mathematica and Sums (Replies: 4)

  3. Mathematica Sums (Replies: 6)

  4. Mathematica NDSolve (Replies: 27)

Loading...