Jean-Marc Lasgouttes wrote:
> I propose that we wait with these
> changes, or at least only apply a minimal version. I think that we
> should add information to the .layout files telling for each command
> where the alignment and spacing macros should be applied. The
> existence of an optional argument is not the right hint.
>
The flag being used is "NeedProtect", which presumably marks moving
arguments. But still, your general point is well taken. This isn't the
right flag.
> Or we should disable alignment and centering in many of these cases.
> But this requires a review of all classes :(
>
Yes, I agree. The right solution is to deal with this in the layout
file, though that will require some extensive changes there. I think we
need:
ApplyAlignment [Inside|Outside] ---defaults to "Inside"
ApplySpacing [Inside|Outside] ---defaults to "Inside"
Disabling alignment is easy enough:
AlignPossible [whatever AlignDefault is]
but it'd be better to be able to write:
AlignPossible None
or
AlignPossible Layout
and have that be understood (perhaps it already is, actually). But maybe
we should just have:
AllowAlignment [Boolean] ---defaults to True
AllowSpacing [Boolean] ---defaults to True
since we'll want the latter anyway.
In any event, yes, this should wait a bit.
I'll go back through what I've done and separate out the parts that were
just cleanup, which I ought to have done anyway (though it's a pain when
it's all entangled with other changes). I will also, if it's OK with
you, make LyX's treatment of spacing and alignment consistent: They will
be output together by a routine in ParagraphParameters.C that is
responsible for writing the paragraph's parameters. ;-) That will make
whatever eventually gets done here easier. The cleanup will also resolve
the issue with \items and take care of at least part of bug 448, the use
of raggedright instead of flushleft, etc. The part of bug 448 that will
not be addressed concerns the use of "\par", which is also the offender
in other cases. I'll post a separate message about that and see if
anyone else wants to jump in.
Richard
--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto