Chapter 9 About Office documents

9.1 Word Sections

By default, the layout options of a Word file (orientation, margins, organization in columns, headers and footers, etc.) affect all the pages of a document.

You may find it useful to combine several different layouts at the same time within the same document. To be able to carry out this complex layout, Word provides its users with a tool: the sections. These large sets of pages occupy the highest hierarchical level in the organization of your document, and allow you to define, for a defined part of your document, specific layout parameters.

A section is a grouping of blocks (ie. paragraphs and tables) that have a set of properties that define pages on which contents will appear. Section properties object stores information about page composition, such as page size, page orientation, borders and margins.

A section affects preceding paragraphs or tables:

  • a section starts at the end of the previous section (or the beginning of the document if no preceding section exists)
  • it stops where the section is declared.

9.2 What is a Word sequence identifier?

When using Word, you can add a list of figures or tables (go to the “References” tab and select “Insert Table of Figures”). By default, you won’t see your sequence in the menu because Word is storing locally 3 sequence names in your profile (for tables, figures and equation). You can change tab.lp to Tabelle (or Tableau) and benefit from the feature manually in Word (see ?officedown::rdocx_document).

9.3 PowerPoint layouts and masters

To control the overall appearance of the slides, to make sure that they use the same fonts and images (such as a logo), to define the locations and sizes of the placeholders, you need to use Slide Masters and Slide Layouts.

To open Slide Master view in PowerPoint, on the View tab, select Slide Master.

The master slide is the top slide in the thumbnail pane on the left side of the window. Related layouts appear below the slide master (as in this picture from PowerPoint for macOS):

When you change the slide master, all slides based on it contain these changes.

Most of the changes will be made to the layouts related to the master. Layouts can be customized, you can change the name of the layout, the position of the contents, the sizes, but also add or remove new placeholders.

Placeholders located on a layout are all associated with an identifier :

These identifiers are usefull and can be used (if all are unique on the same layout), for example to add some content on a named placeholder by using ph_location_label().