Description Usage Arguments Details Functions Note See Also
This function allows enumerated tables and figures in rmarkdown.
In connection to a table or figure you use rmd_cap
(or convenience
functions tab_cap
or fig_cap
) to record a label and a number
(within the typesinfo
environment). Within the text you can then
refer to them as `r rmd_ref(<label>)`
.
1 2 3 4 5 |
caption |
the caption |
label |
the label you can refer to in the .rmd document. If |
type |
usually "Table" or "Figure". User do not have to care as you use
|
The rmd_cap
, and convinience functions tab_cap
and
fig_cap
, keeps track of Figures and Tables. Use e.g. fig.cap =
fig_cap("My Caption", "myLabel")
in a chunk header and `r
rmd_ref("myLab")`
in your rmd document.
tab_cap
: Captions for tables
fig_cap
: Captions for figures
You might have to knit your document twice for it to work. Relative
changes or insertions of tables/figures probably requires you to reset the
information on table/figure enumeration so far (use
index_type_reset
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.