Repository navigation
docrs 0.3.10
Library
-
Page 1 of the output shows the header and footer the template's page 1 shows. A template with a first section for a cover or letter and a last section for the body pages (19 of 272 production templates in a Word-render review, 13 of them one licensee's) lost its page 1 logo or letterhead: the output took its headers from the last section alone. The output's single section now shows, on page 1, the first section's first-page header and footer when that section has a distinct first page and its default ones otherwise, and on the other pages the last section's default ones, inherited from earlier sections where the last lacks them, as Word resolves them. When page 1 differs from the other pages the section gets a distinct first page (
w:titlePg) carrying page 1's header and footer; when they are the same it has none, and a first-page reference the last section defined is dropped. Page size, margins and orientation still come from the last section.inspectReferencereports the resultingsection.title_pageandheaders_footers(a story the last section does not define itself isinherited), and itsmultiple_sectionsproblem says so. -
A Body Text style counts as used by the template only when it holds prose, as a First Paragraph does (below): short lines and list items in it do not keep it the body. A template whose Body Text held two short lines and four numbered steps of a closing section while sixteen paragraphs of prose were Normal (Arial 11 pt) exported the body in Body Text at 10 pt; the body now follows the prose to Normal, and
inspectReferencereports it underroles.body. -
A
List BulletorList Numberstyle the template never writes in takes the font and size of the template's own bulleted or numbered sample paragraphs, which sit in another style (List Paragraph, or whatever Word's list buttons used), as Word resolves them through the style chain and the defaults: a theme font stays a theme font. A template whose List Bullet was bound to the bullet numbering in the theme's minor font while its bullets were List Paragraph in Arial exported the bullets in the theme font; they are Arial 11 pt now. A list style the template writes in keeps its own font. -
A heading level the template never uses, whose font still comes from the theme, takes the font the template named on the nearest higher level it does use: a Heading 4 in the theme's major font under Headings 1 to 3 set to Arial follows them (its italic and colour stay). A heading level the template uses, or one with a named font anywhere in its style chain, is left as it is.
-
A First Paragraph style counts as used by the template only when it holds prose, a paragraph of 40 characters or more, as the body look does since 0.3.9; a short sample line such as "First Paragraph.", which templates built from Pandoc's sample reference carry for every style, no longer keeps the style in use. Such a template, whose prose is Body Text, gave the paragraph after each heading the First Paragraph style and so Normal's look; it now takes the body's style, as a template with no First Paragraph text does, and
inspectReferencereports the body's style underroles.first_paragraph. A First Paragraph holding prose, and a template with no prose at all, are unchanged.