Knowledge base dedicated to Linux and applied mathematics.
Home > Latex > FAQ > Latex - FAQ > Latex how to write bar
latex how to write bar: \bar versus \overline. \overline is more adjusted to the length of the letter, the subscript or the superscript than \bar
$\bar{X}$
$$\bar{X}$$
$\overline{X}$
$$\overline{X}$$
$\bar{X} \overline{X}$
$\bar{X_n} \overline{X_n}$
$\bar{XY} \overline{XY}$
$\bar{X^\alpha} \overline{X^\alpha}$
$$\bar{X} \overline{X}$$
$$\bar{X_n}\overline{X_n}$$
$$\bar{XY} \overline{XY}$$
$$\bar{X^\alpha} \overline{X^\alpha}$$
We can clearly see that \overline is more adjusted to the length of the letter, the subscript or the superscript than \bar