Difference between revisions of "Documentation/UserGuide/Writer/MasterDoc"

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 6: Line 6:
  
 
= Starting From Zero =
 
= Starting From Zero =
 +
 
First, we need to define a template with all the paragraph/character/page/etcetera [[Documentation/UserGuide/Writer/Styles|styles]] needed for our document.  
 
First, we need to define a template with all the paragraph/character/page/etcetera [[Documentation/UserGuide/Writer/Styles|styles]] needed for our document.  
  
Line 13: Line 14:
  
 
The next step is to create, starting from the same template, one or more documents with the project content. It is possible for example to create one file for each chapter.
 
The next step is to create, starting from the same template, one or more documents with the project content. It is possible for example to create one file for each chapter.
{{Documentation/Caution|The sub documents cannot be edited from the master document, they must be edited independently as normal documents. The master document is a "container" that can be used to print the document as a whole.}}
 
  
 +
{{Documentation/Caution|The sub documents cannot be edited from the master document, they must be edited independently as normal documents. The master document is a "container" that can be used to print the document as a whole.}}
  
 
Opening the new master document, if it is not already started open the Navigator ({{Key|F5}}). As it is possible to see on the screen shot, the Navigator's main toolbar will show some differences compared with the [[Documentation/UserGuide/Writer/Navigator|"normal" Navigator]]
 
Opening the new master document, if it is not already started open the Navigator ({{Key|F5}}). As it is possible to see on the screen shot, the Navigator's main toolbar will show some differences compared with the [[Documentation/UserGuide/Writer/Navigator|"normal" Navigator]]
  
[[File:AOO-Navigator-MasterDocButtons.png]]The first button, that was grayed out on the normal Navigator, can be used now to toggle between the view of the normal Navigator and the view of the Master Document.
+
[[File:AOO-Navigator-MasterDocButtons.png]]
 +
 
 +
The first button, that was grayed out on the normal Navigator, can be used now to toggle between the view of the normal Navigator and the view of the Master Document.
  
 
The fourth button is a menu to insert elements: with a long click on it we will see three options:
 
The fourth button is a menu to insert elements: with a long click on it we will see three options:
  
* Index* File* New Document
+
* Index
 +
* File
 +
* New Document
  
 
The first option is clear: inserts a [[Documentation/UserGuide/Writer/TOC|table of content]] for the document.
 
The first option is clear: inserts a [[Documentation/UserGuide/Writer/TOC|table of content]] for the document.
Line 31: Line 36:
  
 
After a couple of sub documents were inserted, on the Insert menu there will be a new option called "Text". This option can be used to insert text between two sub documents that will be part of the master document file. These entries can be used, for example, to separate groups of chapters, to insert the copyright page, etc.
 
After a couple of sub documents were inserted, on the Insert menu there will be a new option called "Text". This option can be used to insert text between two sub documents that will be part of the master document file. These entries can be used, for example, to separate groups of chapters, to insert the copyright page, etc.
{{Documentation/Note|With a double click on a document name displayed on the Navigator, this document will be opened for editing. Another way to open the sub document is to first select it from the list and then press the second button on the Navigator (the one with a flag and a pencil).}}
 
  
 +
{{Documentation/Note|With a double click on a document name displayed on the Navigator, this document will be opened for editing. Another way to open the sub document is to first select it from the list and then press the second button on the Navigator (the one with a flag and a pencil).}}
  
 
The third button on the navigator, also a drop down menu, can be used to update the master document. For example, if a change is made on a sub document with the master document open, to see the change on the master document it is needed to update it.
 
The third button on the navigator, also a drop down menu, can be used to update the master document. For example, if a change is made on a sub document with the master document open, to see the change on the master document it is needed to update it.

Revision as of 23:53, 30 January 2013

Template:Documentation/DraftPage


The Master Documents are a powerful tool to work on a single project but divided on a number of sub documents, kipping at the same time the coherence between the different parts.

Starting From Zero

First, we need to define a template with all the paragraph/character/page/etcetera styles needed for our document.

To avoid consistency problems, we need to build our master document and the subdocuments from the same template.

As second step, let's build a new document from our template. Without adding content on the document, go to File → Send → Create Master Document: Writer will ask you where to save the master document. Once the new odm file is saved, we can close the empty document without saving it: we do not it any more.

The next step is to create, starting from the same template, one or more documents with the project content. It is possible for example to create one file for each chapter.

Documentation caution.png The sub documents cannot be edited from the master document, they must be edited independently as normal documents. The master document is a "container" that can be used to print the document as a whole.

Opening the new master document, if it is not already started open the Navigator ( F5 ). As it is possible to see on the screen shot, the Navigator's main toolbar will show some differences compared with the "normal" Navigator

AOO-Navigator-MasterDocButtons.png

The first button, that was grayed out on the normal Navigator, can be used now to toggle between the view of the normal Navigator and the view of the Master Document.

The fourth button is a menu to insert elements: with a long click on it we will see three options:

  • Index
  • File
  • New Document

The first option is clear: inserts a table of content for the document.

The third option opens an empty document to be used as subdocument.

The second option can be used to insert already created sub documents. It is important to note that the sub documents are inserted above the entry selected on the list, so it will always be needed to reorganize the sub documents using the two buttons to the right of the Navigator.

After a couple of sub documents were inserted, on the Insert menu there will be a new option called "Text". This option can be used to insert text between two sub documents that will be part of the master document file. These entries can be used, for example, to separate groups of chapters, to insert the copyright page, etc.

Template:Documentation/Note

The third button on the navigator, also a drop down menu, can be used to update the master document. For example, if a change is made on a sub document with the master document open, to see the change on the master document it is needed to update it.

Personal tools