On Friday, 20. July 2001 10:56, Angus Leeming wrote: > Could you fix this at your end please by playing with fdesign > form_citation.fd. Hello Angus, I've done this in fdesign and editor. Now it fits almost perfectly into the "poor man's 800x600 screen". I've attached the diff (no, I won't call it "Patch" this time) with the new sizes and positions (only slight corrections on the width). Maybe it's of interest for you. I had to edit FormCitation.C manually to get it visible. Don't know why. Anyway, there's a diff from this, too. [...] > This is a limitation of my hacked BibTeX parser. I plan to redo this > eventually using pybliographic's extremely sophisticated parser. That's of course a very good idea! BTW: it's o.k. for me, I only thought it *might* be confusing to users with no natbib experience. At this point (just as an idea for the future): *If* this is somehow possible eventually, it would be nice if the cite-labels in the text could somehow show the citation style too. > > - In layout -> document you can choose the option Author-Year or > > Numerical. But what about the other Natbib Options apart from > > "numbered" (e.g. sort&compress)? [...] > All very true. Surely it's not THAT hard for now to export to LaTeX > and edit the usepackage command yourself. This was more a general thought at this point where LyX starts to support more and more packages directly. Maybe it belongs to the "Supported Packages Dialog: Yes or No" discussion which is currently held under another topic. Thanks, Jürgen BTW: I played a bit today with the new feature (all possible cite combinations with and withour "numbered"). I really like it very much! The only problem I encountered was a (known) Natbib bug: Upper Case gives problems sometimes when NFSS commands are used. This does not happen with the default natbib styles like plainnat but most likely with selfmade (custom-bib) Styles. But I guess that is not your business. So thanks again for this. > Thank you. > Angus
Index: src/frontends/xforms/form_citation.C =================================================================== RCS file: /cvs/lyx/lyx-devel/src/frontends/xforms/form_citation.C,v retrieving revision 1.23 diff -u -r1.23 form_citation.C --- src/frontends/xforms/form_citation.C 2001/07/19 14:12:36 1.23 +++ src/frontends/xforms/form_citation.C 2001/07/20 11:16:52 @@ -22,12 +22,12 @@ FL_OBJECT *obj; FD_form_citation *fdui = new FD_form_citation; - fdui->form = fl_bgn_form(FL_NO_BOX, 860, 510); + fdui->form = fl_bgn_form(FL_NO_BOX, 800, 510); fdui->form->u_vdata = this; - fdui->box = obj = fl_add_box(FL_UP_BOX, 0, 0, 860, 510, ""); + fdui->box = obj = fl_add_box(FL_UP_BOX, 0, 0, 800, 510, ""); { char const * const dummy = N_("Inset keys|#I"); - fdui->browser_cite = obj = fl_add_browser(FL_HOLD_BROWSER, 10, 30, 180, 460, idex(_(dummy))); + fdui->browser_cite = obj = fl_add_browser(FL_HOLD_BROWSER, 10, 30, 165, 460, idex(_(dummy))); fl_set_button_shortcut(obj, scex(_(dummy)), 1); } fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT); @@ -36,75 +36,75 @@ fl_set_object_callback(obj, C_FormBaseInputCB, 0); { char const * const dummy = N_("Bibliography keys|#B"); - fdui->browser_bib = obj = fl_add_browser(FL_HOLD_BROWSER, 240, 30, 180, 460, idex(_(dummy))); + fdui->browser_bib = obj = fl_add_browser(FL_HOLD_BROWSER, 225, 30, 180, 460, idex(_(dummy))); fl_set_button_shortcut(obj, scex(_(dummy)), 1); } fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT); fl_set_object_gravity(obj, FL_North, FL_SouthEast); fl_set_object_resize(obj, FL_RESIZE_X); fl_set_object_callback(obj, C_FormBaseInputCB, 0); - fdui->button_add = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 30, 30, 30, _("@4->")); + fdui->button_add = obj = fl_add_button(FL_NORMAL_BUTTON, 185, 30, 30, 30, _("@4->")); fl_set_button_shortcut(obj, _("#&D"), 1); fl_set_object_gravity(obj, FL_North, FL_North); fl_set_object_resize(obj, FL_RESIZE_NONE); fl_set_object_callback(obj, C_FormBaseInputCB, 0); - fdui->button_del = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 65, 30, 30, _("@9+")); + fdui->button_del = obj = fl_add_button(FL_NORMAL_BUTTON, 185, 65, 30, 30, _("@9+")); fl_set_button_shortcut(obj, _("#X"), 1); fl_set_object_gravity(obj, FL_North, FL_North); fl_set_object_resize(obj, FL_RESIZE_NONE); fl_set_object_callback(obj, C_FormBaseInputCB, 0); - fdui->button_up = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 100, 30, 30, _("@8->")); + fdui->button_up = obj = fl_add_button(FL_NORMAL_BUTTON, 185, 100, 30, 30, _("@8->")); fl_set_button_shortcut(obj, _("#&A"), 1); fl_set_object_gravity(obj, FL_North, FL_North); fl_set_object_resize(obj, FL_RESIZE_NONE); fl_set_object_callback(obj, C_FormBaseInputCB, 0); - fdui->button_down = obj = fl_add_button(FL_NORMAL_BUTTON, 200, 135, 30, 30, _("@2->")); + fdui->button_down = obj = fl_add_button(FL_NORMAL_BUTTON, 185, 135, 30, 30, _("@2->")); fl_set_button_shortcut(obj, _("#&B"), 1); fl_set_object_gravity(obj, FL_North, FL_North); fl_set_object_resize(obj, FL_RESIZE_NONE); fl_set_object_callback(obj, C_FormBaseInputCB, 0); - fdui->browser_info = obj = fl_add_browser(FL_NORMAL_BROWSER, 440, 30, 410, 95, _("Info")); + fdui->browser_info = obj = fl_add_browser(FL_NORMAL_BROWSER, 410, 30, 370, 90, _("Info")); fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT); fl_set_object_gravity(obj, FL_SouthWest, FL_SouthEast); fl_set_object_resize(obj, FL_RESIZE_NONE); - fdui->frame_search = obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 440, 145, 410, 125, _("Search")); + fdui->frame_search = obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 410, 140, 370, 120, _("Search")); fl_set_object_lsize(obj, FL_NORMAL_SIZE); fl_set_object_lstyle(obj, FL_BOLD_STYLE); fl_set_object_gravity(obj, FL_SouthWest, FL_SouthEast); - fdui->input_search = obj = fl_add_input(FL_NORMAL_INPUT, 455, 160, 380, 30, ""); + fdui->input_search = obj = fl_add_input(FL_NORMAL_INPUT, 430, 150, 340, 30, ""); fl_set_object_lalign(obj, FL_ALIGN_TOP); fl_set_object_gravity(obj, FL_SouthWest, FL_SouthEast); fl_set_object_resize(obj, FL_RESIZE_NONE); - fdui->button_search_type = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 455, 195, 30, 30, _("Regular Expression")); + fdui->button_search_type = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 430, 190, 30, 30, _("Regular Expression")); fl_set_object_gravity(obj, FL_SouthWest, FL_SouthWest); - fdui->button_search_case = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 455, 230, 30, 30, _("Case sensitive")); + fdui->button_search_case = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 430, 220, 30, 30, _("Case sensitive")); fl_set_object_gravity(obj, FL_SouthWest, FL_SouthWest); { char const * const dummy = N_("Previous|#P"); - fdui->button_previous = obj = fl_add_button(FL_NORMAL_BUTTON, 745, 195, 90, 30, idex(_(dummy))); + fdui->button_previous = obj = fl_add_button(FL_NORMAL_BUTTON, 680, 190, 90, 30, idex(_(dummy))); fl_set_button_shortcut(obj, scex(_(dummy)), 1); } fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast); fl_set_object_callback(obj, C_FormBaseInputCB, 0); { char const * const dummy = N_("Next|#N"); - fdui->button_next = obj = fl_add_button(FL_NORMAL_BUTTON, 745, 230, 90, 30, idex(_(dummy))); + fdui->button_next = obj = fl_add_button(FL_NORMAL_BUTTON, 680, 225, 90, 30, idex(_(dummy))); fl_set_button_shortcut(obj, scex(_(dummy)), 1); } fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast); fl_set_object_callback(obj, C_FormBaseInputCB, 0); - obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 440, 285, 410, 80, _("Citation style")); + obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 410, 280, 370, 80, _("Citation style")); fl_set_object_shortcut(obj, _("frame_style"), 1); fl_set_object_lsize(obj, FL_NORMAL_SIZE); fl_set_object_lstyle(obj, FL_BOLD_STYLE); - fdui->choice_style = obj = fl_add_choice(FL_NORMAL_CHOICE, 590, 300, 130, 30, ""); + fdui->choice_style = obj = fl_add_choice(FL_NORMAL_CHOICE, 550, 290, 130, 30, ""); fl_set_object_boxtype(obj, FL_FRAME_BOX); fl_set_object_gravity(obj, FL_SouthWest, FL_SouthEast); fl_set_object_resize(obj, FL_RESIZE_NONE); fl_set_object_callback(obj, C_FormBaseInputCB, 0); { char const * const dummy = N_("Full author list|#F"); - fdui->button_full_author_list = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 580, 330, 30, 30, idex(_(dummy))); + fdui->button_full_author_list = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 530, 320, 30, 30, idex(_(dummy))); fl_set_button_shortcut(obj, scex(_(dummy)), 1); } fl_set_object_lsize(obj, FL_NORMAL_SIZE); @@ -112,7 +112,7 @@ fl_set_object_callback(obj, C_FormBaseInputCB, 0); { char const * const dummy = N_("Force upper case|#u"); - fdui->button_force_uppercase = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 805, 330, 30, 30, idex(_(dummy))); + fdui->button_force_uppercase = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 730, 320, 30, 30, idex(_(dummy))); fl_set_button_shortcut(obj, scex(_(dummy)), 1); } fl_set_object_lsize(obj, FL_NORMAL_SIZE); @@ -136,24 +136,24 @@ fl_set_object_callback(obj, C_FormBaseInputCB, 0); { char const * const dummy = N_("Restore|#R"); - fdui->button_restore = obj = fl_add_button(FL_NORMAL_BUTTON, 440, 460, 90, 30, idex(_(dummy))); + fdui->button_restore = obj = fl_add_button(FL_NORMAL_BUTTON, 410, 460, 90, 30, idex(_(dummy))); fl_set_button_shortcut(obj, scex(_(dummy)), 1); } fl_set_object_gravity(obj, FL_SouthWest, FL_SouthWest); fl_set_object_callback(obj, C_FormBaseRestoreCB, 0); - fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 560, 460, 90, 30, _("OK")); + fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 510, 460, 90, 30, _("OK")); fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast); fl_set_object_callback(obj, C_FormBaseOKCB, 0); { char const * const dummy = N_("Apply|#A"); - fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 660, 460, 90, 30, idex(_(dummy))); + fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 605, 460, 90, 30, idex(_(dummy))); fl_set_button_shortcut(obj, scex(_(dummy)), 1); } fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast); fl_set_object_callback(obj, C_FormBaseApplyCB, 0); { char const * const dummy = N_("Cancel|^["); - fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 760, 460, 90, 30, idex(_(dummy))); + fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 700, 460, 90, 30, idex(_(dummy))); fl_set_button_shortcut(obj, scex(_(dummy)), 1); } fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
Index: src/frontends/xforms/forms/form_citation.fd =================================================================== RCS file: /cvs/lyx/lyx-devel/src/frontends/xforms/forms/form_citation.fd,v retrieving revision 1.18 diff -u -r1.18 form_citation.fd --- src/frontends/xforms/forms/form_citation.fd 2001/07/19 14:12:37 1.18 +++ src/frontends/xforms/forms/form_citation.fd 2001/07/20 09:26:26 @@ -8,14 +8,14 @@ =============== FORM =============== Name: form_citation -Width: 860 +Width: 800 Height: 510 Number of Objects: 24 -------------------- class: FL_BOX type: UP_BOX -box: 0 0 860 510 +box: 0 0 800 510 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -33,7 +33,7 @@ -------------------- class: FL_BROWSER type: HOLD_BROWSER -box: 10 30 180 460 +box: 10 30 165 460 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_TOP_LEFT @@ -51,7 +51,7 @@ -------------------- class: FL_BROWSER type: HOLD_BROWSER -box: 240 30 180 460 +box: 225 30 165 460 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_TOP_LEFT @@ -69,7 +69,7 @@ -------------------- class: FL_BUTTON type: NORMAL_BUTTON -box: 200 30 30 30 +box: 185 30 30 30 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -87,7 +87,7 @@ -------------------- class: FL_BUTTON type: NORMAL_BUTTON -box: 200 65 30 30 +box: 185 65 30 30 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -105,7 +105,7 @@ -------------------- class: FL_BUTTON type: NORMAL_BUTTON -box: 200 100 30 30 +box: 185 100 30 30 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -123,7 +123,7 @@ -------------------- class: FL_BUTTON type: NORMAL_BUTTON -box: 200 135 30 30 +box: 185 135 30 30 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -141,7 +141,7 @@ -------------------- class: FL_BROWSER type: NORMAL_BROWSER -box: 440 30 410 95 +box: 410 30 370 90 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_TOP_LEFT @@ -159,7 +159,7 @@ -------------------- class: FL_LABELFRAME type: ENGRAVED_FRAME -box: 440 145 410 125 +box: 410 140 370 120 boxtype: FL_NO_BOX colors: FL_BLACK FL_COL1 alignment: FL_ALIGN_TOP_LEFT @@ -177,7 +177,7 @@ -------------------- class: FL_INPUT type: NORMAL_INPUT -box: 455 160 380 30 +box: 430 150 340 30 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_TOP @@ -195,7 +195,7 @@ -------------------- class: FL_CHECKBUTTON type: PUSH_BUTTON -box: 455 195 30 30 +box: 430 190 30 30 boxtype: FL_NO_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -213,7 +213,7 @@ -------------------- class: FL_CHECKBUTTON type: PUSH_BUTTON -box: 455 230 30 30 +box: 430 220 30 30 boxtype: FL_NO_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -231,7 +231,7 @@ -------------------- class: FL_BUTTON type: NORMAL_BUTTON -box: 745 195 90 30 +box: 680 190 90 30 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -249,7 +249,7 @@ -------------------- class: FL_BUTTON type: NORMAL_BUTTON -box: 745 230 90 30 +box: 680 225 90 30 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -267,7 +267,7 @@ -------------------- class: FL_LABELFRAME type: ENGRAVED_FRAME -box: 440 285 410 80 +box: 410 280 370 80 boxtype: FL_NO_BOX colors: FL_BLACK FL_COL1 alignment: FL_ALIGN_TOP_LEFT @@ -285,7 +285,7 @@ -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 590 300 130 30 +box: 550 290 130 30 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -303,7 +303,7 @@ -------------------- class: FL_CHECKBUTTON type: PUSH_BUTTON -box: 580 330 30 30 +box: 530 320 30 30 boxtype: FL_NO_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_LEFT @@ -321,7 +321,7 @@ -------------------- class: FL_CHECKBUTTON type: PUSH_BUTTON -box: 805 330 30 30 +box: 730 320 30 30 boxtype: FL_NO_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_LEFT @@ -375,7 +375,7 @@ -------------------- class: FL_Bcvs server: Diffing src/frontends/xforms-new UTTON type: NORMAL_BUTTON -box: 440 460 90 30 +box: 410 460 90 30 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -393,7 +393,7 @@ -------------------- class: FL_BUTTON type: RETURN_BUTTON -box: 560 460 90 30 +box: 510 460 90 30 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -411,7 +411,7 @@ -------------------- class: FL_BUTTON type: NORMAL_BUTTON -box: 660 460 90 30 +box: 605 460 90 30 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -429,7 +429,7 @@ -------------------- class: FL_BUTTON type: NORMAL_BUTTON -box: 760 460 90 30 +box: 700 460 90 30 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER