odfFigureCaption: Provide a Caption for a Figure

Description Usage Arguments Details Examples

View source: R/odfFigureCaption.R

Description

Provide a numbered caption for a figure. Captions are automatically numbered, and by default using arabic numerals, but letters or roman numerals can also be specified via the numformat argument.

Usage

1
2
3
4
5
odfFigureCaption(caption, 
                 numformat = '1', 
                 numlettersync = FALSE,
                 formula = 'Illustration+1', 
                 label = 'Illustration')

Arguments

caption

the text portion of the caption

numformat

the format to use the figure number

numlettersync

specifies the style of numbering to use if numformat is 'A' or 'a'

formula

the formula to use for computing this figure number from the previous

label

the label to use for the caption. Defaults to 'Illustration'.

Details

This function should be called no more than once in a code chunk where 'figure' was set to true.

Legal values for numformat are 'A', 'a', 'I', 'i', and '1'.

If numformat is 'A' or 'a', numlettersync specifies what style of numbering to use after the first 26 figures. If numlettersync is true, the next 26 figures will be numbered 'AA', 'BB', ..., 'ZZ', 'AAA', 'BBB', etc. If numlettersync is false, the subsequent figures will be numbered 'AA', 'AB', ..., 'AZ', 'BA', 'BB', ..., 'BZ', etc.

The default formula, which numbers figures consecutively, is usually desired, but you could specify a formula of 'Illustration+10' to have your figures numbered 1, 11, 21, etc.

Examples

1
2
3
4
## Not run: 
odfFigureCaption("This is a very interesting figure")

## End(Not run)

odfWeave documentation built on May 30, 2017, 7:23 a.m.