# latexTranslate: Prints a string to Latex, dealing with special characters. In andrie/braid: A report writing system that creates and compiles LaTEX and pdf output

## Description

Translates particular items in character strings to LaTeX format, e.g., makes a^2 = a\$^2\$ for superscript within variable labels. LaTeX names of greek letters (e.g., "alpha") will have backslashes added if greek==TRUE. Math mode is inserted as needed. latexTranslate assumes that input text always has matches, e.g. [) [] (] (), and that surrounding by \$\$ is OK.

## Usage

 1 2  latexTranslate(object, inn = NULL, out = NULL, pb = FALSE, greek = FALSE, ...) 

## Arguments

 object A string containing question text inn specify additional input strings over the usual defaults out specify additional translated strings over the usual defaults pb If pb=TRUE, latexTranslate also translates [()] to math mode using \left, \right. greek set to TRUE to have latexTranslate put names for greek letters in math mode and add backslashes ... ignored

## Note

This code is copied from Hmisc. Hmisc used to export this function.

andrie/braid documentation built on June 3, 2017, 7:01 p.m.