Vijay G. Bharadwaj on Sun, 10 Dec 2000 12:57:45 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] Re: shading text background


> > \usepackage{graphics,color}
> > ...
> > \colorbox[named]{Gray}{This text is in a gray box}
> > \colorbox[named]{WildStrawberry}{This in a more colorful box}
> > \colorbox[gray]{.1}{This box is 10 percent black}
> > \colorbox[rgb]{.1,.1,.1}{Look Mom, I'm using rgb values.}
> 
> awesome, this works very nicely. however, is it possible to extend the
> shading for the entire line even if the text is only a word or two?

One way to do it is to put an \hspace*{3in} or similar at the end of the
text (adjust the length). I'm not sure if \hfill or \hspace*{\fill} would
work, try it out. There might be other ways I'm forgetting...

-Vijay



______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug