Thanks! that did the trick
"Richard Heck" <[email protected]> wrote in message
news:[email protected]...
On 01/14/2011 05:48 PM, S Nedunuri wrote:
Does anyone know how to adjust the left margin in the Lyx Code environment?
I create an Algorithm float, and as soon as I set the env. of the contents
to Lyx Code, the contents get shifted in. I have very little column space as
it is, and I don't need a gratuitous indentation!
LyX automatically defines it for you, as:
\newenvironment{lyxcode}
{\par\begin{list}{}{
\setlength{\rightmargin}{\leftmargin}
\setlength{\listparindent}{0pt}% needed for AMS classes
\raggedright
\setlength{\itemsep}{0pt}
\setlength{\parsep}{0pt}
\normalfont\ttfamily}%
\item[]}
{\end{list}}
So you will need to redefine this environment in your preamble. It may be
enough to do this:
\renewenvironment{lyxcode}
{\par\begin{list}{}{
\setlength{\leftmargin}{0pt}
\setlength{\listparindent}{0pt}% needed for AMS classes
\raggedright
\setlength{\itemsep}{0pt}
\setlength{\parsep}{0pt}
\normalfont\ttfamily}%
\item[]}
{\end{list}}
Untested.
Richard