Jeff Abrahamson on Mon, 11 Dec 2000 16:01:13 -0500 |
On Sun, Dec 10, 2000 at 11:21:45PM -0500, MaD dUCK wrote: > also sprach Jeff Abrahamson (on Sun, 10 Dec 2000 10:43:04PM -0500): > > However, \hss is glue that stretches infinitely. It's not quite so > > infinite as \hfill, and there's a glue that's even more infinite than > > \hfill, don't remember it's name. > > explain this to me, will you? so there is hypothetical glue between > the text on either side of the \hss statement? this part makes sense > in a way, but how does the glue know how long to extend? is the page > border a default stop? and why do i need an \hss before the section > title? \hss *is* glue. Glue has a favorite size, a minimum (contract) size, and a maximum (stretch) size. For \hss, I think it's (0,0,oo). > \newcommand{\sectionhead}[1] > { \vspace{3pt} > \colorbox[gray]{0.90}{\hss #1\hss} \\ > } > > but all i get is > | section head | > > instead of > > | section head | > > any more ideas? Maybe make a \vbox with specific dimensions? I don't remember this stuff well enough. You need a better TeXpert than me. -- Jeff Jeff Abrahamson <http://www.purple.com/jeff/>
|
|