Generalcrossing an item with an arrow?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
dragan_k
Posts: 2
Joined: Sat Aug 11, 2007 8:52 pm

crossing an item with an arrow?

Post by dragan_k »

Hello!!
I hope that someone will be able to help me with my problem - how to cross an item with an arrow when it equals zero? Or, how to put an arrow over an item, with zero on the top of the arrow?
Thanks a lot!! ;)

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

crossing an item with an arrow?

Post by gmedina »

dragan_k wrote: how to cross an item with an arrow when it equals zero?

Use the cancel package. An example (after adding in the preamble \usepackage{cancel}):

Code: Select all

$\cancelto{0}{(1-1)}$
dragan_k wrote: ...how to put an arrow over an item, with zero on the top of the arrow?

Try something like this

Code: Select all

$\overbrace{(1-1)+(1-1)+(1-1)}^{0}$
or

Code: Select all

$\stackrel{0}{\overrightarrow{(1-1)+(1-1)+(1-1)}}$
Edit: added the \cancelto example.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
dragan_k
Posts: 2
Joined: Sat Aug 11, 2007 8:52 pm

crossing an item with an arrow?

Post by dragan_k »

gmedina wrote: Use the cancel package.

That's what i was looking for!!
Thank you very much!! :D
Post Reply