Please help with LaTeX: Strikethrough?

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 1̸47\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
2 years, 12 months ago

No vote yet
1 vote

  Easy Math Editor

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.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. 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 1

paragraph 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×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}

Comments

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

For example,

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

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

(100+10+1)+(100+10(0)+)=(800+10+8)(100+10+1)+(100+10(0)+)=(800+10+8)100(+1)+(+1)=800+8+1=8=7.  \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.

Pi Han Goh - 2 years, 12 months ago

Log in to reply

Thank you, that's very helpful.

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{}?

Also, can we use commands like \newcommand, \renewcommand, etc? I see those mentioned again and again but can't seem to use them successfully, either. Much of what works in Brilliant LaTeX seems just a little different from what I see in online searches e.g. I've never seen the \require command mentioned anywhere else.

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.

zico quintina - 2 years, 12 months ago

Log in to reply

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

Just google "LaTeX package list/reference."

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.

Also, can we use commands like \newcommand, \renewcommand, etc?

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.

Pi Han Goh - 2 years, 12 months ago

Log in to reply

@Pi Han Goh Thanks for all your help.

zico quintina - 2 years, 12 months ago

Problem: Toggle LaTeX Feature is gone

Mohammad Farhat - 2 years, 8 months ago

Log in to reply

How do you align the equals sign?

Mohammad Farhat - 2 years, 8 months ago

Log in to reply

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

Pi Han Goh - 2 years, 8 months ago
×

Problem Loading...

Note Loading...

Set Loading...