defaultCatcodes {parseLatex} | R Documentation |
The default "catcodes" used by parseLatex.
Description
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. The numeric values of each
code are exported, e.g. LETTER
is 11.
Examples
# \makeatletter has no effect by default...
unclass(parseLatex("\\makeatletter\\internal@macro"))
# ... but the effect can be simulated
atletter <- rbind(defaultCatcodes,
data.frame(char="@", catcode=11))
unclass(parseLatex("\\makeatletter\\internal@macro",
catcodes = atletter))
# These are the default codes:
cbind(defaultCatcodes, name = c("ESCAPE", "LBRACE", "RBRACE", "MATH",
"ALIGN", "NEWLINE","NEWLINE", "PARAM", "SUPER",
"SUB", "SPACE", "SPACE", "COMMENT"))
# The missing ones are
# 9 - IGNORE
# 11 - LETTER
# 12 - OTHER
# 13 - ACTIVE
# 15 - INVALID
[Package parseLatex version 0.4.1 Index]