Dear all,
Currently LyX has 'Box (Minipage, shaded background)' and 'Box
(Minipage, simple frame)', but NOT 'Box (Minipage, shaded background,
simple frame)'.

This can be done easily using a construct described on the wiki (
http://wiki.lyx.org/FAQ/ShadedBox ):
\usepackage{calc}
\newenvironment{shadedbox}[1][]%
        {
        %\setlength{\fboxsep}{-\fboxrule}
        \footnotesize\normalfont\ttfamily\raggedright
        \setlength{\rightmargin}{\leftmargin}
        \setlength{\itemsep}{-12pt}
        \setlength{\parsep}{20pt}
        \begin{lrbox}{\@tempboxa}%
        \begin{minipage}{\linewidth-2\fboxsep}
        }%
        {
        \end{minipage}%
        \end{lrbox}%
        \fcolorbox{black}{shadecolor}{\usebox{\@tempboxa}}\newline\newline
        }%

Should LyX support this construct natively? Regards,
Liviu

-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail

Reply via email to