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