The function relies on options("fig_caption_no")
in order to keep track of the last number. If
you want to force the caption function to skip
captions while still using it in the knitr fig.cap option
then simply set options(fig_caption_no = FALSE)
figCapNo(
str,
roman = getOption("fig_caption_no_roman", default = FALSE),
sprintf_str = getOption("fig_caption_no_sprintf", default = "Fig. %s: %s")
)
The string that is to be prepended with string
Whether or not to use roman numbers instead
of Arabic. Can also be set through options(fig_caption_no_roman = TRUE)
An sprintf
formatted
string where the first argument is reserved for the string
generated by the counter and the second one is for the caption
text. Can also be set through options(fig_caption_no_sprintf = TRUE)
Other figure caption functions:
figCapNoLast()
,
figCapNoNext()