killermike wrote:
> The problem with a minipage is that it imposes restrictions on layout in
>  terms  of end of page breaks. It also seems to mess up my settings for
>  things like indenting. Using the framed package just adds a grey
>  background and doesn't interfere with anything else, including footnotes.

You do not need to use a minipage in a box. You can just insert a shaded 
environment, using framed.sty. Have a look at the attached example.

> > > Two question: First, is it possible to have a nested environment via
> > > the GUI?  That is, I want to being to select a region with the mouse,
> > > and then select "greyed" from the pull-down menu. Unfortunately, the
> > > way it works now means that other environments, such as section titles,
> > > are subsumed by the greyed environment.
> >
> > 
> > I don't understand.
> 
> I can manually put \begin{shaded} and \end{shaded} at the start and end
>  region  of the text that I want in a grey box. This is great because
>  quoted material and section headings are preserved. However, if I do the
>  same thing by highlighting the text with the mouse and selecting "shaded"
>  from the drop down, all of the text in that region is set to "shaded".
>  This means that I loose all of the section headings and quotes etc.

This is because you use a style. You need to use an InsetLayout instead. Have 
a look at InsetLayout Box:Shaded in stdinsets.inc for a model.

Jürgen

Attachment: shaded.lyx
Description: application/lyx

Reply via email to