summaryrefslogtreecommitdiff
path: root/texinfo.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@gnu.org>1997-12-24 18:59:06 +0000
committerKarl Berry <karl@gnu.org>1997-12-24 18:59:06 +0000
commit7585dedefcd508de2a01c0de933334f1345676ca (patch)
tree482f90d6903df53670ea4ea51c1cdb2b77b392e3 /texinfo.tex
parent57ba55d08cc61c7eb661cad68caa3acee4b7d9b0 (diff)
downloadgunmake-7585dedefcd508de2a01c0de933334f1345676ca.tar.gz
(\dots, \enddots): Use current font instead of always using math italic.
Diffstat (limited to 'texinfo.tex')
-rw-r--r--texinfo.tex29
1 files changed, 22 insertions, 7 deletions
diff --git a/texinfo.tex b/texinfo.tex
index 9d5f0d6..c8b5f9f 100644
--- a/texinfo.tex
+++ b/texinfo.tex
@@ -441,14 +441,11 @@
% @. is an end-of-sentence period.
\def\.{.\spacefactor=3000 }
-% @enddots{} is an end-of-sentence ellipsis.
-\gdef\enddots{$\mathinner{\ldotp\ldotp\ldotp\ldotp}$\spacefactor=3000}
-
% @! is an end-of-sentence bang.
-\gdef\!{!\spacefactor=3000 }
+\def\!{!\spacefactor=3000 }
% @? is an end-of-sentence query.
-\gdef\?{?\spacefactor=3000 }
+\def\?{?\spacefactor=3000 }
% @w prevents a word break. Without the \leavevmode, @w at the
% beginning of a paragraph, when TeX is still in vertical mode, would
@@ -573,9 +570,27 @@ where each line of input produces a line of output.}
\let\br = \par
-% @dots{} output some dots
+% @dots{} output an ellipsis using the current font.
+% We do .5em per period so that it has the same spacing in a typewriter
+% font as three actual period characters.
+%
+\def\dots{\hbox to 1.5em{%
+ \hskip 0pt plus 0.25fil minus 0.25fil
+ .\hss.\hss.%
+ \hskip 0pt plus 0.5fil minus 0.5fil
+}}
+
+% @enddots{} is an end-of-sentence ellipsis.
+%
+\def\enddots{%
+ \hbox to 2em{%
+ \hskip 0pt plus 0.25fil minus 0.25fil
+ .\hss.\hss.\hss.%
+ \hskip 0pt plus 0.5fil minus 0.5fil
+ }%
+ \spacefactor=3000
+}
-\def\dots{$\ldots$}
% @page forces the start of a new page