Description Usage Arguments Details Examples
View source: R/odfTableCaption.R
Provide a numbered caption for a table. Captions are automatically numbered, and by default using arabic numerals, but letters or roman numerals can also be specified via the numformat argument.
1 2 | odfTableCaption(caption, numformat='1', numlettersync=FALSE,
formula='Table+1', label='Table')
|
caption |
the text portion of the caption |
numformat |
the format to use the table number |
numlettersync |
specifies the style of numbering to use if numformat is 'A' or 'a' |
formula |
the formula to use for computing this table number from the previous |
label |
the label to use for the caption. Defaults to 'Table'. |
This function should be called immediately after a call to odfTable in a code chunk in an odfWeave document.
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 tables. If numlettersync is true, the next 26 tables will be numbered 'AA', 'BB', ..., 'ZZ', 'AAA', 'BBB', etc. If numlettersync is false, the subsequent tables will be numbered 'AA', 'AB', ..., 'AZ', 'BA', 'BB', ..., 'BZ', etc.
The default formula, which numbers tables consecutively, is usually desired, but you could specify a formula of 'Table+10' to have your tables numbered 1, 11, 21, etc.
1 2 3 4 | ## Not run:
odfTableCaption("This is a very boring table")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.