Description Usage Arguments Value Examples
Create and Write LaTeX Macro Lists
1 |
... |
For |
An object of class latex_macros
which extends
environment
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | macros <- latex_macros(a = "1", b = "foo")
macros
# Assign new macros
macros$c <- 2 + 2
macros$d <- paste(letters, collapse = " ")
macros
# By default, LaTeX special characters are escaped
macros$e <- "$ 2 ^ 3 $"
macros$e
# use tex() to avoid escaping
macros$e <- tex("$ 2 ^ 3 $")
macros$e
# format() returns a string with LaTeX commands
format(macros)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.