extract_mandatory_LaTeX_argument: Extract mandatory argument II

Description Usage Arguments

View source: R/extract_mandatory_LaTeX_argument.R

Description

Extract mandatory argument II

Usage

1
2
3
4
5
6
7
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).


TeXCheckR documentation built on Nov. 17, 2020, 9:08 a.m.