From 17a0789fca5bb992152a9a9b2a0c97639c8af580 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 30 Dec 2013 23:23:59 +0000 Subject: cancel (30dec13) git-svn-id: svn://tug.org/texlive/trunk@32508 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/cancel/cancel.pdf | Bin 268381 -> 259226 bytes Master/texmf-dist/doc/latex/cancel/cancel.tex | 6 +++--- Master/texmf-dist/tex/latex/cancel/cancel.sty | 22 ++++++++++++++++------ 3 files changed, 19 insertions(+), 9 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/cancel/cancel.pdf b/Master/texmf-dist/doc/latex/cancel/cancel.pdf index 79e0536e9f2..c3fd21fef25 100644 Binary files a/Master/texmf-dist/doc/latex/cancel/cancel.pdf and b/Master/texmf-dist/doc/latex/cancel/cancel.pdf differ diff --git a/Master/texmf-dist/doc/latex/cancel/cancel.tex b/Master/texmf-dist/doc/latex/cancel/cancel.tex index 11dfe3b8c49..41d959a8ca6 100644 --- a/Master/texmf-dist/doc/latex/cancel/cancel.tex +++ b/Master/texmf-dist/doc/latex/cancel/cancel.tex @@ -14,9 +14,9 @@ \addtokomafont{title}{\rmfamily} -\title{The \textsf{cancel} package\thanks{This manual corresponds to \textsf{cancel}~v2.1, dated~12--Mar--2000.}} +\title{The \textsf{cancel} package\thanks{This manual corresponds to \textsf{cancel}~v2.2, dated~12--Apr--2013.}} \author{Donald Arseneau\\\href{mailto:asnd@triumf.ca}{\texttt{asnd@triumf.ca}}} -\date{12--Mar--2000} +\date{12--Apr--2013} \publishers{I contribute this software to the public domain. No rights reserved.} @@ -42,7 +42,7 @@ The slope of the line or arrow depends on what is being cancelled. \section{Options:} -Bt default, none of these commands affects the horizontal spacing, +By default, none of these commands affects the horizontal spacing, so they might over-print neighboring parts of the formula (or text). They do add their height to the expression, so there should never be unintended vertical overlap. There is a package option \texttt{[makeroom]} to diff --git a/Master/texmf-dist/tex/latex/cancel/cancel.sty b/Master/texmf-dist/tex/latex/cancel/cancel.sty index 0aac2f61a0b..dbf2055da82 100644 --- a/Master/texmf-dist/tex/latex/cancel/cancel.sty +++ b/Master/texmf-dist/tex/latex/cancel/cancel.sty @@ -1,6 +1,9 @@ -% cancel.sty version 2.1 12-Mar-2000. +% cancel.sty version 2.2 12-Apr-2013. % Donald Arseneau asnd@triumf.ca -% I contribute this software to the public domain. No rights reserved. +% This software is contributed to the public domain by its author, +% who disclaims all copyrights. For people and jurisdictions that +% do not recognize contribution to the public domain, this software +% is licensed by the terms of the unlicense, . % % Commands: % ~~~~~~~~~ @@ -16,7 +19,7 @@ % % Options: % ~~~~~~~~ -% Bt default, none of these commands affects the horizontal spacing, +% By default, none of these commands affects the horizontal spacing, % so they might over-print neighboring parts of the formula (or text). % They do add their height to the expression, so there should never be % unintended vertical overlap. There is a package option [makeroom] to @@ -48,7 +51,7 @@ % through math to indicate "cancellation" is poor design. I don't recommend % that you use this package at all. -\ProvidesPackage{cancel}[2000/03/12 v2.1 Cancel math terms] +\ProvidesPackage{cancel}[2013/04/12 v2.2 Cancel math terms] \newcommand{\CancelColor}{} \newcommand{\cancelto}{1}% default option = smaller @@ -75,7 +78,7 @@ \@cancel{\@can@slash{+}\@can@slash{-}}\hbox{#1}\fi} \newcommand\@cancel[3]{% -\@begin@tempboxa\hbox{\m@th$#2{#3}$}% +\OriginalPictureCmds\@begin@tempboxa\hbox{\m@th$#2{#3}$}% \dimen@\height \setbox\@tempboxa\hbox{$\m@th\vcenter{\box\@tempboxa}$}% \advance\dimen@-\height % the difference in height @@ -126,7 +129,7 @@ \fi \newcommand\@cancelto[4]{% -\@begin@tempboxa\hbox{\m@th$#3{#4}$}% +\OriginalPictureCmds\@begin@tempboxa\hbox{\m@th$#3{#4}$}% \dimen@\width % wide \@min@pt\dimen@ 2\@min@pt\totalheight4 \ifdim\totalheight<\dimen@ @@ -172,3 +175,10 @@ \hfil \box\@tempboxa \kern\wd\z@ \hfil \cr}} \def\@min@pt#1#2{\ifdim#1<#2\p@ #1#2\p@ \relax\fi} + +% pict2e removes bounding box from line and vector, so use original +% versions by declaring \OriginalPictureCmds; make it a no-op if undefined + +\@ifundefined{OriginalPictureCmds}{\let\OriginalPictureCmds\relax}{} + +% Sometime maybe find a better solution that uses all slopes with pict2e -- cgit v1.2.3