On Saturday 13 October 2007 05:27, Steve Litt wrote:
> Hi all,
>
> The documented way to use \fbox is like this:
>
> \fbox{this is my text}
>
> I'd like to do something like this:
>
> \begin{fbox}this is my text\end{fbox}
>
> However, doing that draws a tiny box around the first character. Anyone
> know a way to turn \fbox into an environment, or an environment equivalent
> for \fbox, or a way to put a border around a minipage?
>
> Thanks
>
> SteveT
Hi all,
I found the answer in the Fancybox documentation (fancybox.doc). Search for
the string:
"since the former doesn't"
Look above and below that string. Here's their solution:
\newenvironment{fminipage}%
{\begin{Sbox}\begin{minipage}}%
{\end{minipage}\end{Sbox}\fbox{\TheSbox}}
\begin{document}
\begin{fminipage}{2in}
Since the former doesn't use braces to delimit
the contents of the box, $\ldots$
\end{fminipage}
Pretty cool, huh?
SteveT
Steve Litt
Books written in LyX:
Troubleshooting Techniques of the Successful Technologist
Twenty Eight Tales of Troubleshooting
Troubleshooting: Just the Facts