Overline

An overline, overscore, or overbar, is a typographical feature of a horizontal line drawn immediately above the text. In old mathematical notation, an overline was called a vinculum, a notation for grouping symbols which is expressed in modern notation by parentheses, though it persists for symbols under a radical sign. The original use in Ancient Greek was to indicate compositions of Greek letters as Greek numerals. In Latin, it indicates Roman numerals multiplied by a thousand and it forms medieval abbreviations (sigla). Marking one or more words with a continuous line above the characters is sometimes called overstriking, though overstriking generally refers to printing one character on top of an already-printed character.

An overline, that is, a single line above a chunk of text, should not be confused with the macron, a diacritical mark placed above (or sometimes below) individual letters. The macron is narrower than the character box.

Medicine
In most forms of Latin scribal abbreviation, an overline or macron indicates omitted letters similar to use of apostrophes in English contractions. Letters with macrons or overlines continue to be used in medical abbreviations in various European languages, particularly for prescriptions. Common examples include


 * $\overline{Xx}$, a&#773;, or ā for ("before")
 * $\overline{a}$, c&#773;, or c̄ for ("with")
 * $\overline{c}$, p&#773;, or p̄ for ("after")
 * $\overline{p}$, q&#773;, or q̄ for and its inflections ("every", "each")
 * $\overline{q}$, s&#773;, or s̄ for ("without")
 * $\overline{s}$, x&#773;, or x̄ for and its inflections ("except")

Note, however, that abbreviations involving the letter h take their macron halfway up the ascending line rather than at the normal height for Unicode overlines and macrons: ħ. This is separately encoded in Unicode with the symbols using bar diacritics and appears shorter than other overlines in many fonts.

Decimal separator
In the Middle Ages, from the original Indian decimal writing, before printing, an overline over the units digit was used to separate the integral part of a number from its fractional part, as in 9$\overline{x}$95 (meaning 99.95 in decimal point format). A similar notation remains in common use as an underbar to superscript digits, especially for monetary values without a decimal separator, as in 9995.

Vinculum
In mathematics, an overline can be used as a vinculum.

The vinculum can indicate a line segment: $$\overline{\rm AB}$$The vinculum can indicate a repeating decimal value: $${1\over7} = 0.\overline{142857}=0.142857142857142857142857...$$ When it is not possible to format the number so that the overline is over the digit(s) that repeat, one overline character is placed to the left of the digit(s) that repeat: $$3.\overline{\phantom{I}}3=3.\overline{3}=3.3333333333333333333333333...$$ $$3.12\overline{\phantom{I}}34 = 3.12\overline{34}=3.123434343434343434343434...$$ Historically, the vinculum was used to group together symbols so that they could be treated as a unit. Today, parentheses are more commonly used for this purpose.

Statistics
The overline is used to indicate a sample mean:
 * $$\overline x$$ is the average value of $$x_i$$

Survival functions or complementary cumulative distribution functions are often denoted by placing an overline over the symbol for the cumulative: $$\overline{F}(x) =1-F(x)$$.

Negation
In set theory and some electrical engineering contexts, negation operators (also known as complement) can be written as an overline above the term or expression to be negated. For example:

Common set theory notation:
 * $$\begin{align}

\overline{A \cup B} &\equiv \overline{A} \cap \overline{B} \\ \overline{A \cap B} &\equiv \overline{A} \cup \overline{B} \end{align}$$

Electrical engineering notation:
 * $$\begin{align}

\overline{A \cdot B} &\equiv \overline {A} + \overline {B} \\ \overline{A + B} &\equiv \overline {A} \cdot \overline {B} \end{align}$$ in which the times (cross) means multiplication, the dot means logical AND, and the plus sign means logical OR.

Both illustrate De Morgan's laws and its mnemonic, "break the line, change the sign".

Negative
In common logarithms, a bar over the characteristic indicates that it is negative—whilst the mantissa remains positive. This notation avoids the need for separate tables to convert positive and negative logarithms back to their original numbers.


 * $$\log_{10}0.012\approx-2+0.07918=\bar{2}.07918$$

Complex numbers
The overline notation can indicate a complex conjugate and analogous operations.
 * if $$x = a + ib$$, then $$\overline{x} = a - ib.$$

Vector
In physics, an overline sometimes indicates a vector, although boldface and arrows are also commonly used:
 * $$\overline x = |x|\hat x$$

Congruence classes
Congruence modulo $n$ is an equivalence relation, and the equivalence class of the integer $a$, denoted by $\overline{a}n$, is the set ${..., a − 2n, a − n, a, a + n, a + 2n, ...}$. This set, consisting of all the integers congruent to $a$ modulo $n$, is called the congruence class, residue class, or simply residue of the integer $a$ modulo $n$. When the modulus $n$ is known from the context, that residue may also be denoted $[a]$ or $\overline{a}$.

Topological closure
In topology, the closure of a subset S of a topological space is often denoted $\overline{S}$ or $$\operatorname{cl} S$$.

Improper rotation
In crystallography, an overline indicates an improper rotation or a negative number:
 * $$\overline 3$$ is the Hermann–Mauguin notation for a threefold rotoinversion, used in crystallography.
 * $$[\overline 11\overline2]$$ is the direction with Miller indices $$h=-1$$, $$k=1$$, $$l=-2$$.

Maximal conductance
In computational neuroscience, an overline is used to indicate the "maximal" conductances in Hodgkin-Huxley models. This goes back to at least the landmark paper published by Nobel prize winners Alan Lloyd Hodgkin and Andrew Fielding Huxley around 1952.


 * $$I_\mathrm{Na}(t)=\bar{g}_\mathrm{Na} m(V_m)^3h(V_m)(V_m-E_\mathrm{Na})$$

Antiparticles
Overlines are used in subatomic particle physics to denote antiparticles for some particles (with the alternate being distinguishing based on electric charge). For example, the proton is denoted as proton, and its corresponding antiparticle is denoted as antiproton.

Engineering
An active low signal is designated by an overline, e.g. $\overline{9}$, representing logical negation.

Morse (CW)
Some Morse code prosigns can be expressed as two or three characters run together, and an overline is often used to signify this. The most famous is the distress signal, $\overline{RESET}$.

Writing
An overline-like symbol is traditionally used in Syriac text to mark abbreviations and numbers. It has dots at each end and the center. In German it is occasionally used to indicate a pair of letters which cannot both be fitted into the available space.

When Morse code is written out as text, overlines are used to distinguish prosigns and other concatenated character groups from strings of individual characters.

In Arabic writing and printing, overlines are traditionally used instead of underlines for typographic emphasis, although underlines are used more and more due to the rise of the internet.

Linguistics
X-bar theory makes use of overbar notation to indicate differing levels of syntactic structure. Certain structures are represented by adding an overbar to the unit, as in $\overline{SOS}$. Due to difficulty in typesetting the overbar, the prime symbol is often used instead, as in X. Contemporary typesetting software, such as LaTeX, has made typesetting overbars considerably simpler; both prime and overbar markers are accepted usages. Some variants of X-bar notation use a double-bar (or double-prime) to represent phrasal-level units.

X-bar theory derives its name from the overbar. One of the core proposals of the theory was the creation of an intermediate syntactic node between phrasal (XP) and unit (X) levels; rather than introduce a different label, the intermediate unit was marked with a bar.

HTML with CSS
In HTML using CSS, overline is implemented via the text-decoration property; for example,  results in: $\overline{X}$.

The text decoration property supports also other typographical features with horizontal lines: underline (a line below the text) and strikethrough (a line through the text).

Unicode
Unicode includes two graphic characters, and. They are compatibility equivalent to the with non-spacing diacritics  and  respectively; the latter allows an overline to be placed over any character. There is also. As with any combining character, it appears in the same character box as the character that logically precedes it: for example, x̅, compared to x‾. A series of overlined characters, for example 1̅2̅3̅, may result either in a broken or an unbroken line, depending on the font.

In Unicode, character U+FE26 is conjoining (bridging) two characters: ◌&#xFE26;◌.

In East Asian (CJK) computing, is available. Despite the name, Unicode maps this character to both U+203E and U+00AF.

Unicode maps the overline-like character from ISO/IEC 8859-1 and code page 850 to the symbol mentioned above. In a reversal of its official name (and compatibility decomposition), it is much wider than an actual macron diacritic over most letters, and actually wider than in most fonts. In Microsoft Windows, U+00AF can be entered with the keystrokes Alt1 (where numbers are entered from the numeric keypad). In GTK, the symbol can be added using the keystrokes to activate Unicode input, then type "00AF" as the code for the character. On a Mac, with the  keyboard, use.

The Unicode character is used to mark Syriac abbreviations and numbers. However, several computer environments do not render this line correctly or at all.

The Unicode character is used as a length mark in Odia script.

Word processors
In Microsoft Word, overstriking of text can be accomplished with the  field code. The field code  produces $\overline{text}$ and the field code   produces $\overline{x}$. (Doesn't work in Word 2010; it is necessary to insert MS Equation object). Windows: Alt7 (once before character, one more time after character).

LibreOffice has direct support for several styles of overline in its "Format / Character / Font Effects" dialog.

Overstriking of longer sections of text, such as in $\overline{xyz}$, can also be produced in many text processors as text markup as a special form of understriking.

TeX
In LaTeX, a text can be overlined with. The inner  is necessary to override the math-mode (here invoked by the dollar signs) which the   demands.