Is there a 'strikethrough' feature in LaTeX? I'm trying to show a a product of fractions with several factors in numerators and denominators cancelling each other out. So far all I've found is the \not feature, but this works very poorly; e.g. when I try \not{147}, I get $\not{147}$, with only the 1 crossed out.

I would like to be able to cross out entire numbers; ideally, I'd also like to show either the strikethrough or the number (preferably not both) in a variety of colors.

Anyone know whether this can be done? Thanks!

Note by Zico Quintina
3 years, 1 month ago

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

• Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
• Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
• Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold
- bulleted- list
• bulleted
• list
1. numbered2. list
1. numbered
2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in $$ ... $$ or $ ... $ to ensure proper formatting.
2 \times 3 $2 \times 3$
2^{34} $2^{34}$
a_{i-1} $a_{i-1}$
\frac{2}{3} $\frac{2}{3}$
\sqrt{2} $\sqrt{2}$
\sum_{i=1}^3 $\sum_{i=1}^3$
\sin \theta $\sin \theta$
\boxed{123} $\boxed{123}$

Sort by:

You need to import the $\LaTeX$ package "\require{cancel}" first.

For example,

$\cancel{123} \qquad \bcancel{123} \qquad \xcancel{123} \qquad \cancelto{456}{123}$

See the first example in this wiki page for a longer illustration:

\begin{aligned} (100 + 10 \lozenge + 1) + (100\lozenge + 10(0) +\lozenge) &=& (800 + 10\lozenge + 8 ) \\ (100 + \xcancel{10 \lozenge} + 1) + (100\lozenge + \cancel{10(0)} +\lozenge) &=& (800 + \xcancel{10\lozenge} + 8 ) \\ 100(\lozenge+1) + (\lozenge+1) &=& 800 + 8 \\ \lozenge+ 1 &=& 8 \\ \lozenge &=& 7. \ _\square \end{aligned}

Click "Toggle LaTeX" at your profile picture to view the raw code.

- 3 years, 1 month ago

Is there somewhere I can find out more about packages, e.g. which are available to use and what their features are? I've googled LaTeX several times before and have seen several packages mentioned (amsmath in particular), but all my attempts to use them have been unsuccessful. Can I import any package simply by using \require{}?


I'm sorry for thanking you for replying by asking several more questions, but now that I have a decent command of basic LaTeX I find I want to do more advanced things but have no idea how to learn those. I'd be more than happy to find all the answers to my questions myself if you could just point me to the right place to look.

- 3 years, 1 month ago

Is there somewhere I can find out more about packages, e.g. which are available to use and what their features are?

Can I import any package simply by using \require{}?

On Brilliant? Only some works. I just try to import some package and hope it works, some packages works, some doesn't.


On Brilliant? No, last time I tried, it didn't work.

I've never seen the \require command mentioned anywhere else.

That's because most LaTeX documents have already imported the documents already at the very beginning, but the LaTeX implementation on this site works differently.

I'm sorry for thanking you for replying by asking several more questions, but now that I have a decent command of basic LaTeX I find I want to do more advanced things but have no idea how to learn those.

No worries, we're here to learn and enjoy after all!

I'd be more than happy to find all the answers to my questions myself if you could just point me to the right place to look.

I actually don't know much about LaTeX (I'm serious). Try THIS ONE and THIS OTHER ONE.

- 3 years, 1 month ago

- 3 years, 1 month ago

Problem: Toggle LaTeX Feature is gone

- 2 years, 9 months ago

How do you align the equals sign?

- 2 years, 9 months ago

Move your mouse to my cryptogram LaTeX and you can see how I've aligned it.

- 2 years, 9 months ago