...
>>> As you can see, this works only by careful co-ordination. >> >| Ok, this is a bad design IMO As a result you're making life hard for yourself > >| and code that'll be hard to maintain. >> >| Before InsetShortTitle comes InsetTitle. Get that right first and then you >| can think about the short title stuff. >> >| All Section, Caption environments should become a Paragraph that begins with >| an InsetTitle. The name is probably crap, but I'm sure you can think of >| something. > >I had the beginnings of some InsetSectioning somewhere... Yes... and it does almost nothing and is not enabled in any way. Just like Counter(s) which I took from a twinkle in your eye to a working pair of classes. Sure I can make it into something, why not. You may be surprised to learn that I already have some InsetSection stuff here, from even before InsetShortTitle. How far do you want to take this musical chairs game, of 'you cannot do this properly if you don't first do that properly'? I already once scrapped a working shorttitle implementation whose only flaw was that it wasn't lyxtext based. Sure, it was a bit primitive. I won't be able to do much for the coming two weeks. After that, I strongly wonder how motivated I'll be -- as I'll also have to keep my uncommitted local patch compatible with your rewriting of the paragraph stuff -- which I applaud, btw, because I feel in my hide how needed it is. But I believe with a little cleanup the ShortTitleInset class is ready to go, as it will be part of any solution. Shoving a SectionInset inbetween will eliminate the obnoxious braces-and-brackets juggling, but *ShortTitleInset will not change*. My current solution *works*, and yes it is somewhat dirty, but the dirt was there before I arrived on the scene. I didn't add much dirt and documented that. Power users could immediately begin to use this -- beats ERT any day. Doing what you ask -- hardwiring an inset to hang from the start of a paragraph -- is presumably possible, but I don't see how to do it. I tried, banged my head into the wall and failed. And got *no* help. The bibkey example is worthless. I am no C++ guru and would be struggling even if the code base were non-spaghetti. Pattern copying just doesn't cut it here. What do you expect me to do? Anyway, thanks for the encouragement :-) Have you been a schoolteacher in a previous life? >-- > Lgb Martin