latex_acro: Wrap abbreviations within a 'string' in a LaTeX command.

Description Usage Arguments Value Examples

View source: R/latex_acro.R

Description

Wrap abbreviations in a given LaTeX command to toggle the acronym or glossary packages. command defaults to the acronym package's short command, that does not mark abbreviations as used (by including "*"). This avoids the acronym being rendered the first time in the list of figures or tables.

Usage

1
latex_acro(string, acros, command = "acs*")

Arguments

string

A character vector.

acros

A character vector of abbreviations to wrap.

command

A character (without the preceding backslash).

Value

string with all acros wrapped in command.

Examples

1
latex_acro("This package is not on cran.", "cran")

thorepet/thoremisc documentation built on Oct. 8, 2021, 7:48 a.m.