Peter Clark wrote:
> I'm playing around with boxed text, and in an effort to spice up the
> appearence of the box, tried to place horizontal lines above and below the
> box, just for added visual interest. Here's what I have:
>
> \rule [1mm]{4.5cm}{.2mm}
> \fbox{\parbox{5cm}{
> Just some filler text to keep things interesting
> }}
> \rule [-1.2mm]{4.5cm}{.2mm}
>
> Now, what I would like is to center the two lines with respect to the box
> itself, so that they don't hug the left side. Faking it with forced spaces is
> ugly and seems inappropriate. Any suggestions?
something like this:
\begin{center}\rule [1mm]{4.5cm}{.2mm}\\
\fbox{\parbox{5cm}{%
Just some filler text to keep things interesting%
}
}
\\\rule [-1.2mm]{4.5cm}{.2mm}\end{center}
Herbert
--
http://www.lyx.org/help/