Skip to contents

The default "catcodes" used by parseLatex.

Usage

defaultCatcodes

Format

An object of class data.frame with 13 rows and 2 columns.

Details

defaultCatcodes is a dataframe containing the default catcode definitions.

Examples

# \makeatletter has no effect by default...
unclass(parseLatex("\\makeatletter\\internal@macro"))
#> [[1]]
#> MACRO: \makeatletter
#> 
#> [[2]]
#> MACRO: \internal
#> 
#> [[3]]
#> SPECIAL: @
#> 
#> [[4]]
#> TEXT: macro
#> 
# ... but the effect can be simulated
atletter <- rbind(defaultCatcodes,
                  data.frame(char="@", catcode=11))
unclass(parseLatex("\\makeatletter\\internal@macro",
                   catcodes = atletter))
#> [[1]]
#> MACRO: \makeatletter
#> 
#> [[2]]
#> MACRO: \internal@macro
#>