My goal is to keep the parentheses in the following code sample:

TraditionalForm@HoldForm[(CenterDot[a, b])]

The problem is that Mathematica still removes the unnecessary parentheses. How could I force Mathematica to keep them?

  • 1
    $\begingroup$ Somewhat related is this. $\endgroup$
    – user293787
    Jul 13, 2022 at 15:57

1 Answer 1


Maybe something like this?

TraditionalForm[PrecedenceForm[Dot[a, b], 1] + 1]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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