18

I would like to use [...] in quotations to indicate a part which was not included. Just entering [...] does not render it perfectly in my opinion. Is there a special way of inputing said symbol? Thanks.

5
  • 6
    The csquotes package provides \textelp{} for this.
    – cgnieder
    Mar 15, 2013 at 11:11
  • what about using [\dots]?
    – Guido
    Mar 15, 2013 at 11:12
  • Welcome to TeX.sx!
    – jub0bs
    Mar 15, 2013 at 11:15
  • @Guido [\dots] has uneven spacing which is easily spotted if you compare: \documentclass{article}\usepackage{csquotes}\begin{document}[\dots] \textelp{}\end{document}
    – cgnieder
    Mar 15, 2013 at 11:17
  • 3
    If you don't want to use a package just for this, [\dots\unkern] should work.
    – egreg
    Mar 15, 2013 at 12:03

1 Answer 1

18

You can define your own macro for this:

\newcommand{\omissis}{[\dots\unkern]}

or use the \textelp{} macro from csquotes.

Note that \textelp is a macro taking an argument, so the {} after it is mandatory in order to get [...].

A different possibility is to add the kerning also in front of the dots:

\newcommand{\somissis}{[\,\dots]}

Here'a a minimal document:

\documentclass{article}
\usepackage{csquotes} % necessary only for \textelp

\newcommand{\omissis}{[\dots\unkern]}
\newcommand{\somissis}{[\kern\fontdimen3\font\dots]}

\begin{document}
A \somissis{} B

A \omissis{} B

A \textelp{} B

\end{document}

enter image description here


The macro \dots is defined by LaTeX as

% latex.ltx, line 1807:
\DeclareRobustCommand{\dots}{%
   \ifmmode\mathellipsis\else\textellipsis\fi}

In text mode \textellipsis is used, which is

% latex.ltx, line 1784:
\DeclareTextCommandDefault{\textellipsis}{%
   .\kern\fontdimen3\font
   .\kern\fontdimen3\font
   .\kern\fontdimen3\font}

Here \fontdimen3\font is the stretch component of the normal interword space (why this has been chosen would be matter for a debate). The final kerning is responsible for the uneven space; it's desirable in normal text, but not before the closing bracket, so \omissis removes it.

1
  • 1
    +1, could you explain where the uneven spacing comes from?
    – doncherry
    Mar 15, 2013 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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