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