I am having trouble writing an inner product with a horizontal bar over it representing the complex conjugate.

`$\langle b_i, b_j \rangle=\bar{\langle b_j, b_i \rangle}$`

doesn't do the trick

Here is an example

Regards

Skip to content
# [Tex/LaTex] Complex conjugate for inner product

#### Related Solutions

###### Related Question

equations

I am having trouble writing an inner product with a horizontal bar over it representing the complex conjugate.

`$\langle b_i, b_j \rangle=\bar{\langle b_j, b_i \rangle}$`

doesn't do the trick

Here is an example

Regards

If you want a result really good-looking, adopt this way:

```
\documentclass{article}
\usepackage{amsmath}
\usepackage{calc}
\newlength{\maxmin}
\setlength{\maxmin}{\widthof{$\max$}-\widthof{$\min$}}
\begin{document}
\begin{equation}
S_{i,t}=
\begin{cases}
\begin{cases}
[x_{i,t}=X^*, r_{i,t}=1] & \text{if $\max\{X_{i,t}\}=X^*$} \\
[x_{i,t}=\max\{X_{i,t}\}, r_{i,t}=0] & \text{if $\max\{X_{i,t}\} \neq X^*$}
\end{cases}
&\text{if $\sum_{i=1}^I u_{i,t-1}= \theta^{t-2} X^*$}\\
\begin{cases}
[x_{i,t}=1, r_{i,t}=1] & \hspace{\maxmin} \text{if $\min\{X_{i,t}\}=1$} \\
[x_{i,t}=\min\{X_{i,t}\}, r_{i,t}=0] & \hspace{\maxmin} \text{if $\min\{X_{i,t}\} \neq 1$}
\end{cases}
&\text{otherwise}
\end{cases}
\end{equation}
\end{document}
```

You can notice the perfect alignment of `if`

s. This has been obtained (thanks to the package `calc`

) calculating the difference of spacing between `\max`

and `\min`

and adding the corresponding difference in the second `cases`

environment.

I don't think it's possible to come up with strict, let alone unambiguous, answers to your questions. (And, I don't think you're asking for such guidelines...)

An important general aspect of what's considered to be good typography is the creation of an even amount of "color" -- or "average grayness", if you prefer -- across pages and across paragraphs within a page. There are obviously many factors -- so far unspecified -- that determine a page's "average grayness". E.g., are the paragraphs on average quite long or quite short? How tight is the interline spacing? Are successive paragraphs separated by extra whitespace? Are there lots of displayed equations? Taken together, these aspects should indicate fairly clearly when (and when not) to use `\frac`

and friends in inline math situations.

One of these aspects is whether running text is set single-spaced or more loosely. Obviously, the larger the distance between successive lines of text, the less deleterious the effect of using `\frac`

-- as well as exponents, subscripts and superscripts, and anything else (such as integral, sum, and product symbols!) that rises above or falls below the space defined by the baseline and the caps-line will be on the average color of the page. If the text is set single-spaced (and especially if the baseline skip is modest, say, 20% more than the font's nominal size), almost anything that rises above the capsline or falls noticeably below the baseline risks forcing the use of extra space between lines to avoid collisions -- and should thus be used sparingly at most in inline material.

Incidentally, having to increase the baseline skip for just one line is exactly what happens because of the (clearly deliberately undertaken) use of `\frac`

in the first paragraph on p. 19 of the document you've cited in your posting:
Observe that the space between the second and third line is quite a bit larger than the other spaces in the paragraph.

To sum up, publications (including working papers) that are typeset single-spaced should probably avoid having `\frac`

(let alone `\dfrac`

!) appear in running text. In contrast, if the working paper is set with one-and-one-half-spacing or (shudder) double-spacing, use of `\frac`

is going to be much less problematic from the point of view of creating even typographic color. Some design purists might go as far as saying that double-spacing has already killed off any chance of creating good color. If color is already hopelessly compromised, any extra damage done by occurrences of `\frac`

or `\dfrac`

in double-spaced text may be minor, right?!

Well-designed publications should take into account whether there's a need to have significant amounts of inline math material. For instance, for the book *Concrete Mathematics* by Graham, Knuth, and Patashnik, a conscious decision was made to choose a baseline skip of 13pt rather than the more standard 12pt. This was done, in part, to accommodate the use of subscripts, superscripts, etc in the running text. If I remember correctly, a second reason for choosing a looser-than-normal baseline skip was that the font used for the book, "Concrete Roman", was felt to be a bit dark if employed at a more standard baseline skip of 12pt. Widening the baseline skip a touch was felt to bring about a better "average color" -- regardless of how much inline math material was present in a given paragraph. Clearly, whatever may constitute "optimal" color comes with a high degree of subjectivity. Equally clearly, I don't think there's anything wrong with having this degree of subjectivity.

## Best Answer

One way is to use

`\overline`

.`\bar`

is meant for a single character/symbol rather.In order to switch the style later on I recommend a new macro (logical markup), say

`\compconj`

which wraps around`\overline`

(or another command that does the 'complex conjugate' style)