Am 10.03.2010 16:53, schrieb Pierre Delaunoy:
Does anyone know how to set a background color (i.e. lightgray) for a section or a subsection so that it appears also in the output PDF?
To achieve this, you must assure that the section that should be colored starts on a new page. This can be done by adding a page break in front of the section. Right after the linebreak and before the section, add this command as TeX-code \pagecolor{color} where "color" is the color you want. Finally add this to your document preamble: \...@ifundefined{textcolor} {\usepackage{color}}{} How to define your own color is explained in the EnbeddedObjects manual, sec. 2.11 "Colored Tables". I sent you an example LyX file in private mail (too big for this mailing list). regards Uwe