Re: using multiple files for document->problem with document class(es)

2010-09-18 Thread Jürgen Spitzmüller
Richard Heck wrote:
> Later versions of LyX allow you to say "Don't show me this warning 
> again". I'm not sure if that's in 1.6.7 or just in the forthcoming 2.0.x.

As of LyX 1.6.4, actually.

Jürgen


Re: using multiple files for document->problem with document class(es)

2010-09-17 Thread Richard Heck

On 9/17/10 4:16 PM, Matt Funk wrote:

Hi,

i am writing a document that is broken up into multiple files. I include these
files via Insert->File->Child Document.

The problem is this:
I select a given document class for the main document. The child documents
have the main document as their master document selected. The problem is when
i create a the pdf document it gives me a warning for each included child
document that the document classes between the main document and the child
document are not same.

I would have expected that by selecting a main document the settings such as
the document class would be taken over by the child document. Apparently this
is not the case since i get the warning.

   
If you wish to shoot yourself in the foot, LyX won't stop you. That's 
policy.


More to the point, LyX has no way of knowing whether this particular 
child document is only used as a child of this particular master 
document. So its settings are to some extent independent. If it is only 
used as a child of this master, then change the document class so it 
matches; then you don't have a problem.


The point of the warning is this. Suppose the master is an article and 
the child is a book. Then the child could have chapters, but articles 
don't have chapters, and LaTeX will choke, because (a) the document 
class is set by the master and (b) the article.cls class does not define 
\chapter. Of course, maybe you don't have chapters in the child, so it's 
OK. Maybe the child is used with a book, too, so it's more convenient to 
have it as book. Etc etc.


Later versions of LyX allow you to say "Don't show me this warning 
again". I'm not sure if that's in 1.6.7 or just in the forthcoming 2.0.x.


Richard



using multiple files for document->problem with document class(es)

2010-09-17 Thread Matt Funk
Hi,

i am writing a document that is broken up into multiple files. I include these 
files via Insert->File->Child Document.

The problem is this:
I select a given document class for the main document. The child documents 
have the main document as their master document selected. The problem is when 
i create a the pdf document it gives me a warning for each included child 
document that the document classes between the main document and the child 
document are not same.

I would have expected that by selecting a main document the settings such as 
the document class would be taken over by the child document. Apparently this 
is not the case since i get the warning.

Am i doing something wrong?

thanks
matt

ps: i am running lyx1.6.5