On 19 March 2013 00:04, Richard Heck <[email protected]> wrote: > On 03/18/2013 05:57 AM, Nick Fort wrote: > > Hi, > > I've stumbled upon an issue with LyX 2.0.5.1: using enumitem in an > included file inside another does not appear to work. > > For example, take the enumitem-example.lyx file from here: > http://wiki.lyx.org/Tips/Enumitem, and include it in another file of the > same class, with the enumitem module loaded. > > When compiled on its own, enumitem-example.lyx creates the PDF without a > problem. When this file is included in another LyX file (also of class > "article", with the enumitem module loaded), a bunch of LaTeX errors occur: > > "Missing \endcsname inserted. > Extra \endcsname." > > I haven't seen anything similar on the web about this -- is there a > workaround/fix to this issue? Or am I doing something wrong? > > You have to load the enumitem module in the master document. If it's > only in the child, the master does not see it. > > rh > > I created a new master file to test this -- in it, I added the enumitem module. I then included in that master file the child document. As soon as I removed the enumitem module from the child, LyX gave me four "Layout not found" errors, specifically relating to the enumitem-resume layout. The PDF then builds, but (a) includes a page break before the child document, and (b) does not actually use any of the enumitem features, i.e. the lists are stock-standard.
I've attached these files to this email (I hope that works on this mailing list) to demonstrate. Does the master document build correctly for anyone else? - Nick
enumitem_child_no_module.lyx
Description: Binary data
enumitem_child_with_module.lyx
Description: Binary data
parent_with_module.lyx
Description: Binary data
