Discussion:
ASCII-Dashes
(too old to reply)
Stefan Ram
2022-11-11 23:30:08 UTC
Permalink
Who could understand that after you wrote "*I wouldn't*" in response to
"Where would you en-dash that?"? (See upthread.)
|A conscientious user of TeX will be careful to distinguish
|these four usages, and here is how to do it:
|
|for a hyphen, type a hyphen (-);
|for an en-dash, type two hyphens (--);
|for an em-dash, type three hyphens (---);
|for a minus sign, type a hyphen in mathematics mode ($-$).
|
|(Mathematics mode occurs between dollar signs;
|it is discussed later, so you needn't worry about it now.)
|
The TeXbook (1984) - Donald E. Knuth (1938-)
J. J. Lodder
2022-11-14 09:47:57 UTC
Permalink
Post by Stefan Ram
Who could understand that after you wrote "*I wouldn't*" in response to
"Where would you en-dash that?"? (See upthread.)
|A conscientious user of TeX will be careful to distinguish
|
|for a hyphen, type a hyphen (-);
|for an en-dash, type two hyphens (--);
|for an em-dash, type three hyphens (---);
|for a minus sign, type a hyphen in mathematics mode ($-$).
|
|(Mathematics mode occurs between dollar signs;
|it is discussed later, so you needn't worry about it now.)
|
The TeXbook (1984) - Donald E. Knuth (1938-)
[more than anyone but a plain Texnician wants to know]

And for all that TeX is capable of:
[on spacing and dots]

\linebreak force a line break
\newline force a new line, old line pushed left
\mathbreak force line break
\allowmathbreak allow line break
\- discretionary hyphen
\. abbreviation period
\, or \thinspace thin space
\medspace medium space
\; or \thickspace thick space
\! or \negthinspace negative thin space
\negmedspace negative medium space
\negthickspace negative thick space
\quad quad space
\qquad double quad space
% comment line
\ one blank space
\phantom#1 blank space size of #1
\hphantom#1 blank space width of #1, no height
\vphantom#1 blank space height of #1, no width
\smash#1 ignore height and depth
\topsmash#1 ignore height
\botsmash#1 ignore depth
\mathstrut strut to help vertical spacing
\smallpagebreak small space between paragraphs
\medpagebreak medium space between paragraphs
\bigpagebreak big space between paragraphs
\pagebreak force a page break
\nopagebreak forbid a page break
\newpage force a page break, fill page with blank space
\hdots horizontal dots
\vdots vertical dots
\ddots diagonal dots
\dots dots in text or formulas
\ldots low dots in text or formulas
\cdots center dots in text or formulas

Some of those are only used when building complicated formulae.

Note that Tex allows sutleties like the abreviation .
being different from the line ending .
in spacing and placement height, or even a different .
if the font designer has allowed for it,

Jan

Loading...