MathGroup Archive 2014

[Date Index] [Thread Index] [Author Index]

Search the Archive

Format expression in TeXForm not working


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 (64-bit) (February 7, 2013)"



  • Prev by Date: School project - NEED HELP!
  • Next by Date: Default value in pattern matching
  • Previous by thread: Re: School project - NEED HELP!
  • Next by thread: Default value in pattern matching