Frequently asked questions - Writer

From The Document Foundation Wiki
< Faq‎ | Writer
Jump to: navigation, search

How do I automatically update the headers and footers of my document when I modify a template?

You only have to create a link with a source file and then ask for the update. The following instructions are for an update of the header but can be applied to other elements, like the footer or the body of the text:

  1. create a new Writer file which will the source file for the headers;
  2. enter the text that will appear in the header of the body of the file;
  3. save the file as a Writer text;
  4. create a new Writer template which will serve to build all the other files that will have the same header;
  5. select Insert ▸ Header ▸ Standard ;
  6. with the cursor in the header, select the Insert ▸ Section menu;
  7. check theLink box and click the [...] button to select the source file;
  8. press Insert ;
  9. save the file as a template:
    • select the File ▸ Template ▸ Save menu;
    • give a name for the template;
    • press OK.

If you want to make more links, you should create for each one a section linked to a file. Either:

  • create one file per link,
  • create only one external file containing different sections and specify the section to insert in the dialog box.

Be careful however of the management of the links if you are working over a network : check that the inserted link will be accessible by all the machines the same way.

To have an updated header:

  1. create a file using the template :
    • select the File ▸ New ▸ Documents and Template menu (pre LibreOffice 5.0);
    • select the File ▸ New ▸ Templates menu (LibreOffice 5.0+1);
    • select the template (by default it has been saved in My Templates) ;
    • press OK ;
  2. answer yes when prompted for an update of the links.

Thus any change in the source file will be reflected in the files created with this template during the update.