To show the difference between my theoretical an practical part, I want to change the background color of the page during practical sections/parts.
Until now I used a new paragraph style, which worked fine: create new paragraph style
Because I can not use Headings or anything like that, I had to use a shaded box. This also worked fine, but I can not insert numbered illustrations and I get the following error:
> ! LaTeX Error: Not in outer par
> mode.
> \begin{figure}[h]
> You've lost some text. Try typing <return> to proceed. If that doesn't work, type X <return> to quit.
Does anybody know how to manage to change the background color for individual sections (including headings, images, ...) in LyX?


\documentclass{...}and ending with\end{document}. – mafp May 30 '13 at 15:00\fbox? – Mario S. E. May 30 '13 at 15:32tikzpicturewithin text inmdframed– Werner May 30 '13 at 15:44mdframed, and the other regarding the change of colour of certain sections... Would you mind clarifying? – Werner May 30 '13 at 15:49