Re: Using \fbox as an environment? SOLVED

2007-10-16 Thread Steve Litt
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


Re: Using \fbox as an environment? SOLVED

2007-10-16 Thread Steve Litt
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


Re: Using \fbox as an environment?

2007-10-16 Thread Steve Litt
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


Using \fbox as an environment?

2007-10-13 Thread Steve Litt
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

Steve Litt
Books written in LyX:
Troubleshooting Techniques of the Successful Technologist
Twenty Eight Tales of Troubleshooting
Troubleshooting: Just the Facts


Re: Using \fbox as an environment?

2007-10-13 Thread Uwe Stöhr

Steve Litt schrieb:


\fbox{this is my text}

I'd like to do something like this:

\begin{fbox}this is my text\end{fbox}


\fbox is a command and not an enviroment. Use LyX's box feature instead to get what you want. See 
the EmbeddedObjectas manual for reference.


regards Uwe


Using \fbox as an environment?

2007-10-13 Thread Steve Litt
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

Steve Litt
Books written in LyX:
Troubleshooting Techniques of the Successful Technologist
Twenty Eight Tales of Troubleshooting
Troubleshooting: Just the Facts


Re: Using \fbox as an environment?

2007-10-13 Thread Uwe Stöhr

Steve Litt schrieb:


\fbox{this is my text}

I'd like to do something like this:

\begin{fbox}this is my text\end{fbox}


\fbox is a command and not an enviroment. Use LyX's box feature instead to get what you want. See 
the EmbeddedObjectas manual for reference.


regards Uwe


Using \fbox as an environment?

2007-10-13 Thread Steve Litt
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

Steve Litt
Books written in LyX:
Troubleshooting Techniques of the Successful Technologist
Twenty Eight Tales of Troubleshooting
Troubleshooting: Just the Facts


Re: Using \fbox as an environment?

2007-10-13 Thread Uwe Stöhr

Steve Litt schrieb:


\fbox{this is my text}

I'd like to do something like this:

\begin{fbox}this is my text\end{fbox}


\fbox is a command and not an enviroment. Use LyX's box feature instead to get what you want. See 
the EmbeddedObjectas manual for reference.


regards Uwe