Learn R Programming

isobar (version 1.18.0)

sanitize: Helper function for LaTeX export

Description

Sanitizes strings for LaTeX

Usage

sanitize(str, dash = TRUE)

Arguments

str
character string to be escaped
dash
shoud a dash ('-') should be escaped to a '\nobreakdash-'?

Value

escaped character

Examples

Run this code
    sanitize("\textbf{123-123}")

Run the code above in your browser using DataLab