>>>>> "Philip" == Philip Lehman <[EMAIL PROTECTED]> writes:
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.
Philip> I think I have a basic understanding of the syntax and the
Philip> keywords used in Lyx' config files, but I didn't manage to
Philip> figure out how to get hanging paragraphs. Any help
Philip> appreciated...
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.
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].
JMarc