>>>>> "Jan" == Jan Willemson <[EMAIL PROTECTED]> writes:

Jan> Hi again!
>> So I have the following questions. Is the display of Chapter style
>> really hard coded into LyX?

Jan> A little bit of search in the LyX source tree (thanks, OSS!)
Jan> revealed that this is indeed the case. The source files text.C
Jan> and rowpainter.C contain checks

Jan> if (layout->counter == "chapter" ...

Yes, this is one of the last remaining hacks related to layout files
(believe me there used to be many more of these...).

Jan> It would be much more natural to allow the layout style to define
Jan> whether the label is displayed on the same line or on the above
Jan> line (together with the respective alignment, of course) and not
Jan> just allow such a display for one specific counter name. Then the
Jan> current Chapter style could just be a special case of such a
Jan> layout style.

Jan> Are there any plans to develop such a feature?

This is something I have planned to do for a long time, but never
did... The plan would be to remove the label type LabelCounter (the
presence of a counter is enough to find this out), and to change
Top_Environment and Center_Environment to Top and Center (that is,
make them work for normal commands too).

This is not very very difficult, but nobody did it so far... And I
always found other plans to follow to occupy my meager LyX work time.

JMarc

Reply via email to