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 \(\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
4 months ago

No vote yet
1 vote

  Easy Math Editor

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 \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} \)

Comments

Sort by:

Top Newest

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

For example,

\[ \require{\cancel} \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{eqnarray} (100 + 10 \lozenge + 1) + (100\lozenge + 10(0) +\lozenge) &=& (800 + 10\lozenge + 8 ) \\ \require{cancel} (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{eqnarray} \]

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

Pi Han Goh - 4 months ago

Log in to reply

Problem: Toggle LaTeX Feature is gone

Mohmmad Farhan - 6 days, 15 hours ago

Log in to reply

How do you align the equals sign?

Mohmmad Farhan - 6 days, 15 hours ago

Log in to reply

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

Pi Han Goh - 6 days, 2 hours 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 - 4 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 - 4 months ago

Log in to reply

@Pi Han Goh Thanks for all your help.

Zico Quintina - 4 months ago

Log in to reply

×

Problem Loading...

Note Loading...

Set Loading...