[texhax] boders on top and bottom only with \fcolorbox

Philip G. Ratcliffe philip.ratcliffe at fastwebnet.it
Fri Jun 30 22:37:58 CEST 2006


> I'm trying to do a shaded text area with a dark border, but I only want 
> the border to occur on the tob and bottom of the box.  I've attempted 
> this using \rule in the following code:
> 
> [snip]
> 
> But this results in a small gap between the top border and the gray box 
> (introduced by the carriage return).
> 
> [snip]

Try putting

  \\[-1pt]

in place of the empty line.

Cheers,  Phil Ratcliffe


More information about the texhax mailing list