defaultCatcodes | R Documentation |
The default "catcodes" used by parseLatex.
defaultCatcodes
An object of class data.frame
with 13 rows and 2 columns.
defaultCatcodes
is a dataframe containing the
default catcode definitions. The numeric values of each
code are exported, e.g. LETTER
is 11.
# \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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.