Jeff Abrahamson on Sat, 9 Dec 2000 22:46:48 -0500 |
On Fri, Dec 08, 2000 at 02:06:37PM -0600, MaD dUCK wrote: > also sprach Vijay G Bharadwaj (on Fri, 08 Dec 2000 01:12:21PM -0500): > > For documentation, the stuff that comes with TeX can't be beat. Look in > > /usr/share/texmf/doc (or wherever your local installation puts its files) > > right, but it's not easily searchable... > > > \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? Glue is your friend. Something like \colorbox[named]{Gray}{\hss This text is in a gray box \hss} Some fiddling no doubt required, else this wouldn't be TeX. ;-) -- Jeff Jeff Abrahamson <http://www.purple.com/jeff/>
|
|