Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > Math Help Forum Lounge > LaTex Help
Reply
 
Thread Tools Display Modes
  #1  
Old 07-28-2008, 07:59 PM
Jonboy's Avatar
Senior Member
 
Join Date: May 2007
Location: South Point
Posts: 198
Country:
Thanks: 90
Thanked 44 Times in 40 Posts
Jonboy will become famous soon enough
Default How to cross out long terms

How to cross out long terms?

Like this: \frac{\rlap{---------}(x + 5)(x - 2)}{\rlap{---------}(x + 5)} = x - 2

This is something I've been wanting to do again for a while but forgot. And I couldn't find it anywhere. Here's what I've found through experimentation.

You use: \rlap {--}

In front of the term where you want the slash to start.

Then increase the "-" between the brackets until it's long enough.

Is there an easier way to do this? I imagine so.
Reply With Quote
The Following 4 Users Say Thank You to Jonboy For This Useful Post:
Donate to MHF
Advertisement
 
  #2  
Old 07-30-2008, 02:50 PM
Super Member


 
Join Date: May 2006
Location: Lexington, MA (USA)
Posts: 6,073
Thanks: 334
Thanked 3,308 Times in 2,619 Posts
Soroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond reputeSoroban has a reputation beyond repute
Default

I experimented with Jonboy's suggestion . . .


It seems that "rlap" is an over-write command.


\rlap{///}3x^2 . \Rightarrow\quad \rlap{///}3x^2

\rlap{TRUE}false . \Rightarrow\quad \rlap{TRUE}false


\rlap{|}X . \Rightarrow\quad \rlap{|}X

\rlap{||}\:5T^2 . \Rightarrow\quad \rlap{||}\:5T^2

I don't know why "|" produces a horizontal line.

Reply With Quote
The following users thank Soroban for this useful post:
Donate to MHF
  #3  
Old 07-30-2008, 03:55 PM
Jonboy's Avatar
Senior Member
 
Join Date: May 2007
Location: South Point
Posts: 198
Country:
Thanks: 90
Thanked 44 Times in 40 Posts
Jonboy will become famous soon enough
Default

Thanks for the response Soroban! Very interesting findings.
Reply With Quote
  #4  
Old 07-30-2008, 05:44 PM
wingless's Avatar
Super Member
 
Join Date: Dec 2007
Location: Istanbul
Posts: 604
Country:
Thanks: 61
Thanked 285 Times in 226 Posts
wingless is a jewel in the roughwingless is a jewel in the roughwingless is a jewel in the roughwingless is a jewel in the rough
Default

It would be much easier if we had the cancel package in LaTeX...
__________________
\sum_{n=-\infty}^{\infty} \frac{1}{n^2 + a^2} = \frac{\pi \coth (\pi a)}{a}
Reply With Quote
  #5  
Old 07-31-2008, 12:04 AM
earboth's Avatar
Super Member
 
Join Date: Jan 2006
Location: Germany
Posts: 3,287
Country:
Thanks: 144
Thanked 1,342 Times in 1,227 Posts
earboth has much to be proud ofearboth has much to be proud ofearboth has much to be proud ofearboth has much to be proud ofearboth has much to be proud ofearboth has much to be proud ofearboth has much to be proud ofearboth has much to be proud ofearboth has much to be proud ofearboth has much to be proud of
Default

Quote:
Originally Posted by Jonboy View Post
How to cross out long terms?

Like this: \frac{\rlap{---------}(x + 5)(x - 2)}{\rlap{---------}(x + 5)} = x - 2

...
With Jonboy's method you can use different colours to cross out different terms.

\frac{\bold{\rlap{{\color{red}====}}}(x + 5)(x - 2) \rlap{{\color{blue}---------}}(x + 7)}{\rlap{{\color{red}====}}(x + 5) \rlap{{\color{blue}---------}}(x + 7)} = \bold{x - 2}

It would be nice and much more legible if the horizontal line could be printed in bold style. Unfortunately I didn't find the appropriate command . The \bold{..} obviously only works with numbers and letters.

Last edited by earboth; 07-31-2008 at 03:51 AM.
Reply With Quote
The following users thank earboth for this useful post:
Donate to MHF
  #6  
Old 10-26-2008, 05:38 AM
Opalg's Avatar
Super Member
 
Join Date: Aug 2007
Location: Leeds, UK
Posts: 978
Country:
Thanks: 56
Thanked 555 Times in 455 Posts
Opalg is a splendid one to beholdOpalg is a splendid one to beholdOpalg is a splendid one to beholdOpalg is a splendid one to beholdOpalg is a splendid one to beholdOpalg is a splendid one to beholdOpalg is a splendid one to behold
Default

Quote:
Originally Posted by earboth View Post
With Jonboy's method you can use different colours to cross out different terms.

\frac{\bold{\rlap{{\color{red}====}}}(x + 5)(x - 2) \rlap{{\color{blue}---------}}(x + 7)}{\rlap{{\color{red}====}}(x + 5) \rlap{{\color{blue}---------}}(x + 7)} = \bold{x - 2}

It would be nice and much more legible if the horizontal line could be printed in bold style. Unfortunately I didn't find the appropriate command . The \bold{..} obviously only works with numbers and letters.
Using \vrule, you can create lines of any height, depth and width that you want. For example, \frac{(\rlap{\color{red}\vrule height3.5pt depth-2pt width2.3em}x + 5)(x - 2) (\rlap{\color{blue}\vrule height3.5pt depth-2pt width2.3em}x + 7)}{(\rlap{\color{red}\vrule height3.5pt depth-2pt width2.3em}x + 5) (\rlap{\color{blue}\vrule height3.5pt depth-2pt width2.3em}x + 7)} = x - 2 comes from this code:

Code:
\frac{(\rlap{\color{red}\vrule height3.5pt depth-2pt width2.3em}
x + 5)(x - 2) (\rlap{\color{blue}\vrule height3.5pt depth-2pt width2.3em}
x + 7)}{(\rlap{\color{red}\vrule height3.5pt depth-2pt width2.3em}
x + 5) (\rlap{\color{blue}\vrule height3.5pt depth-2pt width2.3em}
x + 7)} = x - 2
Reply With Quote
The Following 5 Users Say Thank You to Opalg For This Useful Post:
Donate to MHF
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 02:29 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2008 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.