Georg Baum wrote: > Then it should also write this requirement to the \usepackage command: > > \usepackage{jurabib}[2002/09/29]
Agreed. Though it has to be \RequirePackage{jurabib}[2004/01/25] (\usepackage does not have an optional argument). Note, though, that this only spits out a warning. An "ordinary" LyX user (who does not read the LaTeX log) will never know that he has to upgrade. Anyway, patch attached. I'll commit if noone objects. > > Customization.lyx. I'd say we can extend this policy to lyx2lyx. *If* > > someone indeed has the old argument order, he is supposed to upgrade > > jurabib and insert "jurabiborder" manually. > > But the problem is that then the text that is entered in the "before" box > comes after the citation and the other way round. This is extremely > confusing. IMHO tex2lyx should either translate a given construct 100% > correct or should it leave as ERT. OTOH using ERT for citation is a real PITA. It does not even work correctly, since LyX does only run bibtex if there are some citation insets (AFAIR). Also, jurabib gives an error if babel is loaded after it (which is the case in LyX if "use jurabib" is not checked). So you'd have to care for that, too. But I have to agree that your objections are valid. What about the following compromise: Detect jurabib and convert all citation insets except those with two optional arguments, which will be left as ERT? This should work 100%, is not confusing and does only annoy the users who actually use two optional arguments (It's also a visual clue that the two arguments could be problematic). If they want to go on with jurabib order, they're left on their own. Otherwise, all jurabib users would be left on their own. Regards, Jürgen
? frontends/qt2/ui/IndexModuleBase.ui ? frontends/qt2/ui/moc/QPrefDateModule_moc.loT ? frontends/xforms/forms/.cvsignore Index: LaTeXFeatures.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/LaTeXFeatures.C,v retrieving revision 1.110 diff -u -r1.110 LaTeXFeatures.C --- LaTeXFeatures.C 19 May 2004 15:11:28 -0000 1.110 +++ LaTeXFeatures.C 23 Jul 2004 08:39:44 -0000 @@ -194,7 +194,6 @@ "dvipost", "fancybox", "calc", - "jurabib" }; int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *); @@ -307,6 +306,11 @@ packages << "authoryear"; } packages << "]{natbib}\n"; + } + + // jurabib -- we need version 0.6 at least. + if (isRequired("jurabib")) { + packages << "\\RequirePackage{jurabib}[2004/01/25]\n"; } // bibtopic -- the dot provides the aux file naming which