5. Extensible and adjustable symbols | LaTeX manual

In LaTeX, there are certain features which allow producing structures that can grow to any required size. Mathematical typesetting is in dire need of such variability. We will discuss some aspects of it in this article. All commands covered in this section (unless otherwise noted) are provided by standard LaTeX.

5.1. Ellipsis…

The amsmath package replaces (in almost all cases) all those \ldots, cdots, etc. from standard LaTeX with the single \dots command. Both the vertical position of the ellipsis and the space around it are automatically selected depending on the type of the symbol following \dots. If the next symbol is, say, a plus sign, the dots will come out centered; if it is a comma, they will fall on the baseline. It’s always three dots but the spacing is variable.

1\usepackage{amsmath}
2% -------------------------------------------------------------------------------
3A series $H_1, H_2, \dots, H_n$, a sum
4$H_1 + H_2 + \dots + H_n$, an orthogonal product
5$H_1 \times H_2 \times \dots \times H_n$.

Ellipsis with automatically determined spacing

However, when the dots happen to appear at the end of a formula, the next object will be something like \end or \) or $, and it gives LaTeX no clue about the positioning of the dots. In such a case, you must help by using \dotsc for dots followed by commas, \dotsb for dots followed by Binary operator or Relation symbol, \dotsm for dots followed by multiplication dots, \dotsi for dots followed by integrals, or \dotso in any other case.

1\usepackage{amsmath}
2% -------------------------------------------------------------------------------
3A series $H_1, H_2, \dotsc\,$, a sum
4$H_1 + H_2 + \dotsb\,$, an orthogonal product
5$H_1 \times H_2 \times \dotsm\,$, and an infinite
6integral: \[ \int_{H_1} \int_{H_2} \dotsi \;
7{-\Gamma}\, d\Theta \]

Ellipsis at the end of a formula

5.2. Symbols that are horizontally extensible

Basically, LaTeX allows setting up any math accent command to produce the appropriate glyph from a range of widths whenever these are provided by the available fonts. However, in standard LaTeX there are only two such commands: \widehat and \widetilde.

In the next example, we demonstrate the use of a few commands that produce constructs similar to the aforementioned extensible accents. They all produce compound symbols of math class Ordinary.

 1\usepackage{amsmath}
 2% -------------------------------------------------------------------------------
 3\begin{align*}
 4\widehat {\psi_\delta(t) E_t h}
 5&= \widetilde {\psi_\delta(t) E_t h} \\
 6\overline {\psi_\delta(t) E_t h}
 7&= \underline {\psi_\delta(t) E_t h} \\
 8\overbrace {\psi_\delta(t) E_t h}
 9&= \underbrace {\psi_\delta(t) E_t h}
10& & \text{Do not change style} \\
11\overrightarrow {\psi_\delta(t) E_t h} 
12&= \overleftarrow {\psi_\delta(t) E_t h}
13& & \text{Do not change style} \\[-3pt]
14& & & \text{without \textsf{amsmath}} \\
15\underrightarrow {\psi_\delta(t) E_t h}
16&= \underleftarrow {\psi_\delta(t) E_t h}
17& & \text{Do need \textsf{amsmath}} \\
18\overleftrightarrow {\psi_\delta(t) E_t h}
19&=\underleftrightarrow{\psi_\delta(t) E_t h}
20& & \text{Do need \textsf{amsmath}}
21\end{align*}

Extensible accents

Here, “change style” means that the symbol employed is affected by the math style in use so that it will look right when used, for example, in fractions or subscript/superscript. Those that don’t change style will come out right only at the top level of displayed formulas.

5.3. Symbols that are vertically extensible

The vertical extensibility is much wider. The following table lists all the symbols that are vertically extensible.

Vertically extensible symbols

“Parentheses”( )“Curly Braces Open”\{ \}“Double Vertical Bars”\lVert \rVert
“Angle Brackets”\langle \rangle“Curly Braces Close”\lbrace \rbrace“Single Vertical Bars”\lvert \rvert
“Lgroup and Rgroup”\lgroup \rgroup“Square Brackets Open”[ ]“Vertical Bar”`
“Moustaches”\lmoustache \rmoustache“Square Brackets Close”\lbrack \rbrack“Vertical Bar”\vert
“Down Arrow”\Downarrow“Ceiling Brackets Open”\lceil \rceil“Arrow Vertical Bar”\arrowvert
“Up Arrow”\Uparrow“Floor Brackets Close”\lfloor \rfloor“Brace Vertical Bar”\bracevert
“Up Down Arrow”\Updownarrow“Double Brackets Open”\llbracket \rrbracket“Double Arrow Vertical Bar”\Arrowvert
“Single Down Arrow”\downarrow“Slash”/“Double Vertical Line”|
“Single Up Arrow”\uparrow“Back Slash”\backslash“Double Vertical Line”\Vert
“Single Up Down Arrow”\updownarrow.“Square Root Sign”\sqrtsign

Symbols in italics require either the amsmath package or, if additionally typed in bold, the stmaryrd package. A period (.) is not itself an extensible symbol, but it can be used to produce an “invisible” delimiter. The \sqrtsign symbol cannot be used with \left, \right, or \middle.

Synonyms: [ - \lbrack, [; ] - \rbrack, ]; { - \lbrace, \{; } - \rbrace, \}; | - \vert, |; || - \Vert, \|.

These symbols become extensible only in certain usages. They must be based on the following construction:

1\left <ext-Open> <sub-formula> \right <ext-Close>

If LaTeX is using the eTeX program, then you can also use these extensible symbols with \middle.

Here <ext-Open> and <ext-Close> can be any of the symbols (except \sqrtsign) listed in the table above. They must be symbols that have been set up to be extensible as described in the fntguide. Thus, a symbol representing the absence of an actual glyph must be available. It happened, that this symbol, also known as the null delimiter, is the period (.). The sizes of the actual glyphs for typesetting an extensible symbol are chosen to fit with the height and depth of the subformula that lies between them.

The radical symbol \sqrtsign grows both vertically and horizontally to fit the size of its argument. In LaTeX, you would rather use the \sqrt command to get this symbol.

1\[
2  \sqrtsign{1 + \sqrtsign{1 + \sqrtsign{1 +
3    \sqrtsign{1 + \sqrtsign{1 + \sqrtsign{1 + x}}}}}}
4\]

Extending radicals

Have any questions about Aspose.TeX?



Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.