Difference between revisions of "Documentation/OOo3 User Guides/Writer Guide/Creating one file from a master document"

From Apache OpenOffice Wiki
Jump to: navigation, search
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:Creating one file from a master document and its subdocuments - DRAFT}}
+
{{DISPLAYTITLE:Creating one file from a master document and its subdocuments}}
 
{{Documentation/WG3MasterDocsTOC
 
{{Documentation/WG3MasterDocsTOC
 
|ShowPrevNext=block
 
|ShowPrevNext=block
Line 18: Line 18:
 
<li>Choose '''Edit > Links''' from the menu bar.</li>
 
<li>Choose '''Edit > Links''' from the menu bar.</li>
  
{{Documentation/Tip| If the '''Links''' command is greyed-out, the cursor is probably in a write-protected part of the document (for example, in one of the linked documents). Move the cursor into a part of the document that is not write-protected; the '''Links''' command then becomes available.}}
+
{{Tip| If the '''Links''' command is greyed-out, the cursor is probably in a write-protected part of the document (for example, in one of the linked documents). Move the cursor into a part of the document that is not write-protected; the '''Links''' command then becomes available.}}
  
 
<li>The Edit Links dialog shows all the linked files. Select all the files in the ''Source file'' list and click '''Break Link'''. This step embeds (includes) the contents of all the subdocuments into one single file (but with each subdocument remaining in a separate section) and removes the write protection on the sections.</li>
 
<li>The Edit Links dialog shows all the linked files. Select all the files in the ''Source file'' list and click '''Break Link'''. This step embeds (includes) the contents of all the subdocuments into one single file (but with each subdocument remaining in a separate section) and removes the write protection on the sections.</li>
Line 27: Line 27:
 
</ol>
 
</ol>
  
{{Documentation/Tip| The Help does not mention steps 4 and 5 above, giving only the step for removing the sections. If you have no hidden sections, that technique works fine and is faster; however, if you want to break the links but retain some or all of the sections (particularly hidden sections), then the method described in this chapter is safer.}}
+
{{Tip| The Help does not mention steps 4 and 5 above, giving only the step for removing the sections. If you have no hidden sections, that technique works fine and is faster; however, if you want to break the links but retain some or all of the sections (particularly hidden sections), then the method described in this chapter is safer.}}
  
  
 
{{CCBY}}
 
{{CCBY}}
 
[[Category: Writer Guide (Documentation)]]
 
[[Category: Writer Guide (Documentation)]]

Latest revision as of 20:36, 15 July 2018


Master documents are .odm files containing linked subdocuments, which are in .odt format. Although linked files are very useful when writing and editing a large document such as a book, sometimes you might need to have a copy of the entire book in one file.

To export a master document to a .odt file (without affecting the original .odm file), do this:

  1. Open the master document. Choose File > Export from the menu bar.
  2. On the Export dialog, type a name for the exported .odt file and choose OpenDocument Text (.odt) from the File format list. Click Export. This step changes the .odm file into a .odt file, with each subdocument in a separate section.
  3. Exporting a master document to an OpenDocument Text (.odt) file
  4. Close the master document and open the new .odt file, updating all links.
  5. Choose Edit > Links from the menu bar.
  6. Tip.png If the Links command is greyed-out, the cursor is probably in a write-protected part of the document (for example, in one of the linked documents). Move the cursor into a part of the document that is not write-protected; the Links command then becomes available.


  7. The Edit Links dialog shows all the linked files. Select all the files in the Source file list and click Break Link. This step embeds (includes) the contents of all the subdocuments into one single file (but with each subdocument remaining in a separate section) and removes the write protection on the sections.
  8. Breaking links to include files in one document
  9. After breaking the links, you may wish to also remove some or all of the sections. To do that, go to Format > Sections, select the sections you wish to remove, and click Remove. The contents of those sections remain in the document; only the section markers are removed.
Tip.png The Help does not mention steps 4 and 5 above, giving only the step for removing the sections. If you have no hidden sections, that technique works fine and is faster; however, if you want to break the links but retain some or all of the sections (particularly hidden sections), then the method described in this chapter is safer.


Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).
Personal tools