[Tex/LaTex] How to change how suspension points (dot dot dot) look with LaTeX

ellipsispunctuationtypography

What I want to do

I know it is bad, but I would like to redefine how \ldots and its equivalents (the Unicode character for instance) are rendered by TeX.

Indeed, in my opinion, with LaTeX, the suspension points don't look great… I know that this is the way it should looks, but I prefer how they generally look on electronic documents.

Examples

enter image description here
enter image description here

My questions

  • Is this already done somewhere?

  • So far, I have tried this, but the result is not satisfactory and I'm afraid that some typographic rules (the French ones for instance… actually, I intend to use the French rules) won't always be applied (imagine some dots in a bracket…). Can you help me to improve it?

    \documentclass{article}
    \usepackage[utf8]{inputenc}
    \DeclareUnicodeCharacter{2026}{...}
    \renewcommand{\ldots}{...}
    
    \begin{document}
    With \LaTeX, the suspension points don't look great\ldots I know that this is the way it should looks, but I prefer how they generally look on electronic documents.
    \end{document}
    

Best Answer

The ellipsis package provides an easy means to adjust the gap between ellipsis dots. Specifically, \setlength{\ellipsisgap}{<len>} will adjust the space to <len>:

enter image description here

\documentclass{article}
\usepackage{ellipsis}
\begin{document}

Lorem ipsum dolor sit amet, \ldots{} consectetur adipiscing elit. 

\setlength{\ellipsisgap}{0.1em}

Lorem ipsum dolor sit amet, \ldots{} consectetur adipiscing elit. 

\setlength{\ellipsisgap}{0.05em}

Lorem ipsum dolor sit amet, \ldots{} consectetur adipiscing elit. 

\end{document}

A more direct method (less flexible than using ellipsis) would be to redefine \ldots from the kernel. In text mode, \ldots defaults to \textellipsis and is defined as (see latex.ltx):

\DeclareTextCommandDefault{\textellipsis}{%
   .\kern\fontdimen3\font
   .\kern\fontdimen3\font
   .\kern\fontdimen3\font}

Here's an adjustment that uses a fixed .5pt gap between each .:

\DeclareTextCommandDefault{\textellipsis}{%
   .\kern.5pt
   .\kern.5pt
   .\kern\fontdimen3\font}

enter image description here

\documentclass{article}
\begin{document}

Lorem ipsum dolor sit amet, \ldots consectetur adipiscing elit. 

\renewcommand{\textellipsis}{%
   .\kern.5pt
   .\kern.5pt
   .\kern\fontdimen3\font}

Lorem ipsum dolor sit amet, \ldots consectetur adipiscing elit. 

\end{document}