Vincent van Ravesteijn <v.f.vanraveste...@tudelft.nl> writes:
>>> Is the problem on screen only, or for the output.
>>>     
>>
>> It is about the screen display.
>>   
>
> I don't know whether it's a bug. If you select a left alignment of a
> paragraph in LyX, LyX and LaTeX both don't indent the paragraph and
> thus ParIndent should also be ignored when it is defined in a layout.

This is indeed done on purpose in the LaTeX sources:

\def\raggedright{%
  \let...@centercr\@rightsk...@flushglue \rightsk...@rightskip
  \leftski...@skip
  \parinden...@}

Hint: the last line is the relevant one here.

It is possible to reinstall indentation by setting parindent again after
calling raggedright, something like this (untested) in the preamble
(could be turned into a module, too).

\let\oldrr=\raggedright
\def\raggedright{\let\oldps=\parskip\oldrr\parskip=\oldps}

JMarc

Reply via email to