5
$\begingroup$

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

$\endgroup$
6
  • 2
    $\begingroup$ TraditionalForm? $\endgroup$ Commented Jan 26, 2015 at 10:05
  • 2
    $\begingroup$ If you just need to display the result (and not work further with it) : yourexpression /. Conjugate -> OverBar $\endgroup$ Commented Jan 26, 2015 at 10:45
  • 2
    $\begingroup$ or yourexpression /. Conjugate[x_] -> OverBar@Pane@x to get more space between the bar and the expression $\endgroup$ Commented Jan 26, 2015 at 11:06
  • $\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$ Commented Jan 26, 2015 at 18:04
  • 2
    $\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$ Commented Jan 15, 2016 at 16:21

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.