[net.text] TeX question about hrules

philip@bu-cs.UUCP (Philip Borenstein) (08/13/85)

[---]

I'm looking for a way to get hrules on headlines and footlines to go
beyond the page margins.  For text you can do this with \rlap and \llap,
but TeX complains about rules being in boxes;  it seems that rules are
a special kind of object in TeX.

The effect I want is something like this:

	-----------------------------------
	   Text blah blah blah blah
	   blah blah blah blah blah
	----------------------------------
        ^  |<----- \hsize ------->|      ^
        |				 |
	+--------- <edge of paper> ------+

				--philip borenstein
-- 
----
	Everyone sees the world differently, Edwin said, but
	nightmares are pretty much the same.

chris@umcp-cs.UUCP (Chris Torek) (08/14/85)

Within \hbox es, you can use \hrulefill to generate a "leader" rule
which fills all the available space (just like an \hfil only it
draws a line too).  So if you wanted to create a horizontal rule
that spans the entire page (\hsize) you could do this:

	\hbox{\kern-\leftskip\hbox to \hsize{\hrulefill}}

The \kern-\leftskip should move you back by the amount of left
margin (NOT including the 1in margin inserted by the DVI to
device conversion program).

There is probably a better way to do that, but I haven't got
a TeXbook handy.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251)
UUCP:	seismo!umcp-cs!chris
CSNet:	chris@umcp-cs		ARPA:	chris@maryland