check_labels: Check labels

Description Usage Arguments Details Value

View source: R/check_labels.R

Description

Check labels

Usage

1
check_labels(filename, .report_error, check.chaprefs = TRUE)

Arguments

filename

The LaTeX source file to check.

.report_error

The function to provide context to the error.

check.chaprefs

(logical, default: TRUE) If TRUE, require all cross-references to use \Chapref.

Details

Checks each label has a prefix and the prefix is one of the following: fig:, tbl:, box:, chap:, sec:, eq:, subsec:, subsubsec:, para: paragraph:. Checks also that chapter labels are marked with chap:. (N.B. although each label must have a prefix, it must not necessarily the right prefix; for example, a table caption may have prefix tbl:.)

Value

NULL, invisibly if labels check out. An error otherwise.


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