On Sun, Sep 08, 2002 at 06:09:37PM +0300, Dekel Tsur wrote:
> On Sun, Sep 08, 2002 at 01:52:04PM +0200, Philip Gr�ting wrote:
> > when I include an algorithm float, there is always about 2cm of space to the
> > left of each line. Where and how can I overwrite that value? As well, I
> The space is not generated by algorithm float, but by the LyX-code layout.
> > would like to change the default font size used in an algorithm float to
> > "small" and the font to "lyx-code"...
> To change the size of the left margin in the LyX-Code layout, and change the
> font to small, put the following lines in the preamble:
> \renewenvironment{lyxcode}
> {\begin{list}{}{
> \setlength{\leftmargin}{0in} %% <- You can change the value here
> \raggedright
> \setlength{\itemsep}{0pt}
> \setlength{\parsep}{0pt}
> \normalfont\ttfamily\small}%
> \item[]}
> {\end{list}}
I am always hestate to use lyx-code environment because it is not
recognized by latex2html (?). The generated HTML file doesn't use tt
font for lyx-code. Any idea about how to solve this problem? Anyway, in
the floating algorithm case, latex2html converts algorithms to figures
so the font is OK.
Bo