\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
.
\dots
by\dots{}
in the\DeclareUnicodeCharacter
solve the problem? – crixstox Feb 9 '16 at 13:54\,
in the\DeclareUnicodeCharacter
, and hope that it doesn't cause extraneous spacing in other cases. – Suzanne Dupéron Feb 9 '16 at 14:37\dots
that looks at the following token to decide if it should become\ldots
or\cdots
. – egreg Feb 9 '16 at 14:39…
doesn't break the choice between\cdots
and\ldots
; I trieda+…+b
anda,…,b
and 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 9 '16 at 16:14