figure-hooks: Special processing for figure and table chunks

Description Usage Arguments Value Note Author(s)

Description

These hooks are intended for use with knitr. There is usually no need to call them directly.

Usage

1
2
3
4
5

Arguments

before

Logical indicating whether the hook was called befere or after the chunk has been processed.

options

List of chunk options.

envir

Environment in which the chunk is evaluated.

Value

The chunk hooks produce markup that adds anchors to enable direct links to the table or figure and add s the caption where required.

fig.cap_opts_hook returns a list of chunk options adjusted for the requested figure format.

tab.cap_opts_hook returns a list of chunk options with the tab.cap option augmented for automatic table numbering.

Note

These hooks are intended for chunks with the fig.cap (for figures) and tab.cap (for tables) option and this is assumed to be present.

Author(s)

Peter Humburg


humburg/reportmd documentation built on May 17, 2019, 9:13 p.m.