Yann Collete wrote:

> I tried one of your tips:
> Latex preamble:
> 
> \usepackage{color}
> \definecolor{gris}{gray}{0.75}
> 
if you like try the following one:

save the attached file in ~/.lyx/layouts, insert the line
Input color.inc
in file stdclass.inc

do a reconfigure in lyx, restart and than choose style
standard-color. if all works well, the text is now befault
in lyxcode and list-environment.

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/lyx/
Preamble
  \usepackage{color,calc}
  \definecolor{myColor}{rgb}{0.9,0.9,0.9}%   rgb color model
EndPreamble

# Standard color-style definition
Style Standard-Color
  Margin                Static
  LatexType             Environment
  LatexName             cminipage
  ParIndent             MM
  ParSkip               0.4
  Align                 Block
  AlignPossible         Block, Left, Right, Center
  LabelType             No_Label
  # standard font definition
  Font 
    color               blue
    family              typewriter
  EndFont


Preamble
  \usepackage{color,calc}
%  \definecolor{myColor}{rgb}{0.9,0.9,0.9}%   rgb color model
  \definecolor{gris}{gray}{0.75}%   
  \newenvironment{cminipage}{%  
  %\setlength{\fboxsep}{-\fboxrule}
    \noindent%
    \begin{lrbox}{\@tempboxa}%
      \begin{minipage}{\linewidth-2\fboxsep}%
    \begin{list}{}{% LyXcode
      \setlength{\rightmargin}{\leftmargin}
      \raggedright
      \setlength{\itemsep}{0pt}
      \setlength{\parsep}{0pt}
      \ttfamily}%
     \item[]}%
  {\end{list}%
   \end{minipage}%
    \end{lrbox}%
    \fcolorbox{gris}{gray}{\usebox{\@tempboxa}}}%   
EndPreamble
End


Reply via email to