Learn R Programming

TBox (version 0.2.2)

create_preamble_tex: Create preamble .tex for code font

Description

Create preamble .tex for code font

Usage

create_preamble_tex(font_size = 12, monofont_path = get_fira_path())

Value

a vector of characters representing an Rmd file (each element being a line)

Arguments

font_size

a numeric. The font size, only available in pdf format.

monofont_path

a string. The path to the font used to render code chunks. It should link to a .ttf file. Only available in pdf format.

Examples

Run this code

create_preamble_tex()
create_preamble_tex(font_size = 18.0)

Run the code above in your browser using DataLab