latex_command | R Documentation |
Generate a LaTeX command
latex_command(
x,
required_args = list(),
optional_args = list(),
brace_protect = TRUE
)
x |
The contents of the environment, a scalar vector where it will be collapsed with newlines. |
required_args |
A list of the required arguments to the environment, in order. |
optional_args |
A named list of the optional arguments to the environment, in order. It is an error for an optional argument to be NULL prior to a non-optional argument. |
brace_protect |
If there are no |
A character scalar of the command
latex_command("newpar")
latex_command("newpar", brace_protect=FALSE)
latex_command("section", required_args="My first section")
latex_command("frac", required_args=list(1, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.