5

Consider this MWE:

\documentclass{article}

\begin{document}
\textellipsis\ /
\ldots\ /
… /
...
\end{document}

With pdfLaTeX, I get this result:

Ellipsis (pdflatex)

While XeLaTeX produces this:

enter image description here

The kerning is obviously wrong. Now, I understand that XeLaTeX is working with a Unicode glyph here, but I want to turn this replacement off for \textellipsis (or \ldots for that matter).

To be clear, 95% of the time I'm using pdfLaTeX, so this is not a big problem; I just want to understand what's going on.

5

With XeLaTeX, \textellipsis is defined to produce the character U+2026. Since \ldots used in text mode is the same as \textellipsis, this is the command to be changed.

You can avoid this and also make produce \ldots:

\documentclass{article}

\usepackage{newunicodechar}

\UndeclareTextCommand{\textellipsis}{TU}

\newunicodechar{…}{\ldots}

\begin{document}

\textellipsis X

\ldots X

…X

...X

\end{document}

Using three period in a row is always wrong.

enter image description here

  • I agree, I would never use three periods in a row, I just included that for the sake of comparison. – vbwx Jan 12 at 15:26

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.