The tie character,
~, produces a space between before and
after at which the line will not be broken. By default the white
space has length 3.33333pt plus 1.66666pt minus
1.11111pt (see Lengths).
Note that the word ‘tie’ has this meaning in the TeX/Texinfo community; this differs from the typographic term “tie”, which is a diacritic in the shape of an arc, called a “tie-after” accent in The TeXbook.
Here LaTeX will not break the line between the final two words:
Thanks to Prof.~Lerman.
In addition, despite the period, LaTeX does not use the
end-of-sentence spacing (see
Ties prevent the end of line separation of things where that could
cause confusion. They also still allow hyphenation (of either of the
tied words), so they are generally preferable to putting consecutive
words in an
They are also matters of taste, sometimes alarmingly dogmatic taste, among readers. Nevertheless, here are some usage models, many of them from The TeXbook.
(b)~Show that $f(x)$ is (1)~continuous, and (2)~bounded.
siunitxpackage has a special facility for this) or
144~eggs. This includes between a month and day number in a date:
12~Oct. In general, in any expressions where numbers and abbreviations or symbols are separated by a space:
268~Plains Road, or
\$$1.4$~billion. Other common choices here are a thin space (see
\negthinspace) and no space at all.
less than~$\epsilon$, or
modulo~$p^e$ for all large~$n$(but compare
is $15$~times the height). Between mathematical symbols in apposition with nouns:
with length $l$~or more). When a symbol is a tightly bound object of a preposition:
from $0$ to~$1$, or
in common with~$m$.
Donald~E. Knuth, or
Luis~I. Trabb~Pardo, or
Charles~XII—but you must give TeX places to break the line so you might do
Charles Louis Xavier~Joseph de~la Vall\'ee~Poussin.