On Wed, 15 Nov 2006, Georg Baum wrote:

> > On Wed, 15 Nov 2006, Georg Baum wrote:
> > 
> >> > PS. I discovered that the argument of the LFUN layout is case
> >> > sensitive. In other words, 'layout Standard' works but 'layout
> >> > standard' doesn't. Maybe it should be case insensitive?
> >> 
> >> Why? Are layout names case insensitive elsewhere?
> > 
> > No, but maybe case insensitivity would make it easier to change between
> > document layouts? I'm thinking of cases where the two document layouts use 
> > "Standard" v.s. "standard" for the "same" paragraph layout.
> 
> We have the obsoletedby keyword for such cases. Apart from that this 
> should not happen: People who write layout files should reuse existing 
> names.

Great! I was about to ask for something like that. Just to be on the safe 
side and avoid confusion: The original problem is this:
* You set a paragraph layout to something, e.g. "Section"
* You change document class to something else that happens to not have
  the layout "Section". Oops, that section now became <default>.
* You decide it was too much trouble and changes the document class
  back to the original class. Damn, that section is still <default>.

Will the problem I just described be fixed with the help of obsoletedby?
(And is it stored in the .lyx-file, so it doesn't matter if you saved the 
file in between).

/Christian

PS. I also hate case insensitivity by the way... felt really strange 
arguing for it.

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr

Reply via email to