Questions tagged [cancel]

The cancel package is used to draw diagonal lines through words and symbols.

Filter by
Sorted by
Tagged with
3
votes
1answer
69 views

Cancel package enhancement

How difficult is it to enhance (=copy the code of the package in my project and adapt it) the Cancel package, Cancel package, with a command \cancelno{〈label〉}{〈expression〉} such that a slash is put ...
1
vote
1answer
56 views

Aborting a compilation in Texmaker

Well, I've read this, but doesn't solve the problem for Texmaker, and I'm really clumsy, instantly seeing errors after a tedious long time wrong compilation. As I really don't expect any self-...
4
votes
2answers
122 views

Equivalent of cancelto in ConTeXt

Is there any equivalent of \cancelto in ConTeXt? I want to cancel math expression with an arrow as in "goes to zero".
2
votes
1answer
94 views

Error on using “\rl{}” inside “inline math”

I use TeXstudio 2.12.16 and want to write Farsi words in \cancelto{value}{expression}. So I used xepersian package and \rl. What I tried is: \documentclass{article} \usepackage{tikz} \usetikzlibrary{...
0
votes
0answers
36 views

Repetition of terms due to \cancel error

I'm writing the following equations \[k_f^\dagger k_f = M_f U_f^\dagger (y_f ^\dagger)^{-1}(y_f)^{-1}U_f M_f = M_f \cancel{U_f^\dagger} \cancel{(U_f^\dagger)^{-1}}(M_f^2)^{-1}\cancel{U_f^{-1}}\cancel{...
0
votes
1answer
500 views

How to use $$ in mathjax to be inline? [closed]

I have used the following code to display inline mathjax <script type="text/x-mathjax-config"> MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}}); </script> <...
2
votes
1answer
65 views

Cancel a term using tikzmark package

Recently, @marmot in Need help to create a more flexible \cancel command that works inside an align environment suggested the use of the \tikzmarknode command of the last version (1.6) of the tikzmark ...
2
votes
1answer
80 views

Need help to create a more flexible \cancel command that works inside an align environment

Please, consider the snippet below. I would like to cancel out the two middle terms of equation (1) and to cancel to 1 the expression in between the braces in equation (2). If I use \cancel and \...
4
votes
1answer
480 views

How to strike through or cancel using different colors in the same line

For example, suppose I had an equation x = 2 + 1 - 2 - 1 (obviously toy example) I want the +2 to cancel out with the -2, +1 to cancel out with the -1 So in Latex I would want something like Is ...
2
votes
2answers
120 views

How to strikeout an flalign block?

I am trying to strikeout an entire flalign block. This post shows how to strikeout an aligned block using the cancel package, but I'm not able to get it to work for the flalign environment. Any ...
3
votes
1answer
285 views

cancel package documentation, shaded blocks to cancel

I would like to use some kind of colored cancel lines to mark simplifications. The cancel package documentation reads: If you use the color package, then you can declare \renewcommand{\...
1
vote
1answer
349 views

Conflict between cancel and align

It seems that the cancel package does not behave well as one needs to cross out 'large' amount of text as the bar crosses the next line, and the result clearly seems unacceptable. \documentclass{...
2
votes
1answer
85 views

Packages cancel and schulschriften_lin not working together?

When I use the "schulschriften_lin"-package, cancellation is no longer working (see MWE). \documentclass{article} \usepackage{amsmath} \usepackage{cancel} \usepackage{schulschriften_lin} % ...
2
votes
1answer
2k views

Coloring the cancellation line with \cancel

I would like the strike-out line colored grey when using the \cancel command from the cancel package. The code... \documentclass{article} \usepackage{cancel} \begin{document} $$a+\cancel b+c$$ \...
1
vote
2answers
265 views

cancel package and tables

I have a "friend" who needs to do some kind of strikethrough or cancel but for a whole row or column (or both) of a table at a time. It should ideally be something supported by MathJax, so various ...
3
votes
1answer
217 views

Line jump using the \xcancel macro in beamer

My question is related to this one : Latex - Beamer: Applies the \cancel command only a specified slides. I tried to apply Loop Space's answer to this question, but I get a line jump when the xcancel ...
2
votes
1answer
695 views

Unable to get cancel.sty to work

I'm a newbie in using Latex. I use the TexMaths Equations editor within LibreOffice. I installed cancel package in MiKTex Package Manager. I'm not sure where it was installed or whether it was ...
0
votes
1answer
331 views

fun style cross-strike-out

I want to cross out (strike out) words or letters in fun ways for poster-sized text for children. ulem and cancel produce rather formal/sterile-looking cancellations, as do tikz-based combinations of ...
3
votes
1answer
270 views

How do I cancel an exponent in an equation using siunitx?

The minimum working example below demonstrates the problem. I have a number of equations formatted like the first one below, where say the numerator has square meters and the denominator has meters. ...
0
votes
0answers
76 views

Lualatex compilation problem using cancel and breqn packages [duplicate]

foo.tex \documentclass{article} \usepackage{cancel} \usepackage{breqn} % <= this include is causing troubles \begin{document} \[\cancelto{0}{foo}\] \end{document} compiling produces these ...
6
votes
1answer
637 views

multiple colors to cancelto

Is it possible to assign multiple colors to the command "cancelto" of the package cancel? This answer change color cancelto is almost there, but it changed the color for all the environments, at ...
3
votes
1answer
461 views

\cancel: double strike

Is it possible to generate multiple \cancel stripes? Say for instance I have $f(x,y) = 3x^2 +2xy +4y^2 - 3x^3 - 3x^2 - 2xy + 4xy^3$ and I want to cancel the 3x^2-term once and the 2xy-term twice. $...
4
votes
2answers
336 views

How to cross-out a number several times?

Hello. I want to be able to cross out a number several times (just like in the picture!) at least 3 times. How do i do that? And how do i make a circle around a number?
10
votes
1answer
155 views

Active ! Character Hangs within TikZ

The MWE below makes the ! active in math mode using the solution from Make Characters Active via Macro in Math Mode and uses the tikz \hcancel via Diagonal strikeout starting too low and ending too ...
2
votes
1answer
577 views

Cancel out factorial fractions

I have the following fraction: How can I use a line and cross off the 3, 2, and 1s in the numerator and denominator? I need a line crossing off the 3s in the numerator and denominator - one line. ...
5
votes
1answer
241 views

How do I strike through the first text on a line using the cancel module?

I'm new to latex so please be gentle. I installed cancel using this command: tlmgr install cancel Then I created a test file called test.tex with the following content: \documentclass[12pt]{...
4
votes
1answer
1k views

cancel package: combine bcancel and cancelto (bcancelto?)

Is there a way to create a negative slope with the cancel package, but using \cancelto? i.e. I would like to combine the two commands so that I have a negative slope but with an arrow and number. ...
3
votes
1answer
192 views

cancel line through a tikz picture in the background

I have defined a command \kr to draw a small circle to use it as a letter. Later I want to cancel out a circle. But the cancel line is in the background, see picture. How can I make the cancel line be ...
4
votes
2answers
609 views

Equation overlapping with body text

In the MWE below, my equation is clashing with the text of the body of the document and also the header. How can I get the equation to not clash/overlap with the document text? Here is my code: \...
3
votes
1answer
1k views

Make “cancel line” thicker

In the MWE below, I wanted: to make the cancel line with arrow slightly thicker and have the arrow end before the vertical }. Here is my code: \documentclass{article} \usepackage{amsmath} \...
1
vote
1answer
275 views

Packages siunitx and cancel not working together [closed]

So I tried to use the MWE in the answer to this question. However my output looks identical to the original post's problem. I checked using \listfiles and my version of siunitx has cancel support. ...
4
votes
2answers
183 views

Cancel a superscript so that the cancel is not as large

I would like to have a "not asterisk" symbol. I try to do such a feature with the cancel package. My current favourite is: A^{\xcancel{\ast}} But the cancel sign goes down very far. I would like to ...
1
vote
1answer
191 views

How to write like that picture [duplicate]

I have a problem in latex. I can't write like that picture. how to write like that. Please.
6
votes
1answer
1k views

Is it possible to strikeout a whole equation or paragraph?

I have a document in which I want to strikeout whole paragraphs including all equation and eqnarray environments. Available options such as sout (from ulem) works on paragraph but not in equations. ...
0
votes
0answers
519 views

Cancel command: color, verse, number of lines

I need a command like \cancel{} but with more '' options '': change the cancel color the number of the line that cancel the text compatible with math mode change the direction of the line
2
votes
1answer
438 views

Tikz variant of cancel to

I found this helpful to quelling my issue with the cancel packages arrows but displaymath seems to break it. The only part of the linked code I am using is \usepackage{tikz} \usepackage{relsize} \...
3
votes
1answer
384 views

Using cancelto in the cancel package but the arrow is wavy not straight

I used the cancel package today for the first time but the arrow isn't straight. Is this normal? \documentclass{article} \usepackage[makeroom]{cancel} \usepackage{mathtools} \begin{document} \begin{...
8
votes
2answers
3k views

Cancel maths expression with a down arrow

The following solution to the question where soome maths text is to be cancelled out makes use of the cancel package. There the macro \cancelto produces an arrow from bottom left to top right. It ...
0
votes
0answers
314 views

Cancelling in a Fraction [duplicate]

I am trying to create a step-by-step solution sheet for my homework and have discovered that I need to use "cancel" things in a fraction. For example, like in the following picture I would like to ...
4
votes
1answer
142 views

Vertical Spacing of Exponent when using \cancel in the Denominator of a Fraction

For some reason, using \cancel in the denominator of a fraction adds a certain height to the exponent (see minimal example below). Observe that it does not happen if the expression is in the ...
8
votes
3answers
1k views

Cancel (cross out) normal text in non-math mode

I want to cross out a letter. I found Draw a diagonal arrow across an expression in a formula to show that it vanishes but this works in mathmode only and mathmode changes the font. Is there a way to ...
4
votes
1answer
224 views

How can I cancel only the navigation bar or title in a specified frame

My MWE is \documentclass[14pt]{beamer}% http://ctan.org/pkg/beamer \let\Tiny\tiny% https://tex.stackexchange.com/q/58087/5764 \usetheme{Berkeley} \makeatletter \beamer@headheight=1.5\baselineskip \...
7
votes
1answer
350 views

In beamer, how to temporarily cancel the frametitle

I have a image in this frame and I want to show it without any other item. Just like below. And my MWE is \documentclass[14pt]{beamer}% http://ctan.org/pkg/beamer \let\Tiny\tiny% http://tex....
3
votes
1answer
184 views

using \cancel within a mhchem command italicizes text (how to prevent?)

The text being cancelled is italicized when the following code is printed. How do I prevent this? Here is a minimum working example: \documentclass[11pt, oneside]{article} \usepackage[version=...
2
votes
2answers
315 views

Anomalous bracket sizes when using the cancel package

I have been happily using the cancel package that allows to cross out parts of mathematical formulas for some time now. However, today I noticed a very strange behaviour in the size of brackets ...
1
vote
1answer
347 views

How to adjust the positioning of \cancel strikethrough?

After loading the package cancel the command \cancel{text} worked not so exactly, because the slash strikethrough looks so ugly. The output is shown below: Is it a LaTeX error or PDF error?
16
votes
1answer
38k views

How to use \cancel command [closed]

I want to use \cancel command in TeXnicCenter but it is giving error while using that.. Basically I want to show cancellation of 2 with 2, using \frac. Like: \frac{2}{2} but I want to show it like: \...
4
votes
2answers
486 views

How to set the width of \cancel

I have 2 TikZ nodes with fixed text width: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \usepackage{cancel} \begin{document} \begin{tikzpicture} \node[text width = 3cm] (1){...
8
votes
1answer
2k views

problem packages diagbox and cancel

When using cancel package to cross out something and the package diagbox is also loaded the line does not appear in the proper location. When diagbox is not loaded everything works ok. However, I need ...
20
votes
2answers
8k views

cancel with different colors

I have equations with a lot of terms and I would like to be able to specify the reason of the cancelation of those terms using a color code (for example : red if the term is null, blue if it cancels ...