TeXCheckR (version 0.6.0)

figs_tbls_unrefd: Return unreferenced figures or tables in document

Description

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.

Usage

figs_tbls_unrefd(filename, .report_error, check.labels = TRUE)

Arguments

filename

A LaTeX file.

.report_error

A function to provide context to any errors.

check.labels

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.

Value

The labels of any figure or table left unreferenced in filename (including inputs).