On Tue, Mar 20, 2001 at 01:43:36AM -0800, Paolo Di Francesco wrote:
> Hello,
>
> I am writing a lot of pages with lyx. Not the first time, but I don't
> remember how to change the lyx-code style in the whole document. The
> problem is that I use lyx-code only in figures (as examples) and the
> lines get out of pages (lines too long).
> So what I would love is a smaller font for the lyx-code without
> changing it manually. I remember that I can set parameters in the
> preamble section, but I don't remember how.
>
> Any suggestion? :)
Put the following in the preamble (you can replace \small by \footnotesize
if necessary)
\renewenvironment{lyxcode}
{\begin{list}{}{
\setlength{\rightmargin}{\leftmargin}
\raggedright
\setlength{\itemsep}{0pt}
\setlength{\parsep}{0pt}
\normalfont\ttfamily\small}%
\item[]}
{\end{list}}