Captioner generates a function with the following parametersname
: Character string containing a unique object name
caption
: The object caption
display
: Character string (or logical) indicating what display mode you would like:
- full or f is the default and shows the entire caption with prefix and number
- cite or c displays just the prefix and number, without the caption
- num or n displays just the number
level
: Optional numeric used to bump up the numbering if you have hierarchical numbering. See also bump
.
cite
: Deprecated. Please use display
.
num
: Deprecated. Please use display
.
And returns a character string containing the prefix and object number with or without a caption.
The initial numbering is determined based on the order of caption creation. However, this order
is modified based on the citations you use. The first figure to be cited will be moved to the
beginning of the list, becoming Figure 1.