When writing the TeX-codes we often use the 6-symbols \ldots command. It should be more comfortable to type merely three dots ... instead. Just the same as for TeX-parsing the minus symbols - or -- or ---. So I wonder, is it possible reprogram internal TeX understanding the triple ... into the \ldots-command. Of course the single/double dots . and .. should be of the standard meaning.
Asked
Active
Viewed 8.4k times
11
1 Answers
14
It is pointless to define \def\...: if you want to redefine \. just use \renewcommand\.{\ldots} or some such. (so the use is just two characters \.) As noted in comments this will break any use of the dot accent. Using an alternative form for dot accent isn't really possible as inputenc uses \. in its definition of accented characters, so if you want to redefine \. without breaking the accent you would have to change the encoding definition for every encoding that includes characters with that accent.
By far the best course is to use the existing \ldots or \dots commands, or use utf8 encoding and use the ellipsis character … (U+2026 ) directly.
David Carlisle
- 757,742
\dotsis just five. ;-) – egreg May 27 '14 at 17:57\let\dd=\ldots– JLDiaz May 27 '14 at 18:02=is optional (see\let\foo\barvs\let\foo=\bar):\let\dd\ldots– Werner May 27 '14 at 18:07--and---) won't work. and even if that symbol is in the font, it's usually "narrower" (not as much space between the dots) than ideal for dots in math. – barbara beeton May 27 '14 at 18:17\...would only be a valid macro name if the catcode of.were changed, which probably would have undesirable side effects. Just stick with\dots. – jub0bs May 27 '14 at 18:44\def\...redefines the macro\.not the macro\...(so breaks any letter with a dot accent) – David Carlisle May 27 '14 at 20:04