Box around program listings?

2008-03-10 Thread James Sutherland
Does anyone know a way to get a box around a program listing?  Putting it
inside a box (minipage) environment doesn¹t seem to work...

James


Re: Box around program listings?

2008-03-10 Thread Bo Peng
On Mon, Mar 10, 2008 at 10:41 AM, James Sutherland
[EMAIL PROTECTED] wrote:
 Does anyone know a way to get a box around a program listing?  Putting it
  inside a box (minipage) environment doesn¹t seem to work...

You want a frame, right? Use the frame option of the listings package
should work.

Bo


Re: Box around program listings?

2008-03-10 Thread Bob Lounsbury
On Mon, Mar 10, 2008 at 8:54 AM, Bo Peng [EMAIL PROTECTED] wrote:

 On Mon, Mar 10, 2008 at 10:41 AM, James Sutherland
 [EMAIL PROTECTED] wrote:
  Does anyone know a way to get a box around a program listing?  Putting
 it
   inside a box (minipage) environment doesn¹t seem to work...

 You want a frame, right? Use the frame option of the listings package
 should work.

 Bo



If you 'right-click' on the 'Box (Minipage)' icon you get a 'LyX:Box
Settings' dialog box. Under 'Decoration' you can change it to:

Rectangular box
Oval box, thin
Oval box, thick
Shadow box
Double box

Is this not what your looking for?

Cheers,
/Bob


Re: Box around program listings?

2008-03-10 Thread James Sutherland

On 3/10/08 8:09 AM, Bob Lounsbury [EMAIL PROTECTED] wrote:

 On Mon, Mar 10, 2008 at 8:54 AM, Bo Peng [EMAIL PROTECTED] wrote:
 
 On Mon, Mar 10, 2008 at 10:41 AM, James Sutherland
 [EMAIL PROTECTED] wrote:
 Does anyone know a way to get a box around a program listing?  Putting
 it
  inside a box (minipage) environment doesn¹t seem to work...
 
 You want a frame, right? Use the frame option of the listings package
 should work.
 
 Bo
 
 
 
 If you 'right-click' on the 'Box (Minipage)' icon you get a 'LyX:Box
 Settings' dialog box. Under 'Decoration' you can change it to:
 
 Rectangular box
 Oval box, thin
 Oval box, thick
 Shadow box
 Double box
 
 Is this not what your looking for?
 
 Cheers,
 /Bob

Actually, Bo's answer was the one I was looking for.  The Box(minipage) does
not work if a Listing is inside of it.  Supplying the frame=... option to
the listing did the trick.

Thanks!

James


Re: Box around program listings?

2008-03-10 Thread Bo Peng
  Actually, Bo's answer was the one I was looking for.  The Box(minipage) does
  not work if a Listing is inside of it.  Supplying the frame=... option to
  the listing did the trick.

There are options to customize the frame, and if you want to use frame
for all your listings, you can set global listings parameter in
document-settings.

Cheers,
Bo


Box around program listings?

2008-03-10 Thread James Sutherland
Does anyone know a way to get a box around a program listing?  Putting it
inside a box (minipage) environment doesn¹t seem to work...

James


Re: Box around program listings?

2008-03-10 Thread Bo Peng
On Mon, Mar 10, 2008 at 10:41 AM, James Sutherland
[EMAIL PROTECTED] wrote:
 Does anyone know a way to get a box around a program listing?  Putting it
  inside a box (minipage) environment doesn¹t seem to work...

You want a frame, right? Use the frame option of the listings package
should work.

Bo


Re: Box around program listings?

2008-03-10 Thread Bob Lounsbury
On Mon, Mar 10, 2008 at 8:54 AM, Bo Peng [EMAIL PROTECTED] wrote:

 On Mon, Mar 10, 2008 at 10:41 AM, James Sutherland
 [EMAIL PROTECTED] wrote:
  Does anyone know a way to get a box around a program listing?  Putting
 it
   inside a box (minipage) environment doesn¹t seem to work...

 You want a frame, right? Use the frame option of the listings package
 should work.

 Bo



If you 'right-click' on the 'Box (Minipage)' icon you get a 'LyX:Box
Settings' dialog box. Under 'Decoration' you can change it to:

Rectangular box
Oval box, thin
Oval box, thick
Shadow box
Double box

Is this not what your looking for?

Cheers,
/Bob


Re: Box around program listings?

2008-03-10 Thread James Sutherland

On 3/10/08 8:09 AM, Bob Lounsbury [EMAIL PROTECTED] wrote:

 On Mon, Mar 10, 2008 at 8:54 AM, Bo Peng [EMAIL PROTECTED] wrote:
 
 On Mon, Mar 10, 2008 at 10:41 AM, James Sutherland
 [EMAIL PROTECTED] wrote:
 Does anyone know a way to get a box around a program listing?  Putting
 it
  inside a box (minipage) environment doesn¹t seem to work...
 
 You want a frame, right? Use the frame option of the listings package
 should work.
 
 Bo
 
 
 
 If you 'right-click' on the 'Box (Minipage)' icon you get a 'LyX:Box
 Settings' dialog box. Under 'Decoration' you can change it to:
 
 Rectangular box
 Oval box, thin
 Oval box, thick
 Shadow box
 Double box
 
 Is this not what your looking for?
 
 Cheers,
 /Bob

Actually, Bo's answer was the one I was looking for.  The Box(minipage) does
not work if a Listing is inside of it.  Supplying the frame=... option to
the listing did the trick.

Thanks!

James


Re: Box around program listings?

2008-03-10 Thread Bo Peng
  Actually, Bo's answer was the one I was looking for.  The Box(minipage) does
  not work if a Listing is inside of it.  Supplying the frame=... option to
  the listing did the trick.

There are options to customize the frame, and if you want to use frame
for all your listings, you can set global listings parameter in
document-settings.

Cheers,
Bo


Box around program listings?

2008-03-10 Thread James Sutherland
Does anyone know a way to get a box around a program listing?  Putting it
inside a box (minipage) environment doesn¹t seem to work...

James


Re: Box around program listings?

2008-03-10 Thread Bo Peng
On Mon, Mar 10, 2008 at 10:41 AM, James Sutherland
<[EMAIL PROTECTED]> wrote:
> Does anyone know a way to get a box around a program listing?  Putting it
>  inside a box (minipage) environment doesn¹t seem to work...

You want a frame, right? Use the frame option of the listings package
should work.

Bo


Re: Box around program listings?

2008-03-10 Thread Bob Lounsbury
On Mon, Mar 10, 2008 at 8:54 AM, Bo Peng <[EMAIL PROTECTED]> wrote:

> On Mon, Mar 10, 2008 at 10:41 AM, James Sutherland
> <[EMAIL PROTECTED]> wrote:
> > Does anyone know a way to get a box around a program listing?  Putting
> it
> >  inside a box (minipage) environment doesn¹t seem to work...
>
> You want a frame, right? Use the frame option of the listings package
> should work.
>
> Bo
>


If you 'right-click' on the 'Box (Minipage)' icon you get a 'LyX:Box
Settings' dialog box. Under 'Decoration' you can change it to:

Rectangular box
Oval box, thin
Oval box, thick
Shadow box
Double box

Is this not what your looking for?

Cheers,
/Bob


Re: Box around program listings?

2008-03-10 Thread James Sutherland

On 3/10/08 8:09 AM, "Bob Lounsbury" <[EMAIL PROTECTED]> wrote:

> On Mon, Mar 10, 2008 at 8:54 AM, Bo Peng <[EMAIL PROTECTED]> wrote:
> 
>> On Mon, Mar 10, 2008 at 10:41 AM, James Sutherland
>> <[EMAIL PROTECTED]> wrote:
>>> Does anyone know a way to get a box around a program listing?  Putting
>> it
>>>  inside a box (minipage) environment doesn¹t seem to work...
>> 
>> You want a frame, right? Use the frame option of the listings package
>> should work.
>> 
>> Bo
>> 
> 
> 
> If you 'right-click' on the 'Box (Minipage)' icon you get a 'LyX:Box
> Settings' dialog box. Under 'Decoration' you can change it to:
> 
> Rectangular box
> Oval box, thin
> Oval box, thick
> Shadow box
> Double box
> 
> Is this not what your looking for?
> 
> Cheers,
> /Bob

Actually, Bo's answer was the one I was looking for.  The Box(minipage) does
not work if a Listing is inside of it.  Supplying the "frame=..." option to
the listing did the trick.

Thanks!

James


Re: Box around program listings?

2008-03-10 Thread Bo Peng
>  Actually, Bo's answer was the one I was looking for.  The Box(minipage) does
>  not work if a Listing is inside of it.  Supplying the "frame=..." option to
>  the listing did the trick.

There are options to customize the frame, and if you want to use frame
for all your listings, you can set global listings parameter in
document->settings.

Cheers,
Bo