Skip to main content

Questions tagged [cancel]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
92 views

I'm trying to achieve something like this I tried \cancelto but it doesn't look good. Is there a library for these kind of "special cancellations"? Thank you all.
user424920's user avatar
0 votes
1 answer
119 views

I would like that the \cancel function does not modify the layout of the text. As you can see on the example below, spacing between terms are reduced when cancelled: \documentclass{article} \...
Jonathan Lafarge's user avatar
1 vote
1 answer
186 views

I was reading this answer https://tex.stackexchange.com/a/326370/319072 to change the colour of my cancel, when I noticed: The cancel arrow is drawn behind the text it is canceling the arrow tip does ...
Jasper's user avatar
  • 10.8k
7 votes
3 answers
559 views

I use babel to write documents in Hebrew, and I use the cancel package to draw lines on terms in an equation for cancelation. Until now, this has been working fine. Recently, I tried to cancel a term, ...
Shai Avr's user avatar
  • 1,033
1 vote
1 answer
158 views

Please see the behavior in these different examples. There's clearly something about \text command in the SIUnit qty doing something that I don't understand. But I'm using this all over my work, so ...
J M's user avatar
  • 1,147
5 votes
2 answers
3k views

I want to draw a horizontal line on a word in LaTeX. I've tried \cancel but it draws a diagonal line. I checked the \cancel documentation and couldn't find anything about drawing a horizontal line.
negar pourmoazemi's user avatar
2 votes
1 answer
64 views

The mwe code below compiles and produces the desired layout. However, the log shows 3 errors which I can't find after going through the code several times. Your assistance identifying the source of ...
Siuslaw Math's user avatar
0 votes
2 answers
147 views

Problem Overview I want to use the cancel-package for my R-Markdown-file project.rmd. For that, I created a preamble.tex-file with following content: \usepackage{amsmath} \usepackage[makeroom]{cancel} ...
Taxifahrer's user avatar
2 votes
0 answers
159 views

I'd like to cross out a subsection of an aligned environment, as below (the actual content doesn't matter). \documentclass{article} \usepackage{amsmath,cancel} \begin{document} \begin{align*} 4h + b &...
Exr0n's user avatar
  • 121
4 votes
2 answers
2k views

I need to show the path to simplify fractions, i.e., through their common divisors, so that show the first simplifications. For example: 18/6 I'd want to show some like this: \frac{\cancel{18}^9}{\...
Darío's user avatar
  • 481
2 votes
2 answers
212 views

See my MWE: \documentclass{scrartcl} \usepackage{siunitx, cancel} \begin{document} Test $\qty{1}{\cancel\mega\W}\cdot\SI{1}{\cancel\micro\ohm}$ test. \end{document} It is possible ...
Su-47's user avatar
  • 2,620
4 votes
1 answer
242 views

Let's say I have a reducible fraction, like 77/33, and I want to show its reduction. I'd like to create something similar to cancel's \cancelto, in that it overlaps the superseded digit, but ...
schuelermine's user avatar
5 votes
1 answer
548 views

I wonder if you can help me in how to place one number on top of another (vertically) just as I show in the following image. I appreciate too much any help.
Kami's user avatar
  • 95
1 vote
1 answer
787 views

I have very similar lines in math mode under a \align environment. When I use \cancel or \bcancel it doesn't draw parallel lines for what should be similar width terms. I think a simple repro would be:...
hax0r's user avatar
  • 13
10 votes
2 answers
1k views

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 ...
Concept7's user avatar
  • 655
5 votes
2 answers
9k views

Since \sout does not work in math mode, what can I use instead? I don't want the diagonal strikeout like with cancelf
Hao S's user avatar
  • 1,018
0 votes
1 answer
484 views

How to get the result circled in red? I tried 3^\cancel{4} but it doesn't work.
Simeon Simeonov's user avatar
1 vote
1 answer
1k views

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-...
juan's user avatar
  • 112
2 votes
1 answer
761 views

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{...
hasanghaforian's user avatar
0 votes
1 answer
2k views

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

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 \...
Joao Alberto's user avatar
2 votes
2 answers
379 views

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 ...
Jeff's user avatar
  • 53
1 vote
3 answers
1k views

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{...
Paul-Benjamin's user avatar
5 votes
1 answer
5k views

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$$ \...
Steeven's user avatar
  • 1,487
4 votes
1 answer
1k views

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 ...
pmassat's user avatar
  • 125