format_page_range: Format a Range of Pages

View source: R/text_formatting.R

format_page_rangeR Documentation

Format a Range of Pages

Description

Format a range of pages, accounting for both consecutive and non-consecutive pages.

Usage

format_page_range(pages)

Arguments

pages

A string describing the pages.

Details

Figures out whether there is one page or more than one. Add the appropriate prefix ("p." or "pp.").

Value

Formatted page range.

Examples

format_page_range("99")
format_page_range("72 and 103")
format_page_range("50--75")

jonathan-g/semestr documentation built on Jan. 23, 2025, 3:10 p.m.