Skip to contents

This function can only be used inside s_paragraph.

Usage

s_spacing(before = NULL, after = NULL, line_spacing = NULL)

Arguments

before

Space before paragraph, e.g. "6pt"

after

Space after paragraph, e.g. "6pt"

line_spacing

Line spacing multiplier, minimum 1

Value

A spacing specification object

Examples

if (FALSE) { # \dontrun{
spec <- create_text() |>
  add_style("my_style",
    s_paragraph(
      alignment = "center",
      spacing = s_spacing(before = "12pt", after = "6pt")
    )
  )
} # }