papaja (version 0.1.2)

escape_latex: Escape Symbols for LaTeX Output

Description

This function is a copy of the non-exported function escape_latex() from the knitr package. This function is not exported.

Usage

escape_latex(x, newlines = FALSE, spaces = FALSE)

Arguments

x

Character.

newlines

Logical. Determines if \n are escaped.

spaces

Logical. Determines if multiple spaces are escaped.