TeXCheckR (version 0.6.0)

commands_used: List all unique commands in a document

Description

List all unique commands in a document

Usage

commands_used(tex_lines)

Arguments

tex_lines

A LaTeX document as read from readr::read_lines or readLines.

Value

A character vector of unique commands used in tex_lines.

Examples

Run this code
# NOT RUN {
commands_used(c("A \\abc{d}", "\\def{x}"))

# }

Run the code above in your browser using DataCamp Workspace