Jürgen Spitzmüller wrote: > James C. Sutherland wrote: > > I think I found a LyX bug. LyX 1.6.2, Mac OSX 10.5.6 > > > > 1. Create a parent document and turn off hyperref support (Document- > > >Settings->PDF Properties, deselct hyperref) > > 2. Create a child document with hyperref support enabled. > > 3. Include the child in the parent. > > > > At this point, the LaTeX source code for the parent now has hyperref > > included in it. I thought that parent document settings override > > child document settings. Is this a bug? > > I'd say so, yes. Hyperref should only be loaded if either turned on in the > master or if a master or a child requests it (e.g., when you use a href > hyperlink).
unfortunately this uncover more general bug in our latex generation of master/child documents. we are not able to distinguish child/master in validate() so things are added to latexparameters and returned back to master... i just checked few other parameters from document settings and it has the same problem (eg use true small caps or background color). i'm not sure about the solution. maybe to change validate prototype adding bool in_child. CC-ing devel list. > Please check whether this is already reported, and if not, file a bug report. yes, please fill the bug report. pavel