Math & ScienceOverwrite Number with Diagonal Line

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
ciradu
Posts: 6
Joined: Thu Dec 06, 2012 6:44 pm

Overwrite Number with Diagonal Line

Post by ciradu »

I try to "cut" a number of four digits to simplify an equation, but I think I don't know the adequate way. I used, for example, \not{1234}, but instead of cutting the whole number, it only cut the first digit. I hope there is a solution for this.

Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Overwrite Number with Diagonal Line

Post by localghost »

There is the cancel package. But its author doesn't recommend to use it. See the very last paragraph of its manual.


Thorsten
ciradu
Posts: 6
Joined: Thu Dec 06, 2012 6:44 pm

Overwrite Number with Diagonal Line

Post by ciradu »

Thank you.

I've downloaded the cancel package in the MiKTeX directory, I wrote in the preamble \usepackage{cancel}, but couldn't use it. I think I made a mistake somewhere. If I didn't specify it, I use LyX.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Overwrite Number with Diagonal Line

Post by Johannes_B »

What do you mean by "You can't use it"?

Does LaTeX finds the stylefile i.e. is the package properly installed (for example by using the package-manager (TexLive or Miktex)) or can't you use it, because you don't know the commands. In this case type texdoc cancel into a terminal and read the documentation. Additional information is given in the documentaion of siunitx.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Overwrite Number with Diagonal Line

Post by localghost »

ciradu wrote:[…] I've downloaded the cancel package in the MiKTeX directory, […] I think I made a mistake somewhere.[…]
Your mistake is that you did not use the MiKTeX Package Manager to install the package.
Post Reply