ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* robust \dots command
@ 2001-03-05 10:52 Uwe Koloska
  2001-03-12 20:45 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Uwe Koloska @ 2001-03-05 10:52 UTC (permalink / raw)


Hello,

I suggest to change the definition of \dots to match the one from latex.  
With the current implementation \dots uses the math \ldots so it is not set 
in the current font.

Latex makes a distinction between \textellipsis and \mathellipsis:

\DeclareRobustCommand{\dots}{%
   \ifmmode\mathellipsis\else\textellipsis\fi}

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

\def\mathellipsis{\mathinner{\ldotp\ldotp\ldotp}}%

The advantage of this definition is, that we can switch easyly to a real 
ellipsis if the current font has one.

Uwe

-- 
mailto:koloska@rcs.urz.tu-dresden.de
http://rcswww.urz.tu-dresden.de/~koloska/
--                                    --
right now the web page is in german only
but this will change as time goes by ;-)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-03-14  0:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-05 10:52 robust \dots command Uwe Koloska
2001-03-12 20:45 ` Hans Hagen
2001-03-14  0:04   ` Uwe Koloska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).