add this code in Document setting > local layou:
%%%%%%%%%%%%%%%%
Style Law
Category MainText
Margin Static
LatexType Environment
LatexName bluec
NextNoIndent 1
LeftMargin MMM
RightMargin MMM
ParIndent MM
ParSkip 0
ItemSep 0
TopSep 0.5
BottomSep 0.5
ParSep 0
Align Block
AlignPossible Block, Left, Right, Center
Preamble
\usepackage{mdframed}
\usepackage{xcolor}
\newenvironment{bluec}
{\begin{mdframed}[backgroundcolor=blue!10,linecolor=blue!10,roundcorner=10pt]\quotation}
{\endquotation\end{mdframed}}
EndPreamble
End
%%%%%%%%%%%%%
regards
2016-10-12 0:17 GMT+03:00 Paul Smith <[email protected]>:
> Dear All,
>
> How can one box a equation with a specified color?
>
> Thanks in advance,
>
> Paul
>