Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
5  
The csquotes package provides \textelp{} for this. –  cgnieder Mar 15 '13 at 11:11
    
what about using [\dots]? –  Guido Mar 15 '13 at 11:12
    
Welcome to TeX.sx! –  Jubobs Mar 15 '13 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 '13 at 11:17
3  
If you don't want to use a package just for this, [\dots\unkern] should work. –  egreg Mar 15 '13 at 12:03
add comment

1 Answer

up vote 13 down vote accepted

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.

share|improve this answer
    
+1, could you explain where the uneven spacing comes from? –  doncherry Mar 15 '13 at 14:20
    
Thanks. Perfect answer :)! –  Ynv Mar 16 '13 at 16:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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