TeXCheckR (version 0.6.0)

extract_mandatory_LaTeX_argument: Extract mandatory argument II

Description

Extract mandatory argument II

Usage

extract_mandatory_LaTeX_argument(tex_lines, command_name, n = 1L,
  by.line = FALSE, parsed_doc = NULL)

Arguments

tex_lines

A character vector of lines as read from a LaTeX document.

command_name

The command name (no backslash or opening brace).

n

Which integer to

by.line

If FALSE, the default, each row of the data.table returned has the entire contents of the argument in extract column. If TRUE, the contents is split as it is in the document; arguments over multiple lines in the document are split over multiple rows in the data.table returned.

parsed_doc

A parsed document (from parse_tex). parse_tex. Use this argument if the cost of running parse_tex is expensive (such as repeatedly over the same document).