MathGroup Archive 2008

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

Search the Archive

Defining output formats

  • To: mathgroup at
  • Subject: [mg88032] Defining output formats
  • From: Szabolcs Horvát <szhorvat at>
  • Date: Tue, 22 Apr 2008 06:29:04 -0400 (EDT)
  • Organization: University of Bergen

On the doc page tutorial/DefiningOutputFormats there is an example:

This specifies the TeXForm for the symbol x.

In[1]:= Format[x, TeXForm] := "{\\bf x}"

The output format for x that you specified is now used whenever the TeX 
form is needed.

In[2]:= TeXForm[1 + x^2]


Quite obviously, this does not work in the way the documentation 
suggests.  I would have expected {\bf x}^2 + 1.

Let's try another example:

In[3]:= TeXForm[x]

\text{$\{\backslash \backslash $bf x$\}$}

So is there a way to tell Mathematica that x should always be formatted 
in bold in TeXForm?

  • Prev by Date: Problem with RegionFunction
  • Next by Date: Re: Column Product of a Matrix of zeros and 1's
  • Previous by thread: Re: Re: Problem with RegionFunction
  • Next by thread: Re: Defining output formats