I would like to know how to make a paragraph with a grey background colour. Could somebody here please help me?
attached a demo file.
Herbert
#LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{color,calc} \newcommand{\cmcolor}{} \newenvironment{cminipage}[1][white]% {%\setlength{\fboxsep}{-\fboxrule} \renewcommand{\cmcolor}{#1}\noindent% [EMAIL PROTECTED] \begin{minipage}{\linewidth-2\fboxsep}}% { \end{minipage}% \end{lrbox}% [EMAIL PROTECTED] \end_preamble \language ngerman \inputencoding latin1 \fontscheme default \graphics default \paperfontsize 10 \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \paperwidth 17cm \paperheight 22cm \leftmargin 1.2cm \topmargin 1.4cm \rightmargin 1.7cm \bottommargin 1.4cm \headsep 1cm \secnumdepth 4 \tocdepth 4 \paragraph_separation indent \defskip medskip \quotes_language german \quotes_times 2 \papercolumns 1 \papersides 2 \paperpagestyle default
\layout Standard
Have a look at the preamble for the important facts.
You need this definitions if you want to use this in another document.
\layout Standard
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
begin{cminipage}
\end_inset
\layout Standard
text and another text text and another text text and another text text and
another text text and another text text and another text text and another
text text and another text text and another text text and another text
\layout Standard
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
end{cminipage}
\end_inset
\layout Standard
blah
\layout Standard
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
definecolor{myColor}{rgb}{0.9,0.9,0.9}% rgb color model
\layout Standard
\backslash
begin{cminipage}[myColor]
\end_inset
\layout Standard
text and another text text and another text text and another text text and
another text text and another text text and another text text and another
text text and another text text and another text text and another text
\layout Standard
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
end{cminipage}
\end_inset
\layout Standard
blah
\layout Standard
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
begin{cminipage}[yellow]
\end_inset
\layout Standard
text and another text text and another text text and another text text and
another text text and another text text and another text text and another
text text and another text text and another text text and another text
\layout Standard
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
end{cminipage}
\end_inset
\the_end
