latex_optional_arg: Generate optional arguments to a LaTeX call.

View source: R/general.R

latex_optional_argR Documentation

Generate optional arguments to a LaTeX call.

Description

Generate optional arguments to a LaTeX call.

Usage

latex_optional_arg(x = NULL, ...)

Arguments

x

A character scalar (or something that can be coerced into a character scalar)

...

Named arguments that must be present for the optional argument to work.

Value

The character scalar in square brackets, "[x]".

See Also

Other Latex Arguments: latex_required_arg()

Examples

latex_optional_arg(NULL)
latex_optional_arg(x="A")

billdenney/latex.makers documentation built on July 9, 2023, 12:46 p.m.