From 399ec11d0dff4eb7f37230a578d4032e6dbf9aed Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 21 Dec 2016 22:12:56 +0000 Subject: xellipsis (21dec16) git-svn-id: svn://tug.org/texlive/trunk@42764 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/xellipsis/CHANGES | 6 ++++ .../texmf-dist/doc/latex/xellipsis/xellipsis.pdf | Bin 188571 -> 340084 bytes .../source/latex/xellipsis/xellipsis.dtx | 37 ++++++++++++++++++--- .../texmf-dist/tex/latex/xellipsis/xellipsis.sty | 10 ++++-- 4 files changed, 46 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/xellipsis/CHANGES b/Master/texmf-dist/doc/latex/xellipsis/CHANGES index a988ba2c988..2e447496db4 100644 --- a/Master/texmf-dist/doc/latex/xellipsis/CHANGES +++ b/Master/texmf-dist/doc/latex/xellipsis/CHANGES @@ -1,3 +1,9 @@ +18 December 1200 (20 December 2016): Ellipses were able to +start lines, which shouldn't happen; fixed that. Added +command \xelipend, which eliminates closing spaces for the +situation in which the ellipsis is immediately followed by +punctuation. Version 1.2. + 12 November 1200 (14 November 2016): Fixed a bug in how \xelip behaved at the beginning of an environment. Specifically, it was set before paragraph mode began. A diff --git a/Master/texmf-dist/doc/latex/xellipsis/xellipsis.pdf b/Master/texmf-dist/doc/latex/xellipsis/xellipsis.pdf index 305d24165af..118edc49a36 100644 Binary files a/Master/texmf-dist/doc/latex/xellipsis/xellipsis.pdf and b/Master/texmf-dist/doc/latex/xellipsis/xellipsis.pdf differ diff --git a/Master/texmf-dist/source/latex/xellipsis/xellipsis.dtx b/Master/texmf-dist/source/latex/xellipsis/xellipsis.dtx index 3cdb19a3f3b..3098e60946e 100644 --- a/Master/texmf-dist/source/latex/xellipsis/xellipsis.dtx +++ b/Master/texmf-dist/source/latex/xellipsis/xellipsis.dtx @@ -26,7 +26,7 @@ % \iffalse %\NeedsTeXFormat{LaTeX2e}[1999/12/01] -%\ProvidesPackage{xellipsis}[2015/11/01 v1.1 support for highly configurable ellipses of arbitrary symbol, number, and distance] +%\ProvidesPackage{xellipsis}[2015/11/01 v1.2 support for highly configurable ellipses of arbitrary symbol, number, and distance] %<*driver> \documentclass{ltxdoc} @@ -38,7 +38,8 @@ \renewcommand{\LettrineFontHook}{\color{red}} \usepackage{url} \usepackage{spverbatim} -\usepackage[nocounters]{dozenal} +\usepackage[typeone]{dozenal} +\usepackage{lmodern} \usepackage[]{xellipsis} \usepackage[colorlinks]{hyperref} \usepackage{makeidx} @@ -66,7 +67,7 @@ \end{document} % \fi % -% \title{The |xellipsis| Package, v1.1} \author{Donald P.\ +% \title{The |xellipsis| Package, v1.2} \author{Donald P.\ % Goodman III} \date{\today} % % \maketitle @@ -214,6 +215,21 @@ % } % \end{quote} % +% Finally, there is a special command +% \DescribeMacro{\xelipend}|\xelipend|. This is identical +% to |\xelip| except that the closing space is omitted. +% +% \begin{quote} +% ``This is pretty neat\xelipend'' (|\xelipend|) +% +% ``This is pretty neat\xelip'' (|\xelip|) +% \end{quote} +% +% |\xelipend| is primarily useful immediately preceding some +% quoting character; some people prefer there to be no or +% much more limited spacing in this location. Use +% |\xelipend| if you prefer this type of behavior. +% % \section{The Nitty-Gritty: Configuration} % \label{sect:nittygritty} % @@ -384,7 +400,7 @@ % } % \bigskip % -% Please be aware that these |\xelippreaft| \emph{stacks} +% Please be aware that |\xelippreaft| \emph{stacks} % with |\xelipbef|, and |\xelippostbef| stacks with % |\xelipaft|; so their sum should be the spacing you want. % Often this means simply leaving the two of them alone, as @@ -458,7 +474,7 @@ % way we can be sure that it won't break across lines. % \begin{macrocode} \def\xelip{% - \hskip0pt\hbox{% + \nobreak\hskip0pt\hbox{% % \end{macrocode} % Put it the code for the |\xelipprechar| and its spacing: % \begin{macrocode} @@ -489,6 +505,17 @@ }% }% % \end{macrocode} +% Set up a special command, |\xelipend|, which omits the +% spacing at the end and can be used immediately before +% quotations or the like. +% \begin{macrocode} +\def\xelipend{% + \begingroup% + \xelipaft=0pt + \xelip% + \endgroup% +}% +% % Set up the |latex| option. % \begin{macrocode} \ifxel@latex diff --git a/Master/texmf-dist/tex/latex/xellipsis/xellipsis.sty b/Master/texmf-dist/tex/latex/xellipsis/xellipsis.sty index 74f36110227..fe9d0a7e259 100644 --- a/Master/texmf-dist/tex/latex/xellipsis/xellipsis.sty +++ b/Master/texmf-dist/tex/latex/xellipsis/xellipsis.sty @@ -26,7 +26,7 @@ %% derived files xellipsis.sty and xellipsis.pdf. \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\ProvidesPackage{xellipsis}[2015/11/01 v1.1 support for highly configurable ellipses of arbitrary symbol, number, and distance] +\ProvidesPackage{xellipsis}[2015/11/01 v1.2 support for highly configurable ellipses of arbitrary symbol, number, and distance] \newif\ifxel@latex\xel@latexfalse \newif\ifxel@chicago\xel@chicagofalse \newif\ifxel@oldmla\xel@oldmlafalse @@ -51,7 +51,7 @@ \def\xelippostchar{} \newcount\xel@loopi\xel@loopi = 0% \def\xelip{% -\hskip0pt\hbox{% +\nobreak\hskip0pt\hbox{% \hskip\xelipprebef\xelipprechar\hskip\xelippreaft% \hskip\xelipbef\xelipchar% \xel@loopi = 1% @@ -64,6 +64,12 @@ \hskip\xelippostbef\xelippostchar\hskip\xelippostaft% }% }% +\def\xelipend{% +\begingroup% +\xelipaft=0pt +\xelip% +\endgroup% +}% \ifxel@latex \xelipbef=0pt% \xelipaft=\fontdimen3\font% -- cgit v1.2.3