MathGroup Archive 2009

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

Search the Archive

Re: Howto change TraditionalForm Output

  • To: mathgroup at
  • Subject: [mg96575] Re: [mg96563] Howto change TraditionalForm Output
  • From: Bob Hanlon <hanlonr at>
  • Date: Mon, 16 Feb 2009 16:38:47 -0500 (EST)
  • Reply-to: hanlonr at


Format[Tan[x_], TraditionalForm] :=
  "tg(" <> ToString[TraditionalForm[x]] <> ")";


Bob Hanlon

---- Serych Jakub <Serych at> wrote: 

Hi x_

In some (IMHO mainly European) countries, there is tradition to use other
names of the function then are these used in american English. For example
here in Czech Republic we use "tg" and "cotg" in place of "tan" and "cot".

I'm trying to modify the behaviour of M7 like this:

Format[Tan[x_], TraditionalForm] := "tg(" <> ToString[x] <> ")";
Protect[Tan] ; 

It seems to work fine in the cases:

TraditionalForm[Tan[a + b]]

but it doesn't work in case like:


Does anybody know what is the right syntax to change the Format of

Thx in advance


  • Prev by Date: Re: Division by zero, despite strong hint
  • Next by Date: Problem with the 'if' command
  • Previous by thread: Howto change TraditionalForm Output
  • Next by thread: Re: Howto change TraditionalForm Output