# encoded: Translate non-ASCII Text to LaTeX Escapes

## Description

Translate non-ASCII characters in text to LaTeX escape sequences.

## Usage

 1 2 3 encoded_text_to_latex(x, encoding = c("latin1", "latin2", "latin9", "UTF-8", "utf8"))

## Arguments

 x a character vector. encoding the encoding to be assumed. "latin9" is officially ISO-8859-15 or Latin-9, but known as latin9 to LaTeX's inputenc package.

## Details

Non-ASCII characters in x are replaced by an appropriate LaTeX escape sequence, or ? if there is no appropriate sequence.

Even if there is an appropriate sequence, it may not be supported by the font in use. Hyphen is mapped to \-.

## Value

A character vector of the same length as x.