List all unique commands in a document
commands_used(tex_lines)
A LaTeX document as read from readr::read_lines or readLines.
readr::read_lines
readLines
A character vector of unique commands used in tex_lines.
tex_lines
# NOT RUN { commands_used(c("A \\abc{d}", "\\def{x}")) # }
Run the code above in your browser using DataCamp Workspace