summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-02-21 23:20:18 +0000
committerKarl Berry <karl@freefriends.org>2010-02-21 23:20:18 +0000
commitdfff0bc96157795c983f56aced0873bdc7bca7f0 (patch)
treec6cc0d17c6057d668ed36531097b7769f49a85ed
parentebbe8a461c949a3c9390cb81b9fbc6ac30128203 (diff)
cancel doc update, own package (21feb09)
git-svn-id: svn://tug.org/texlive/trunk@17124 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/cancel/cancel.pdfbin0 -> 268381 bytes
-rw-r--r--Master/texmf-dist/doc/latex/cancel/cancel.tex90
-rw-r--r--Master/texmf-dist/tex/latex/cancel/cancel.sty (renamed from Master/texmf-dist/tex/latex/ltxmisc/cancel.sty)0
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rw-r--r--Master/tlpkg/tlpsrc/cancel.tlpsrc0
-rw-r--r--Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc1
6 files changed, 92 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/cancel/cancel.pdf b/Master/texmf-dist/doc/latex/cancel/cancel.pdf
new file mode 100644
index 00000000000..79e0536e9f2
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cancel/cancel.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/cancel/cancel.tex b/Master/texmf-dist/doc/latex/cancel/cancel.tex
new file mode 100644
index 00000000000..11dfe3b8c49
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cancel/cancel.tex
@@ -0,0 +1,90 @@
+\documentclass[pagesize=auto]{scrartcl}
+
+\usepackage{fixltx2e}
+\usepackage{lmodern}
+\usepackage[T1]{fontenc}
+\usepackage{textcomp}
+\usepackage{booktabs}
+\usepackage{microtype}
+\usepackage{hyperref}
+
+\newcommand*{\meta}[1]{\textlangle\textsl{#1}\textrangle}
+\newcommand*{\marg}[1]{\texttt{\{}\meta{#1}\texttt{\}}}
+\newcommand*{\cmd}[1]{\texttt{\string#1}}
+
+\addtokomafont{title}{\rmfamily}
+
+\title{The \textsf{cancel} package\thanks{This manual corresponds to \textsf{cancel}~v2.1, dated~12--Mar--2000.}}
+\author{Donald Arseneau\\\href{mailto:asnd@triumf.ca}{\texttt{asnd@triumf.ca}}}
+\date{12--Mar--2000}
+\publishers{I contribute this software to the public domain. No rights reserved.}
+
+
+\begin{document}
+
+\maketitle
+
+\section{Commands:}
+
+
+
+\begin{labeling}{\cmd{\cancelto}\marg{value}\marg{expression}}
+\item[\cmd{\cancel}] draws a diagonal line (slash) through its argument.
+\item[\cmd{\bcancel}] uses the negative slope (a backslash).
+\item[\cmd{\xcancel}] draws an X (actually \cmd{\cancel} plus \cmd{\bcancel}).
+\item[\cmd{\cancelto}\marg{value}\marg{expression}] draws a diagonal arrow through the \meta{expression}, pointing to the \meta{value}.
+\end{labeling}
+%
+The first three work in math and text mode, but \cmd{\cancelto} is only
+for math mode.
+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,
+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
+increase the horizontal spacing to make room for the cancellation value.
+
+If you use the color package, then you can declare
+%
+\begin{verbatim}
+ \renewcommand{\CancelColor}{<color_command>}
+\end{verbatim}
+%
+and the cancellation marks will be printed in that color (e.\,g., \cmd{\blue}).
+However, if you are using color, I recommend lightly shaded blocks rather
+than diagonal arrows for cancelling.
+
+The option \texttt{[thicklines]} asks for heavier lines and arrows. This may be
+useful when the lines are colored a light shade.
+
+\begin{samepage}
+ The size (math style) of the \cmd{\cancelto} value depends on package options
+ according to this table:
+ %
+ \begin{center}
+ \small
+ \begin{tabular}{@{}llll@{}}
+ \toprule
+ \textbf{Current style} & \textbf{\texttt{[samesize]}} & \textbf{\texttt{[smaller]}} & \textbf{\texttt{[Smaller]}} \\
+ \midrule
+ \cmd{\displaystyle} & \cmd{\displaystyle} & \cmd{\textstyle} & \cmd{\scriptstyle} \\
+ \cmd{\textstyle} & \cmd{\textstyle} & \cmd{\scriptstyle} & \cmd{\scriptstyle} \\
+ \cmd{\scriptstyle} & \cmd{\scriptstyle} & \cmd{\scriptscriptstyle} & \cmd{\scriptscriptstyle} \\
+ \cmd{\scriptscriptstyle} & \cmd{\scriptscriptstyle} & \cmd{\scriptscriptstyle} & \cmd{\scriptscriptstyle} \\
+ \bottomrule
+ \end{tabular}
+ \end{center}
+ %
+ (``\texttt{smaller}'' is the default behavior. It gives textstyle limits in
+ displaystyle, whereas ``\texttt{Smaller}'' gives scriptstyle limits.)
+\end{samepage}
+
+This package is provided without guarantees or support. Drawing slashes
+through math to indicate ``cancellation'' is poor design. I don't recommend
+that you use this package at all.
+
+\end{document}
diff --git a/Master/texmf-dist/tex/latex/ltxmisc/cancel.sty b/Master/texmf-dist/tex/latex/cancel/cancel.sty
index 0aac2f61a0b..0aac2f61a0b 100644
--- a/Master/texmf-dist/tex/latex/ltxmisc/cancel.sty
+++ b/Master/texmf-dist/tex/latex/cancel/cancel.sty
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 9e8fcd99740..3e9348abf70 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -52,7 +52,7 @@ my @TLP_working = qw( # these packages should be up to date
boites boldtensors bookest booklet booktabs boolexpr bophook bosisio
boxedminipage boxhandler bpchem
bracketkey breakurl bullcntr bussproofs bytefield
- cachepic calctab calligra calrsfs
+ cachepic calctab calligra calrsfs cancel
capt-of captcont caption carlisle carolmin-ps cases casyl catechis
cbcoptic cbfonts
cc-pl ccaption ccfonts ccicons cclicenses
diff --git a/Master/tlpkg/tlpsrc/cancel.tlpsrc b/Master/tlpkg/tlpsrc/cancel.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/cancel.tlpsrc
diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
index cc932dcf89f..6cb551ed909 100644
--- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
@@ -60,6 +60,7 @@ depend bussproofs
depend calctab
depend calrsfs
depend calxxxx
+depend cancel
depend capt-of
depend captcont
depend cases