Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Yi Wang
Posts:
33
Registered:
3/30/12


Format expression in TeXForm not working
Posted:
Jan 18, 2014 5:04 AM


Hello,
I am trying to format some expressions into TeXForm. To get started, I found this example on the last entry of "tutorial/DefiningOutputFormats" of Mathematica documentation:
Format[x, TeXForm] := "{\\bf x}"
However, it does not work as desired. When I run
x // TeXForm
the output is
\text {$\{\backslash \backslash $bf x$\} $}
Instead of {\\bf x}.
Is it my problem or the documentation needs to be updated?
====== The expression I want to format ======
I was trying to format Pd[f, {0}] to \dot{f} and Pd[f, {0, 0}] to \ddot{f}. I guess it should be similar to the above example, if it works at all.
====== Mathematica Version ======
In[28]:= $Version
Out[28]= "9.0 for Linux x86 (64bit) (February 7, 2013)"



