Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2014

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

Search the Archive

Format expression in TeXForm not working

  • To: mathgroup at smc.vnet.net
  • Subject: [mg132207] Format expression in TeXForm not working
  • From: Yi Wang <tririverwangyi at gmail.com>
  • Date: Sat, 18 Jan 2014 04:59:26 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net

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