\documentclass{article}
\usepackage[utf8]{inputenc}
\DeclareUnicodeCharacter{2026}{\dots}% …
\usepackage{amsmath}
\begin{document}
\[\left\{a \dots \right\}\]
\[\left\{a … \right\}\]
\end{document}
The spacing around the ellipsis is not the same for \dots and … in the document above (the third case is if I remove the \DeclareUnicodeCharacter{2026}{\dots}):
How can I get the same spacing with \dots and …? Hopefully this can be done without changing anything in the formula itself, just in the \DeclareUnicodeCharacter code, as otherwise I'm likely to forget the hack most of the time, and the formulas are less concise.
The problem disappears if I'm not using amsmath.


\dotsby\dots{}in the\DeclareUnicodeCharactersolve the problem? – crixstox Feb 09 '16 at 13:54\,in the\DeclareUnicodeCharacter, and hope that it doesn't cause extraneous spacing in other cases. – Suzanne Soy Feb 09 '16 at 14:37\dotsthat looks at the following token to decide if it should become\ldotsor\cdots. – egreg Feb 09 '16 at 14:39…doesn't break the choice between\cdotsand\ldots; I trieda+…+banda,…,band got the expected behavior. However, it seems to be specific with\}, because if you try(a\dots)and(a…)you get the same spacing. – egreg Feb 09 '16 at 16:14a+… +b:-) – David Carlisle Feb 09 '16 at 16:47