create_fontsize_str: Creates a LaTeX font size string which can be used in table...

View source: R/create-fontsize-str.R

create_fontsize_strR Documentation

Creates a LaTeX font size string which can be used in table header cells to make kableExtra::kbl() tables have headers with a different font size than the table cells have

Description

Creates a LaTeX font size string which can be used in table header cells to make kableExtra::kbl() tables have headers with a different font size than the table cells have

Usage

create_fontsize_str(
  header_font_size = 10,
  header_vert_spacing = NULL,
  header_vert_scale = 1.2,
  ...
)

Arguments

header_font_size

Size of font, in pt

header_vert_spacing

The vertical spacing between newlines for this font. If NULL this will be calculated as header_font_size * header_vert_scale

header_vert_scale

Scale factor to create the vertical spacing value. See header_vert_spacing

...

Absorbs arguments meant for other functions

Value

A list of two character strings, one having double-backslashes before the fontsize and selectfont commands and the other having 4 backslashes


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.