Questions tagged [cancel]
The cancel package is used to draw diagonal lines through words and symbols.
94 questions
2
votes
1
answer
92
views
How do I cancel the exponent in an equation?
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.
0
votes
1
answer
119
views
\cancel{} is changing spacing
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}
\...
1
vote
1
answer
186
views
cancel arrows are drawn behind text and the arrow does not shorten the path
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 ...
7
votes
3
answers
559
views
The cancel package doesn't work sometimes in Hebrew
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, ...
1
vote
1
answer
158
views
Cancel more than one unit with siunitx and cancel
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 ...
5
votes
2
answers
3k
views
How to draw a horizontal line on a word in LaTeX
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.
2
votes
1
answer
64
views
\amsmath \align \display Please identify log errors
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 ...
0
votes
2
answers
147
views
RStudio not exporting while TeXworks does
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}
...
2
votes
0
answers
159
views
Cross out a multiline expression inside an align* environment
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 &...
4
votes
2
answers
2k
views
How show rational simplification?
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}{\...
2
votes
2
answers
212
views
How to cancel the prefixes only?
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 ...
4
votes
1
answer
242
views
How could I typeset this? (Horizontal and aligned cancelling)
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 ...
5
votes
1
answer
548
views
How can I write one number vertically above another?
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.
1
vote
1
answer
787
views
\cancel or \bcancel draws non-parallel lines in math mode; looking for better solutions
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:...
10
votes
2
answers
1k
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 ...
5
votes
2
answers
9k
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
1
answer
484
views
How to cancel powered number?
How to get the result circled in red? I tried 3^\cancel{4} but it doesn't work.
1
vote
1
answer
1k
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-...
2
votes
1
answer
761
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
1
answer
2k
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
1
answer
787
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 \...
2
votes
2
answers
379
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 ...
1
vote
3
answers
1k
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{...
5
votes
1
answer
5k
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$$
\...
4
votes
1
answer
1k
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 ...