5

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: enter image description here

PPR
  • 205
  • 1
  • 5
  • 2
    TraditionalForm? – xzczd Jan 26 '15 at 10:05
  • 2
    If you just need to display the result (and not work further with it) : yourexpression /. Conjugate -> OverBar – SquareOne Jan 26 '15 at 10:45
  • 2
    or yourexpression /. Conjugate[x_] -> OverBar@Pane@x to get more space between the bar and the expression – SquareOne Jan 26 '15 at 11:06
  • If you use David Park's Presentations add on (http://home.comcast.net/~djmpark/DrawGraphicsPage.html), the command ComplexConjugateDisplay[True] will automatically cause the overbar to appear in output for conjugates. – murray Jan 26 '15 at 18:04
  • 2
    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]; – The Vee Jan 15 '16 at 16:21
  • @TheVee that's great, you should turn that into an answer – lcv Jul 04 '18 at 23:19

0 Answers0