Skip to contents

Omni Paged PDF Report

Usage

pdf_report(
  main_font = NULL,
  secondary_font = NULL,
  background_cover_image = NULL,
  background_color = NULL,
  primary_font_color = NULL,
  remove_logo = FALSE,
  remove_cover_page = FALSE,
  remove_title_page = FALSE,
  remove_toc_page = FALSE,
  reduce_margin_top_bottom = FALSE,
  use_csi_style = FALSE,
  hide_acknowledgement = FALSE,
  ...
)

Arguments

main_font

Main font

secondary_font

Secondary font

background_cover_image

Image to use for the background in the cover page. It must be one of (case insensitive): `c("01-yellow", "02-teal", "03-orangered", "06-teal", "07-periwinkle", "07-olive", "08-plum")`.

background_color

Background color of the document

primary_font_color

Primary color, mostly used in titles.

Whether to remove Omni logos from the document.

remove_cover_page

Whether to remove the cover page.

remove_title_page

Whether to remove the title page.

remove_toc_page

Whether to remove the TOC (table of content) page.

reduce_margin_top_bottom

Whether to reduce top and bottom margin. It will go from 25mm to 15mm in order to match left/right margin.

use_csi_style

Whether to use CSI (Center for Social Investment) styling. This basically change logos and text in the footer.

hide_acknowledgement

Whether to remove the acknowledgement section.

...

Additional arguments passed to `pagedown::html_paged()`

Value

An rmd format

Details

If a `##`/`###`/`####` heading lands at the top of a page (so its normal spacing above it looks like too much, with nothing above it on that page to visually separate from), that position depends on where content happens to break across pages and can't be detected automatically at CSS-authoring time. Fix it by hand instead, after knitting: add the `remove-header-space` class as a header attribute and re-knit, e.g. `## My Heading {.remove-header-space}`. Only that heading is affected; every other heading keeps its normal spacing. Add the class this way, not by wrapping the heading in a fenced div (`::: {.remove-header-space}` / heading / `:::`) - a fenced div forces the heading's own section to close immediately after it, which orphans any subsections (and their table-of-contents entries) that should nest inside it.