On 8 Feb 2000, Jean-Marc Lasgouttes <[EMAIL PROTECTED]> wrote:
>Philip> I created a command and an environment to set paragraphs with
>Philip> a hanging intentation, i.e. all lines >1 are indented and the
>Philip> first one is not. Essentially, the latex code is simply:
>Philip> \noindent \hangafter=1 \hangindent\parindent
>Philip> How can I represent this in a lyx window? What would I put in
>Philip> the *.layout file? The Latex part seems to work fine, I'm
>Philip> simply after a WYSIWYM-like representation of it in Lyx.
>[...]
>
>The thing I would try would be to set parindent to a negative value
>like "-MMMMM". However, from reading the sources, it appears that only
>left/right margin and label indent can use those negative values.
Indeed, just tried that.
>It would not be difficult to change the source to support negative
>indents, but I am not sure there are not places where it is assumed
>that parindent is positive. It happens that this part of the source is
>really horrible and was tailored only to be able to represent the
>basic latex classes. Some improvements have been made since then,
>but...
>
>If you are not too afraid to change a bit the sources, take a look at
>all the places where the function stringWidth() is called on parindent
>or layout.parindent and change it with signedStringWidth(), which
>honors the leading '-'. Then try it out. If it does something
>reasonable, I'll be glad to accept this change [I do not have much
>time to try it out myself].
It's not that I'm afraid, it's just that I don't have the foggyest
idea about coding. This is going to be a blind flight, but I'll give
it a shot for the fun of it -- and probably watch Lyx bomb ;)
--
Philip Lehman <[EMAIL PROTECTED]>