Re: Multi-documents
Ben wrote: What characteristics of the master document are given to a child document associated with it? For example, is the document class, font, margin settings of the master document given to a new child document that is associated with the master document? Yes. Every document setting is passed to the child. I am creating a new document for a chapter but if the document class, margins and font settings are not explicitly set in each of the child documents then, it seems that Lyx (2.0.6 and 2.1.0) complains and warns that a different document class is set and offers no warnings about differences in font or margin settings. The class warning is because different classes might provide different paragraph styles. So if you include a book class document in an article class document, the chapters in your child will get invalid. Regards, Jürgen
Re: Multi-documents
Jürgen Spitzmüller spitz at lyx.org writes: Ben wrote: What characteristics of the master document are given to a child document associated with it? For example, is the document class, font, margin settings of the master document given to a new child document that is associated with the master document? Yes. Every document setting is passed to the child. I am creating a new document for a chapter but if the document class, margins and font settings are not explicitly set in each of the child documents then, it seems that Lyx (2.0.6 and 2.1.0) complains and warns that a different document class is set and offers no warnings about differences in font or margin settings. The class warning is because different classes might provide different paragraph styles. So if you include a book class document in an article class document, the chapters in your child will get invalid. Regards, Jürgen Thanks for your quick reply. I may be missing something: a) I create a document called Front. b) I start a new document and 'include' it in 'Front'. c) I then create another document called C1. This document is set as the child of Front. d) Clicking on 'view' brings up a warning: Included file ...C1 has textclass article while parent file has textclass 'scrbook'. e) The resulting .pdf displays 'Front' and includes 'C1' but, without the formatting of scrbook. Am I missing something? Ben
Re: Multi-documents
Ben wrote: Thanks for your quick reply. I may be missing something: a) I create a document called Front. b) I start a new document and 'include' it in 'Front'. c) I then create another document called C1. This document is set as the child of Front. d) Clicking on 'view' brings up a warning: Included file ...C1 has textclass article while parent file has textclass 'scrbook'. e) The resulting .pdf displays 'Front' and includes 'C1' but, without the formatting of scrbook. This should work. Please post example files. Regards, Jürgen
Re: Multi-documents
Jürgen Spitzmüller spitz at lyx.org writes: This should work. Please post example files. Regards, Jürgen I'm sorry about this but, how to post files? I am on the web-based discussion list Ben
Re: Multi-documents
Ben wrote: I'm sorry about this but, how to post files? I am on the web-based discussion list This is a mailing list, so you should attach the file to a mail and send it to this list. Regards, Jürgen
Re: Multi-documents
Mike wrote: The example files are: front_matter = master document tryout, test2 test 3= child documents One child (C1) and some images were missing, but I cannot see a problem. Why do you think the children do not have the class of the master? Regards, Jürgen
Re: Multi-documents
Mike wrote: a) the text formatting options (e.g. Chapter) are not available in the child document Well, the child settings are only inherited in the output. In the workarea, you have what the child's class offers you. This is by design, since you still can compile the child independently from the master (think of a beamer presentation child and a beamer article master). This is actually the only reason to set a child's class different to the master's. If you want child and master be the same in all occurrences, set the child's document class accordingly. b) the document class in the child document remains set to 'article' dito. c) in the produced pdf file the chapter heading of the child document is set to 'standard' text. I cannot reproduce. In your test set, only the test2 child uses a chapter heading, and this is also a chapter when compiled from the child. Regards, Jürgen
Re: Multi-documents
On Fri, 29 Nov 2013 12:46:23 + (UTC) Ben mike1...@icloud.com wrote: Hello, I use Lyx to write novels and factual books (some of which contain photos). I have a query regarding the use of child documents and a master document. What characteristics of the master document are given to a child document associated with it? Hi Ben, Lots of people have given you good answers to your exact question, so I'm giving some info not responsive to your question, but something which you might (or might not) find helpful. I regularly write 100K word books with several images, and I author them as a single file, not master/children. My 5 year old, 4GB RAM Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz computer has absolutely no problem handling such books as one file, either while editing or while compiling. I just tested compile on this computer, for my Troubleshooting Techniques of the Successful Technologist, over 100K words with several images, and it compiled and displayed in the Evince PDF viewer in 26 seconds, which I find perfectly practical for my authoring duties. I've been on the LyX-Users list for 12 years now, and the whole time I've seen regular questions about why some aspect of master/child didn't work. I even tried it once back around 2002, and it failed in several ways I didn't feel like troubleshooting, because even with the computers back then, LyX handled Troubleshooting Techniques of the Successful Technologist quickly and well. Obviously, if you're splitting the book up between several authors, you have to master/child it. And if the book were 500K words with commensurate graphics and you weren't running on a 3+Ghz 4 core with 16GB of RAM, you might have to master/child it. But LyX is amazingly efficient with big documents, and, speaking for myself, I've found it easier to edit the whole book as one file. Of course, YMMV. Thanks, SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance
Re: Multi-documents
Ben wrote: What characteristics of the master document are given to a child document associated with it? For example, is the document class, font, margin settings of the master document given to a new child document that is associated with the master document? Yes. Every document setting is passed to the child. I am creating a new document for a chapter but if the document class, margins and font settings are not explicitly set in each of the child documents then, it seems that Lyx (2.0.6 and 2.1.0) complains and warns that a different document class is set and offers no warnings about differences in font or margin settings. The class warning is because different classes might provide different paragraph styles. So if you include a book class document in an article class document, the chapters in your child will get invalid. Regards, Jürgen
Re: Multi-documents
Jürgen Spitzmüller spitz at lyx.org writes: Ben wrote: What characteristics of the master document are given to a child document associated with it? For example, is the document class, font, margin settings of the master document given to a new child document that is associated with the master document? Yes. Every document setting is passed to the child. I am creating a new document for a chapter but if the document class, margins and font settings are not explicitly set in each of the child documents then, it seems that Lyx (2.0.6 and 2.1.0) complains and warns that a different document class is set and offers no warnings about differences in font or margin settings. The class warning is because different classes might provide different paragraph styles. So if you include a book class document in an article class document, the chapters in your child will get invalid. Regards, Jürgen Thanks for your quick reply. I may be missing something: a) I create a document called Front. b) I start a new document and 'include' it in 'Front'. c) I then create another document called C1. This document is set as the child of Front. d) Clicking on 'view' brings up a warning: Included file ...C1 has textclass article while parent file has textclass 'scrbook'. e) The resulting .pdf displays 'Front' and includes 'C1' but, without the formatting of scrbook. Am I missing something? Ben
Re: Multi-documents
Ben wrote: Thanks for your quick reply. I may be missing something: a) I create a document called Front. b) I start a new document and 'include' it in 'Front'. c) I then create another document called C1. This document is set as the child of Front. d) Clicking on 'view' brings up a warning: Included file ...C1 has textclass article while parent file has textclass 'scrbook'. e) The resulting .pdf displays 'Front' and includes 'C1' but, without the formatting of scrbook. This should work. Please post example files. Regards, Jürgen
Re: Multi-documents
Jürgen Spitzmüller spitz at lyx.org writes: This should work. Please post example files. Regards, Jürgen I'm sorry about this but, how to post files? I am on the web-based discussion list Ben
Re: Multi-documents
Ben wrote: I'm sorry about this but, how to post files? I am on the web-based discussion list This is a mailing list, so you should attach the file to a mail and send it to this list. Regards, Jürgen
Re: Multi-documents
Mike wrote: The example files are: front_matter = master document tryout, test2 test 3= child documents One child (C1) and some images were missing, but I cannot see a problem. Why do you think the children do not have the class of the master? Regards, Jürgen
Re: Multi-documents
Mike wrote: a) the text formatting options (e.g. Chapter) are not available in the child document Well, the child settings are only inherited in the output. In the workarea, you have what the child's class offers you. This is by design, since you still can compile the child independently from the master (think of a beamer presentation child and a beamer article master). This is actually the only reason to set a child's class different to the master's. If you want child and master be the same in all occurrences, set the child's document class accordingly. b) the document class in the child document remains set to 'article' dito. c) in the produced pdf file the chapter heading of the child document is set to 'standard' text. I cannot reproduce. In your test set, only the test2 child uses a chapter heading, and this is also a chapter when compiled from the child. Regards, Jürgen
Re: Multi-documents
On Fri, 29 Nov 2013 12:46:23 + (UTC) Ben mike1...@icloud.com wrote: Hello, I use Lyx to write novels and factual books (some of which contain photos). I have a query regarding the use of child documents and a master document. What characteristics of the master document are given to a child document associated with it? Hi Ben, Lots of people have given you good answers to your exact question, so I'm giving some info not responsive to your question, but something which you might (or might not) find helpful. I regularly write 100K word books with several images, and I author them as a single file, not master/children. My 5 year old, 4GB RAM Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz computer has absolutely no problem handling such books as one file, either while editing or while compiling. I just tested compile on this computer, for my Troubleshooting Techniques of the Successful Technologist, over 100K words with several images, and it compiled and displayed in the Evince PDF viewer in 26 seconds, which I find perfectly practical for my authoring duties. I've been on the LyX-Users list for 12 years now, and the whole time I've seen regular questions about why some aspect of master/child didn't work. I even tried it once back around 2002, and it failed in several ways I didn't feel like troubleshooting, because even with the computers back then, LyX handled Troubleshooting Techniques of the Successful Technologist quickly and well. Obviously, if you're splitting the book up between several authors, you have to master/child it. And if the book were 500K words with commensurate graphics and you weren't running on a 3+Ghz 4 core with 16GB of RAM, you might have to master/child it. But LyX is amazingly efficient with big documents, and, speaking for myself, I've found it easier to edit the whole book as one file. Of course, YMMV. Thanks, SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance
Re: Multi-documents
Ben wrote: > What characteristics of the master document are given to a child document > associated with it? For example, is the document class, font, margin > settings of the master document given to a new child document that is > associated with the master document? Yes. Every document setting is passed to the child. > I am creating a new document for a > chapter but if the document class, margins and font settings are not > explicitly set in each of the child documents then, it seems that Lyx (2.0.6 > and 2.1.0) complains and warns that a different document class is set and > offers no warnings about differences in font or margin settings. The class warning is because different classes might provide different paragraph styles. So if you include a book class document in an article class document, the chapters in your child will get invalid. Regards, Jürgen
Re: Multi-documents
Jürgen Spitzmüller lyx.org> writes: > > Ben wrote: > > What characteristics of the master document are given to a child document > > associated with it? For example, is the document class, font, margin > > settings of the master document given to a new child document that is > > associated with the master document? > > Yes. Every document setting is passed to the child. > > > I am creating a new document for a > > chapter but if the document class, margins and font settings are not > > explicitly set in each of the child documents then, it seems that Lyx (2.0.6 > > and 2.1.0) complains and warns that a different document class is set and > > offers no warnings about differences in font or margin settings. > > The class warning is because different classes might provide different paragraph > styles. So if you include a book class document in an article class document, > the chapters in your child will get invalid. > > Regards, > Jürgen > > Thanks for your quick reply. I may be missing something: a) I create a document called Front. b) I start a new document and 'include' it in 'Front'. c) I then create another document called C1. This document is set as the child of Front. d) Clicking on 'view' brings up a warning: Included file ...C1 has textclass article while parent file has textclass 'scrbook'. e) The resulting .pdf displays 'Front' and includes 'C1' but, without the formatting of scrbook. Am I missing something? Ben
Re: Multi-documents
Ben wrote: > Thanks for your quick reply. I may be missing something: > > a) I create a document called Front. > b) I start a new document and 'include' it in 'Front'. > c) I then create another document called C1. This document is set as the > child of Front. > d) Clicking on 'view' brings up a warning: Included file ...C1 has textclass > article while parent file has textclass 'scrbook'. > e) The resulting .pdf displays 'Front' and includes 'C1' but, without the > formatting of scrbook. This should work. Please post example files. Regards, Jürgen
Re: Multi-documents
Jürgen Spitzmüller lyx.org> writes: > > This should work. Please post example files. > > Regards, > Jürgen > > I'm sorry about this but, how to post files? I am on the web-based discussion list Ben
Re: Multi-documents
Ben wrote: > I'm sorry about this but, how to post files? > I am on the web-based discussion list This is a mailing list, so you should attach the file to a mail and send it to this list. Regards, Jürgen
Re: Multi-documents
Mike wrote: > The example files are: > > front_matter = master document > tryout, > test2 > test 3= child documents One child (C1) and some images were missing, but I cannot see a problem. Why do you think the children do not have the class of the master? Regards, Jürgen
Re: Multi-documents
Mike wrote: > a) the text formatting options (e.g. Chapter) are not available in the > child document Well, the child settings are only inherited in the output. In the workarea, you have what the child's class offers you. This is by design, since you still can compile the child independently from the master (think of a beamer presentation child and a beamer article master). This is actually the only reason to set a child's class different to the master's. If you want child and master be the same in all occurrences, set the child's document class accordingly. > b) the document class in the child document remains set to 'article' dito. > c) in the produced pdf file the chapter heading of the child document is > set to 'standard' text. I cannot reproduce. In your test set, only the "test2" child uses a chapter heading, and this is also a chapter when compiled from the child. Regards, Jürgen
Re: Multi-documents
On Fri, 29 Nov 2013 12:46:23 + (UTC) Benwrote: > Hello, > I use Lyx to write novels and factual books (some of which contain > photos). I have a query regarding the use of child documents and a > master document. > > What characteristics of the master document are given to a child > document associated with it? Hi Ben, Lots of people have given you good answers to your exact question, so I'm giving some info not responsive to your question, but something which you might (or might not) find helpful. I regularly write 100K word books with several images, and I author them as a single file, not master/children. My 5 year old, 4GB RAM "Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz" computer has absolutely no problem handling such books as one file, either while editing or while compiling. I just tested compile on this computer, for my "Troubleshooting Techniques of the Successful Technologist", over 100K words with several images, and it compiled and displayed in the Evince PDF viewer in 26 seconds, which I find perfectly practical for my authoring duties. I've been on the LyX-Users list for 12 years now, and the whole time I've seen regular questions about why some aspect of master/child didn't work. I even tried it once back around 2002, and it failed in several ways I didn't feel like troubleshooting, because even with the computers back then, LyX handled "Troubleshooting Techniques of the Successful Technologist" quickly and well. Obviously, if you're splitting the book up between several authors, you have to master/child it. And if the book were 500K words with commensurate graphics and you weren't running on a 3+Ghz 4 core with 16GB of RAM, you might have to master/child it. But LyX is amazingly efficient with big documents, and, speaking for myself, I've found it easier to edit the whole book as one file. Of course, YMMV. Thanks, SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance