On Wednesday 13 March 2002 12:40 pm, Jean-Marc Lasgouttes wrote: > >>>>> "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: > > >> - Citation labels should reflect their content, i.e. if only the > >> year is chosen in the citation dialog, then the label should show > >> the year afterwards. (#114) > > > Herbert> attached a patch which fixes a "bug". > > Herbert> - now the choice_style also changes when changing the bibkey > > And now multiple citations are not taken in account anymore, if I read > the patch correctly.
Oops... I hadn't noticed this. Sorry, Herbert! I'm afraid I agree with Jean-Marc. + // we save the combination "after|label" string const after = fl_get_input(dialog_->input_after); - controller().params().setOptions(after); + controller().params().setOptions(after+ + '|'+strip(frontStrip( + fl_get_choice_text(dialog_->choice_style)))); This is a fudge. I had something like this very temporarily and then ditched it. The proper fix is to have insetcitation support multiple options. Anyway, this shouldn't go in FormCitation but in ControlCitation. The insetcitation stuff is also nasty. I think that the real thing to do is to create a BibTeX cache, analogous to the graphics cache and to do such BibTeX stuff there. I plan to use BibTeX itself to parse the .bib files in 1.3.0. We get such stuff for free then. Try the attached demo code (which I'm sure I've sent to you in the past!) Angus
trial2.C.bz2
Description: BZip2 compressed data