Learn R Programming

equatiomatic (version 0.1.0)

escape_tex: Escape TeX

Description

Escape special TeX characters.

Usage

escape_tex(term)

Arguments

term

A character string to escape

Value

A character string

Details

Ten characters have special meaning in TeX & % $ # _ { } ~ ^ \. This function either escapes them with \, or in the case of the last three, replaces them with special TeX macros.