Skip to main content
Improved formatting
Source Link
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259

How to use `Notation`Notation package with `TraditionalForm`TraditionalForm

I know that I can use the Notation package to define my own custom notation. This works great for StandardForm output, but I would like the notation to apply when I convert it to TraditionalForm`. For example:

Notation[\[EmptyUpTriangle]Notation[△ \[Theta]_θ_ \[DoubleLongLeftArrow] \[EmptyUpTriangle][\[Theta]_]]△[θ_]]

This tells mathematicaMathematica that if it finds a laplacian operator, mathematica should display it without the brackets. This works fine in StandardForm. However, if I use TraditionalForm, then mathematicaMathematica inserts parentheses instead of following the rule.

How can I make the rule apply to TraditionalForm?

How to use `Notation` package with `TraditionalForm`

I know that I can use the Notation package to define my own custom notation. This works great for StandardForm output, but I would like the notation to apply when I convert it to TraditionalForm`. For example:

Notation[\[EmptyUpTriangle] \[Theta]_ \[DoubleLongLeftArrow] \[EmptyUpTriangle][\[Theta]_]]

This tells mathematica that if it finds a laplacian operator, mathematica should display it without the brackets. This works fine in StandardForm. However, if I use TraditionalForm, then mathematica inserts parentheses instead of following the rule.

How can I make the rule apply to TraditionalForm?

How to use Notation package with TraditionalForm

I know that I can use the Notation package to define my own custom notation. This works great for StandardForm output, but I would like the notation to apply when I convert it to TraditionalForm`. For example:

Notation[△ θ_  △[θ_]]

This tells Mathematica that if it finds a laplacian operator, mathematica should display it without the brackets. This works fine in StandardForm. However, if I use TraditionalForm, then Mathematica inserts parentheses instead of following the rule.

How can I make the rule apply to TraditionalForm?

Source Link
nullUser
  • 457
  • 2
  • 11

How to use `Notation` package with `TraditionalForm`

I know that I can use the Notation package to define my own custom notation. This works great for StandardForm output, but I would like the notation to apply when I convert it to TraditionalForm`. For example:

Notation[\[EmptyUpTriangle] \[Theta]_ \[DoubleLongLeftArrow] \[EmptyUpTriangle][\[Theta]_]]

This tells mathematica that if it finds a laplacian operator, mathematica should display it without the brackets. This works fine in StandardForm. However, if I use TraditionalForm, then mathematica inserts parentheses instead of following the rule.

How can I make the rule apply to TraditionalForm?