If I use
z = 99; Row[{TraditionalForm@HoldForm[z == 1], z}] then as output I get a property formatted math expression $z = 199$.
How do I accomplish the same thing without having that 1 after ==?
In other words, I want to be able to crate a Row expression that will display a properly formatted math expression of the form $\text{varName} = \text{varValue}$?
The issue is subtler than it may first seem. The real difficulty is getting the equal sign to appear as normal size, not longer than it should be (as using == might cause) and to have proper, typographically correct, spacing before and after the equal sign.
Of course, a good solution should generalize to more complicated expressions, such as producing typographically correct expressions as $\sin(2 \pi z) = 1/\sqrt{2}$ after setting z = 1/8.




z = 99; StringForm["z = ``", z] // TraditionalForm$\endgroup$z = 99; DisplayForm[FormBox[RowBox[{"z", "=", z}], TraditionalForm]]? $\endgroup$TraditionalForm@Row[{HoldForm[z], " = ", z }]$\endgroup$TraditionalForm@Row[{HoldForm[z], " = ", z }]is that the" = "part is pure text and doesn't produce reasonable mathematical typography -- too much space around the equal sign. $\endgroup$z=1/8. $\endgroup$