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?
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?
Maybe something like this?
TraditionalForm[PrecedenceForm[Dot[a, b], 1] + 1]