Questions tagged [cancel]

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

Filter by
Sorted by
Tagged with
9
votes
2answers
553 views

How to cancel the root but not the expression inside it?

I wanted to cancel the root of an expression like this \documentclass{article} \usepackage{cancel} \begin{document} \[\cancel{\sqrt{\left(a+b+c+d+f+g+h+e\right)^{\cancel{2}}}}\] \end{document} I'm ...
2
votes
1answer
61 views

`cancelto` : choppy arrow problem

I am using the package cancel to do the operation as shown in figure. As you can see the arrow is choppy. I read another question mentioning the same error : here. As suggested in the accepted ...
2
votes
2answers
81 views

How do cross out text in math mode?

Since \sout does not work in math mode, what can I use instead? I don't want the diagonal strikeout like with cancelf
0
votes
0answers
28 views

How do I do a continuous diagonal line through multiple lines within align section?

How can I have one seamless line that cancels out terms spanning over two lines within an aligned section? The picture shows what I currently have using the cancel package but would ideally have one ...
0
votes
1answer
99 views

Using “cancel” package in pandoc

I'm trying to convert a .md file that contains the "\cancel" control sequence, but pandoc throws error due to the package "cancel" not being included. example: file.md $\cancel{X+2}-\cancel{X+2}=c$ ...
0
votes
1answer
56 views

How to cancel powered number?

How to get the result circled in red? I tried 3^\cancel{4} but it doesn't work.
3
votes
1answer
102 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
111 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-...
5
votes
2answers
152 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
133 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
37 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
728 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
83 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
132 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
930 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 there ...
2
votes
2answers
174 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
372 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{\CancelColor}{&...
1
vote
1answer
450 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
90 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
294 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
278 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
897 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
357 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
345 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
87 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
821 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
568 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
457 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
167 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
624 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
257 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
207 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
690 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
298 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
235 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
193 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
2k 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
627 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
572 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
457 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
4k 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
553 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
151 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
233 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
371 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
193 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=...