summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-12 23:54:41 +0000
committerKarl Berry <karl@freefriends.org>2006-01-12 23:54:41 +0000
commitb80ad08653a0789cc053c99a8d07cd4ac861bc98 (patch)
treeca279122c84911a15698bdcf021aeeeaf01cfd37 /Master/texmf-dist/tex
parent9c5ddbc4f12b0e7bf3322395d9d4bebb781376c5 (diff)
ellipsis
git-svn-id: svn://tug.org/texlive/trunk@853 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/ellipsis/ellipsis.sty88
1 files changed, 88 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ellipsis/ellipsis.sty b/Master/texmf-dist/tex/latex/ellipsis/ellipsis.sty
new file mode 100644
index 00000000000..a5c1e555cd0
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ellipsis/ellipsis.sty
@@ -0,0 +1,88 @@
+%%
+%% This is file `ellipsis.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ellipsis.dtx (with options: `package')
+%%
+%% This is a generated file.
+%%
+%% Copyright (C) 2003 by Peter Heslin <p.j.heslin@dur.ac.uk>
+%%
+%% This file may be distributed and/or modified under the conditions of
+%% the LaTeX Project Public License, either version 1.2 of this license
+%% or (at your option) any later version. The latest version of this
+%% license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.2 or later is part of all distributions of LaTeX version
+%% 1999/12/01 or later.
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{ellipsis}
+ [2004/9/28 v1.6 ellipsis: fixes spacing around \dots]
+\newcommand{\ellipsisgap}{\fontdimen3\font}
+\DeclareOption{chicago}{\renewcommand{\ellipsisgap}{\fontdimen2\font}}
+\newcommand{\ellipsis@before}{}
+\newcommand{\ellipsis@after}{}
+\newif\ifellipsis@alwayscenter
+\ellipsis@alwayscenterfalse
+\DeclareOption{mla}{%
+ \renewcommand{\ellipsis@before}{[\kern\ellipsisgap}%
+ \renewcommand{\ellipsis@after}{\kern\ellipsisgap ]}
+ \ellipsis@alwayscentertrue}
+\newcommand\ellipsis@xspace{}
+\DeclareOption{xspace}{%
+ \renewcommand{\ellipsis@xspace}{\xspace}}
+\ProcessOptions\relax
+\RequirePackage{xspace}
+\newcommand{\ellipsis@default}{%
+ \ellipsis@before
+ .\kern\ellipsisgap
+ .\kern\ellipsisgap
+ .\kern\ellipsisgap
+ \ellipsis@after\relax}
+\newcommand{\ellipsis@centered}{%
+ \ellipsis@before
+ .\kern\ellipsisgap
+ .\kern\ellipsisgap
+ .\ellipsis@after\relax}
+\newcommand\ellipsispunctuation{,.:;!?}
+\def\ellipsis@scan{\expandafter\ellipsis@scan@aux\ellipsispunctuation\ellipsis@delim}
+\def\ellipsis@scan@aux #1#2\ellipsis@delim{%
+ \let\ellipsis@one=#1% the first char
+ \def\ellipsis@two{#2}% the remainder of the string
+ \ifx\ellipsis@token\ellipsis@one
+ \ellipsis@default
+ \else
+ \ifx\ellipsis@two\empty
+ \ellipsis@centered
+ \else
+ \ellipsis@scan@aux #2\ellipsis@delim
+ \fi
+ \fi}
+\renewcommand{\textellipsis}{\futurelet\ellipsis@token\@textellipsis}
+\def\@textellipsis{%
+ \ifellipsis@alwayscenter\ellipsis@centered\else
+ \ellipsis@scan%
+ \fi\ellipsis@xspace}%
+\ifx\bbl@frenchdots\@undefined\else\def\ellipsis@frenchloaded{\relax}\fi
+\AtBeginDocument{%
+ \ifx\ellipsis@frenchloaded\@undefined
+ \ifx\bbl@frenchdots\@undefined\else
+ \PackageError{ellipsis}{Babel French loaded after ellipsis.sty}%
+ {If you load Babel with the French option, do it before ellipsis.sty}%
+ \fi
+ \fi
+ \DeclareRobustCommand{\dots}{%
+ \ifmmode\mathellipsis\else\expandafter\textellipsis\fi}}
+\DeclareRobustCommand{\midwordellipsis}{%
+ \kern\ellipsisgap
+ .\kern\ellipsisgap
+ .\kern\ellipsisgap
+ .\kern\ellipsisgap\relax}
+\endinput
+%%
+%% End of file `ellipsis.sty'.