check_labels {TeXCheckR} | R Documentation |
Check labels
Description
Check labels
Usage
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: |
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.
[Package TeXCheckR version 0.8.1 Index]