get_contents: Convenience functions to get or set contents of item

View source: R/utils.R

get_contentsR Documentation

Convenience functions to get or set contents of item

Description

Convenience functions to get or set contents of item

Usage

get_contents(item)

set_contents(item, value)

Arguments

item

An item from a Latex list (or a LaTeX2 list with one item).

value

An object that can be coerced to be a LaTeX2 object.

Value

get_contents returns the contents of the item as a LaTeX2 list.

The original item with the contents replaced by value.

Examples

get_contents(parseLatex("{abc}"))

set_contents(parseLatex("{abc}"), "def")

parseLatex documentation built on April 3, 2025, 5:27 p.m.