Overline
Description | Sample | Unicode | CSS/HTML |
Overline | text-decoration: overline; | ||
Overline | ‾ | U+203E | ‾ , ‾ |
Overline | X̅ | U+0305 | X̅ |
Macron | ¯ | U+00AF | ¯ , ¯ |
Double overline | Xx | text-decoration: overline; | |
Double overline | X̿ | U+033F | X̿ |
An overline, overscore, or overbar, is a typographical feature of a horizontal line drawn immediately above the text. In mathematical notation, an overline has been used for a long time as a vinculum, a way of showing that certain symbols belong together. 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. 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 individual letters. The macron is narrower than the character box.
Uses
Medicine
An overbar over a letter is a traditional way of specifying certain Latin abbreviations. For example, s̅ stands for Latin, sine, c̅ is an abbreviation for Latin, cum, ā stands for Latin, "ante", and p̄ stands for Latin, "post".Math and science
Vinculum
In mathematics, an overline can be used as a vinculum.The vinculum can indicate a line segment:
The vinculum can indicate a repeating decimal value:
- = 0. = 0.1428571428571428571...
- 3.¯3 = 3. = 3.333333333333...
- 3.12¯34 = 3.12 = 3.123434343434...
Statistics
The overline is used to indicate a sample mean:- is the average value of
Negation
In set theory and some electrical engineering contexts, negation operators can be written as an overline above the term or expression to be negated, for example:Common set theory notation:
Electrical engineering notation:
in which implied multiplication, the times and the dot all mean 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.Reciprocal
Rarely, a bar over a number or expression means its multiplicative inverse which is more commonly shown as a fraction or negative exponentComplex numbers
The overline notation can indicate a complex conjugate and analogous operations.- if, then
Vector
Improper rotation
In crystallography, an overline indicates an improper rotation or a negative number:- is the Hermann–Mauguin notation for a threefold rotoinversion, used in crystallography.
- is the direction with Miller indices,,.
Maximal conductance
Antiparticles
Overlines are used in subatomic particle physics to denote antiparticles for some particles. For example, the proton is denoted as, and its corresponding antiparticle is denoted as.Engineering
An active low signal is designated by an overline, e.g., 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,.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.
Linguistics
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. 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 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 and unit levels; rather than introduce a different label, the intermediate unit was marked with a bar.
Implementations
HTML with CSS
In HTML using CSS, overline is implemented via the text-decoration property; for example,text
results in:.The text decoration property supports also other typographical features with horizontal lines: underline and strikethrough.
Unicode
As mentioned above, 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 usually results in an unbroken line, depending on the font.For East Asian 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, 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 .
In GTK/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
ABC Extended
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 theEQ \O
field code. The field code
produces and the field code
produces..Windows: .
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, can also be produced in many text processors as text markup as a special form of understriking.
TeX
In LaTeX, a text$\overline$
. The inner \mbox
is necessary tooverride the math-mode which the
\overline
demands.