
Apply header/footer and body-start layout to a rendered docx
Source:R/apply-layout.R
styling_apply_layout.RdDelegates to quartifyr-styling apply-layout in the bundled Python
engine: splits a rendered docx into front-matter/body OOXML sections at
{{< body-start >}} (if the source .qmd uses it) and applies a dynamic
page header resolved from the .qmd's header-format: frontmatter (if
set). Both are opt-in per-project; a .qmd using neither is left
untouched.
Arguments
- docx
Path to the rendered docx (modified in place).
- qmd
Path to the shell
.qmd(read forheader-format:and its placeholders).- status
"draft"or"final".- style
Optional path to a style YAML – when given, applies its
equation.fontto the rendered docx's default math font (NULL, the default, leaves it untouched).- override
Optional per-org/per-project style YAML, deep-merged over
style. Ignored unlessstyleis also given.