• No results found

The cancel package

N/A
N/A
Protected

Academic year: 2021

Share "The cancel package"

Copied!
2
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

The cancel package

Donald Arseneau

asnd@triumf.ca

12–Apr–2013

I contribute this software to the public domain. No rights reserved.

1 Commands:

\cancel draws a diagonal line (slash) through its argument.

\bcancel uses the negative slope (a backslash).

\xcancel draws an X (actually \cancel plus \bcancel).

\cancelto{〈value〉}{〈expression〉} draws a diagonal arrow through the 〈expression〉, pointing to the 〈value〉.

The first three work in math and text mode, but \cancelto is only for math mode. The slope of the line or arrow depends on what is being cancelled.

2 Options:

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 increase the horizontal spacing to make room for the cancellation value.

If you use the color package, then you can declare \renewcommand{\CancelColor}{<color_command>}

and the cancellation marks will be printed in that color (e. g., \blue). However, if you are using color, I recommend lightly shaded blocks rather than diagonal arrows for cancelling.

The option [thicklines] asks for heavier lines and arrows. This may be useful when the lines are colored a light shade.

This manual corresponds to cancel v2.2, dated 12–Apr–2013.

(2)

The size (math style) of the \cancelto value depends on package options according to this table:

Current style [samesize] [smaller] [Smaller]

\displaystyle \displaystyle \textstyle \scriptstyle

\textstyle \textstyle \scriptstyle \scriptstyle

\scriptstyle \scriptstyle \scriptscriptstyle \scriptscriptstyle

\scriptscriptstyle \scriptscriptstyle \scriptscriptstyle \scriptscriptstyle

(“smaller” is the default behavior. It gives textstyle limits in displaystyle, whereas “Smaller” gives scriptstyle limits.)

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.

Referenties

GERELATEERDE DOCUMENTEN

The default values for the items in the \paperref environment are the following command punctation begin commands end commands.. \by ,

The EASYBMAT package is a macro package for supporting block matri- ces having equal column widths or equal rows heights or both, and support- ing various kinds of rules (lines)

The package EASYEQN introduces some equation environments that sim- plify the typesetting of equations.. It uses a syntax similar to the array envi- ronment to define the

The EASYMAT package is a macro package for supporting block matrices having equal column widths or equal rows heights or both, and supporting various kinds of rules (lines) between

The EASYTABLE package is a macro package for writing tables, with equal column widths or equal rows heights or both, with various kinds of rules (lines) between rows and columns..

In the first case, it creates the new command (macro) \cmd which executes \cmda when in scalar mode and \cmdb when in vector mode. In the second case it creates a new command \cmd

This package provides an environment within which pages are framed with cut lines and printed with punch-marks, so that printed text can easily be inserted into a filofax or

The fortextbook option provides a number of features of value to textbook authors: (1) For the instructor edition, answers can be placed in a wide mar- gin, or inline; (2) short or