From b80ad08653a0789cc053c99a8d07cd4ac861bc98 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 12 Jan 2006 23:54:41 +0000 Subject: ellipsis git-svn-id: svn://tug.org/texlive/trunk@853 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/ellipsis/ellipsis.sty | 88 +++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/ellipsis/ellipsis.sty (limited to 'Master/texmf-dist/tex/latex/ellipsis/ellipsis.sty') 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 +%% +%% 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'. -- cgit v1.2.3