Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How do I make Conjugate[] expressions have a bar above them instead of Conjugate[ before them, in order to shorted up expressions? I'm looking at something like this screenshot for example:
$\begingroup$If you use David Park's Presentations add on (home.comcast.net/~djmpark/DrawGraphicsPage.html), the command ComplexConjugateDisplay[True] will automatically cause the overbar to appear in output for conjugates.$\endgroup$
$\begingroup$Building on the two above comments, if you want to do this automatically while further processing your expression (a replacement by /. would actually change it), you can teach Mathematica to pretty print Conjugate in output for you using: ClearAttributes[Conjugate, Protected]; Format[Conjugate[x_]] := OverBar@Pane@x; SetAttributes[Conjugate, Protected];$\endgroup$
TraditionalForm? $\endgroup$yourexpression /. Conjugate -> OverBar$\endgroup$yourexpression /. Conjugate[x_] -> OverBar@Pane@xto get more space between the bar and the expression $\endgroup$ComplexConjugateDisplay[True]will automatically cause the overbar to appear in output for conjugates. $\endgroup$/.would actually change it), you can teach Mathematica to pretty printConjugatein output for you using:ClearAttributes[Conjugate, Protected]; Format[Conjugate[x_]] := OverBar@Pane@x; SetAttributes[Conjugate, Protected];$\endgroup$