Skip to main content

Prepare a Word template for narratives

Set up a Word template so that narrative downloads in Word and PDF use your page layout, headings, fonts, and table formatting.

Prerequisites​

  • The Can Customize server permission, to upload the template.
  • The Word desktop app, to edit table styles.

Steps​

Set up the page​

  1. In Word, open your template with File → Open. Double-clicking a .dotx file creates a new document from it instead of opening the template.
  2. Set the page size, orientation, and margins under Layout. Narrative downloads use the template's page setup, and a landscape page gives wide tables more room.
  3. Put your logo and any fixed text in the header and footer. The narrative adds the content from its own Header and Footer settings to them, so a logo set in both places appears twice. To keep only the template's header and footer, clear the narrative's Header and Footer settings.
  4. Leave the body of the template empty. The narrative continues from the template's last paragraph, so anything in the body appears at the top of every download.

Set the text styles​

  1. On the Home tab, right-click a style in the Styles gallery and choose Modify to set its font, size, color, and spacing. Narrative downloads use these styles:

    StyleUsed for
    NormalBody text and the text in table cells
    TitleThe narrative's title
    Heading 1Section headings
    Heading 2, Heading 3, Heading 4Headings within a section

    Set the font on each of these styles. Without a template, narrative downloads use Arial. With a template, they use the template's fonts, and in a new Word file those are Word's default fonts. Title and the heading styles have their own font there, so changing Normal doesn't change them.

    Keep the Normal style plain. Bold, line spacing, and paragraph spacing set on Normal also apply in every table cell.

    Linked object names, such as the objects listed under a relationship, use Word's Hyperlink character style. This applies everywhere in the download, including the Shape List table. A font or size set on Hyperlink overrides Normal and the table styles for those names. If you set a size on it, use the same size as in your table styles, so a table cell doesn't mix two sizes. To modify Hyperlink, open the Styles pane from the corner of the Styles group on the Home tab. If Hyperlink isn't listed, choose Options and show All styles.

Set the table formatting​

Each narrative table uses the table style with its name from your template. If the template has no table style with that name, the table uses one of Word's built-in table styles instead:

TableTable style name in your templateBuilt-in style used otherwise
Shape List, in table viewiGrafx Shape ListPlain Table 1
Document InformationiGrafx Document InformationPlain Table 1
HistoryiGrafx HistoryGrid Table 4

To format a table, create a table style with its name:

  1. Insert a temporary table with Insert → Table.
  2. Click in the table and open the Table Design tab. Expand the table styles gallery and choose New Table Style.
  3. In Name, enter the table's style name, for example iGrafx Shape List. Type it exactly as shown, or the table keeps using the built-in style.
  4. Under Style based on, choose the table style to start from, such as Plain Table 1. The new style copies its formatting, and you change only what you want to look different.
  5. Under Apply formatting to, choose the part of the table to change, such as Whole table or Header row, and set its font size, borders, and shading. Set cell margins under Format → Table Properties → Options.
  6. Select Only in this document and click OK.
  7. Repeat steps 7 to 11 for each table you want to format.
  8. Delete the temporary table. The new table styles stay in the template.

Not every part of a table style shows up in the download. The Shape List and History tables use the header row and banded rows. The Document Information table uses the first column and banded rows.

A font size set in a table style applies only while the Normal style keeps its default font size. If you change the font size of Normal, table text uses that size.

You can also change the built-in styles instead of creating your own. In the table styles gallery, right-click Plain Table 1 or Grid Table 4 and choose Modify Table Style. A change to Plain Table 1 affects both the Shape List and the Document Information tables.

Upload the template​

  1. Save the file as a Word template (.dotx) or a Word document (.docx).
  2. Open Admin → Customization and the Appearance tab. Under Narrative Export Theme, click Upload, or Change if a template is already set.
  3. In the dialog, click Choose file, or Change when replacing a template, and choose your file. Click Save.

Once a template is set, its file name appears under Narrative Export Theme. Click the name to download the template, or click Remove to delete it.

Verify​

Run a narrative that includes a Shape List, then download it as a Word document and as a PDF. Check the page layout, the headings, and the table formatting in both files.

Limitations​

  • The template applies to Word and PDF downloads of every narrative on the platform. The narrative on screen doesn't use it.
  • A template can't set column widths. The Shape List table sizes its columns to their content, within the page width. A column with no value in the table only gets a narrow width, so its heading can wrap. To leave such columns out instead, turn on Hide empty columns in the Shape List section's table view.
  • The server creates the PDF and can only use fonts installed on it. For a font it doesn't have, it uses a similar one, which can change where lines break. In iGrafx Cloud, the server uses fonts with the same character widths for Arial, Times New Roman, and Courier New, so lines break as they do in Word.