Thanks for all the help, Dekel and everyone else. Check out the really nice 
Note, Tip and Warning environments you've helped me create:

% ### Implements shading, 80% width, and indented paragraphs. ###
\newenvironment{shadowbox}[1]%
  {%
  ~\\[-1in]%
  \setlength\fboxsep{4pt}%
  \definecolor{shadecolor}{rgb}{0.95,0.95,0.95}%
  \begin{shaded}%
  \addtolength{\hsize}{-0.20\columnwidth}%
  {\centering\large#1\\[0.2cm]}%
  \raggedright%
  \setlength\parindent{16pt}%
  }%
  {%
  \end{shaded}%
  \par
  }%

# ### Labeled shadowed box for Notes ###
Style Note
  LatexType             Environment
  LatexName note_l
  
  LabelType             Centered_Top_Environment
  LabelString           "NOTE"
  AlignPossible         Left
  LeftMargin            "MMMMM"
  RightMargin           "MMMMM"
  ParSkip               0.7
  ParSep                0.7
  TopSep                0.7
  BottomSep             0.7

  Font
  EndFont
  Preamble
    \newenvironment{note_l}{\begin{shadowbox}{NOTE}}{\end{shadowbox}}%
  EndPreamble
End


# ### Labeled shadowed box for Tips ###
Style Tip
  LatexType             Environment
  LatexName             tip_l
  
  LabelType             Centered_Top_Environment
  LabelString           "TIP"
  AlignPossible         Left
  LeftMargin            "MMMMM"
  RightMargin           "MMMMM"
  ParSkip               0.7
  ParSep                0.7
  TopSep                0.7
  BottomSep             0.7

  Font
  EndFont
  Preamble
    \newenvironment{tip_l}{\begin{shadowbox}{TIP}}{\end{shadowbox}}%
  EndPreamble
End


# ### Warning style not shown because it's just more of the same ###

SteveT




-- 
Steve Litt
Webmaster, Troubleshooters.Com
http://www.troubleshooters.com
[EMAIL PROTECTED]
(Legal Disclaimer) Follow these suggestions at your own risk.



On Sunday 09 December 2001 04:37, Dekel Tsur wrote:
> On Fri, Dec 07, 2001 at 06:13:21PM -0500, Steve Litt wrote:
> > On Friday 07 December 2001 08:29, Dekel Tsur wrote:
> > > Framed does not redefine the minipage command.
> > > It define new environments framed and shaded which you should use
> > > instead of your note_l, namely your layout file should contain
> > >
> > > Style Note
> > >  LatexType Environment
> > >  LatexName framed
> > > ...
> > > End
> >
> > Thanks Dekel,
> >
> > I got it running, and it does span pages, and it's beautiful but for the
> > life of me I can't make my shaded narrower. Any idea how to make a shaded
> > narrower?
> >
> > I have a generic LaTeX environment called "shadowbox" to accommodate not
> > only Lyx environment Note, but also Tip and Warning. In the code you can
> > see my failed attempt to shrink the shade by shrinking the text margins:
>
> After the \begin{shaded} command, put \addtolength{\hsize}{-#1}.
> Also, remove the \leftmargin and \rightmargin commands, and
> change the shadowbox env. to have only 2 arguments: margin and title.

Reply via email to