Useful for checking whether all the figures and tables in a document have been
referenced in the main text. You may exclude figures and tables from the check by using
the directive
% may_be_left_unreferenced:
in the preamble before the label that is to be excluded.
figs_tbls_unrefd(filename, .report_error, check.labels = TRUE)
A LaTeX file.
A function to provide context to any errors.
if TRUE
, the default, run check_labels
on filename
to ensure the figure and table
labels in filename
are in the expected form or style. Set to FALSE
for possibly faster runs but the risk of spurious results.
The labels of any figure or table left unreferenced in filename
(including inputs).