Am 29.08.2011 12:01, schrieb Jean-Marc Lasgouttes:
In which sense is the LaTeX list environment designed to show typewriter code?
It allows free spacing, so that you can insert multiple spaces and LaTeX will respect them. It moreover allows to format your text in the way you like - like in our case typewriter.
I had a lengthy discussion about this topic with the LaTeX gurus and our lyxcode definition is correct. The only bug is that we are using in any case protected spaces instead of normal ones.
\def\obeyspaces{\catcode`\ \active} {\obeyspaces\global\let =\space} In a nutshell, it makes normal spaces act like protected spaces. Does that ring a bell?
That is the opposite to what we want. We need normal spaces that don't act as protected spaces. regards Uwe