On 07/15/2011 06:10 AM, Giacomo Z wrote: > Dear all, > > I am having a problem with a child document - I attached the minimal > working files to be copied in the same directory. The "master" file > contains the child document "Child" (as include). When I try to > compile the PDF I get several "Undefined control sequence" error. If I > open only the child document "Child", I can compile the PDF with no > problem. I tried some solutions I found on the list but with no > success so far. > > Some more information: > - AMS maths package seems to be active in both files > - Preamble is empty for both files > > Any idea on how can I solve the problem? > I can confirm the bug. The problem is that, for some reason, certain macros the child needs are not being written to the preamble for the master, when those constructs are only present in the child. What's weirder is that they DO appear in View>Source for the master, when you check "Complete source". I'll try to fix this soon. A workaround would be (a) to export the child as LaTeX, (b) open it in a text editor, (c) find the declarations of the \textgreek and \lyxmathsym stuff in there, and (d) manually copy that stuff to the preamble of the master. Ugly, I know, but it should help.
Richard PS Can you please report this bug on trac, and attach these files?
