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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
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