set_range | R Documentation |
Set items in a LaTeX2 object
set_range(items, range, values)
items |
A LaTeX2 object or other list of LaTeX2item objects. |
range |
A LaTeX2range object. |
values |
An object that can be coerced to
a LaTeX2 object or (if |
set_range()
replaces the item(s) at the given path, and returns the modified version of items
.
latex <- kableExtra::kbl(mtcars[1:2, 1:2], format = "latex", caption = "Sample table")
parsed <- parseLatex(latex)
tablepath <- path_to(parsed, is_env, envtypes = "tabular")
range <- LaTeX2range(tablepath, 8)
set_range(parsed, range, "The 8th item")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.