Check labels
check_labels(filename, .report_error, check.chaprefs = TRUE)
NULL
, invisibly if labels check out. An error otherwise.
The LaTeX source file to check.
The function to provide context to the error.
(logical, default: TRUE
) If TRUE
, require all cross-references to use \Chapref
.
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:
.)