Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

This seems to work

Format[△[θ_], TraditionalForm] := HoldForm[△ θ]
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.