On Sat, Sep 07, 2002 at 04:15:11PM +0900, R. Lahaye wrote: ...
It's the layout file I use: revtex4.layout. > The following patch solves all my problems: > > ----------------------------------------------------------- > RCS file: /cvs/lyx/lyx-devel/lib/layouts/revtex4.layout,v > retrieving revision 1.5 > diff -u -r1.5 revtex4.layout > --- lib/layouts/revtex4.layout 2002/04/11 13:24:44 1.5 > +++ lib/layouts/revtex4.layout 2002/09/07 07:06:37 > @@ -9,6 +9,9 @@ > # Amir Karger (LyX v11.34 style modifications) > # Amir Karger (RevTeX 4 beta) 9/1999, 7/2000 > > +# Input general definitions > +Input stdclass.inc > + > # General textclass parameters > Columns 1 > Sides 1 > ----------------------------------------------------------- > > Then I still have following questions: > > 1) stdclass.inc should be included in all layout files in lib/layouts? > Now it's only included in a few! Only in those that have been "modularized" in this way. There are a number that are not, from before the time that .inc files were possible. They define all their layouts themselves (and thus tend to be overly big). > 2) When this stdclass.inc is not included, why does LyX behave so strange? > Misterious error boxes and consequently an even stranger crash on a menu item. Because it's stdclass.inc that includes in turn stdfloats.inc... it's the latter that *must* be included in all layouts for floats and float counters to function *at all* in Lars' new scheme. So try to include stdfloats.inc into revtex4.layout instead. What you're now doing is overkill (and might have unwanted effects). Someone cook up a patch :-) > Regards, > Rob. Regards Martin PS. Errors in layout files should actually not cause crashes, or at the least should print something sensible. This should perhaps be looked into as well.
msg44241/pgp00000.pgp
Description: PGP signature