On Fri, Jan 30, 2004 at 11:35:05AM +0100, [EMAIL PROTECTED] wrote: > > Thanks for your answer. > > My problem is that i really don't know how to use this framed.sty > I m not an advanced user of latex. > I try to put this on my preambule > > \usepackage{/home/doutrele/latex/framed} > > \newenvironment{lyxcode} > {\begin{framed} > {\begin{list}{}{ > \setlength{\rightmargin}{\leftmargin} > \raggedright > \setlength{\itemsep}{0pt} > \setlength{\parsep}{0pt} > \normalfont\ttfamily}% > \item[]} > {\end{list}} > {\end{framed}}
You made some mistakes above. The code should be \renewenvironment{lyxcode} {\begin{framed} \begin{list}{}{ \setlength{\rightmargin}{\leftmargin} \raggedright \setlength{\itemsep}{0pt} \setlength{\parsep}{0pt} \normalfont\ttfamily}% \item[]} {\end{list} \end{framed}} or even better: \let\oldlyxcode=\lyxcode \let\oldendlyxcode=\endlyxcode \renewenvironment{lyxcode} {\begin{framed}\oldlyxcode} {\oldendlyxcode\end{framed}}