Hy,
I want to have the title of my document with a gray background.
I managed to do that in this way using xcolor and the text inside a
Box(minipage) so that 100% col has the appropriate background.
I did the following:
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Standard
\backslash
colorbox{gray}{
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Box Frameless
position "t"
hor_pos "c"
has_inner_box 1
inner_pos "t"
use_parbox 0
width "100col%"
special "none"
height "1in"
height_special "totalheight"
status open
\begin_layout Standard
THE TITLE IS HERE
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Standard
}
\end_layout
\end_inset
\end_layout
/////////////
Now I want to make it an environment.
The problem is the following then:
The "begin part" of my environment contains an open bracket
which is closed in my "end part".
Within those two brackets there's it the text of the title that I woud be able
to insert...
Is there a way to do that?
I want to be able to just click in lyx style menu, choose i.e. Title, type in
the title and this one would be rendered in the pdf with a grey background ...
Thanx