I don't think the ufthesis.cls file is loading amsmath. The problem disappears if I comment out the following load package in the preamble:
\usepackage[dvips]{graphicx} Do I need this package for anything major? Thanks. Adrian -----Original Message----- From: G. Milde [mailto:[EMAIL PROTECTED] Sent: Monday, May 05, 2008 6:25 AM To: lyx-users@lists.lyx.org Subject: Re: Thesis template in Lyx (including a chapter) On 5.05.08, José Matos wrote: > On Saturday 03 May 2008 03:30:28 Adrian Peter wrote: > > I have set the document type of the child document (my chapters) to the > > same type as the main lyx file (for which I created the layout file to > > point to the ufthesis.cls file). Is the child document somehow redefining > > the graphicx package options? Thanks. > I don't think so. Also, the error pointed to a problem loading amsmath. Does the ufthesis.cls class load ams? With an option? Then, the layout file must say so: ProvidesAmsmath 1 (see Help>Customisation), otherwise LyX loads the amsmath package again (if required or set to do so). Günter -----------Original Error--------------- Now I am running into a small issue whenever I try to include a chapter as a child document into my main lyx file. I get the following error when I try to do a DVI preview or creating a PDF: >>\usepackage >> {amsmath} >>The package graphicx has already been loaded with options: >> [] >>There has now been an attempt to load it with options >> [dvips] >>Adding the global options: >> ,dvips >>to your \documentclass declaration may fix this. >>Try typing <return> to proceed. I have set the document type of the child document (my chapters) to the same type as the main lyx file (for which I created the layout file to point to the ufthesis.cls file). Is the child document somehow redefining the graphicx package options? Thanks. Adrian