margin_content: Allow margin_note()-like content including inline chunks.

Description Usage Arguments Examples

Description

Allow margin_note()-like content including inline chunks.

Usage

1
margin_content(text, move = 0)

Arguments

text

Character string containing the text to be put in the margin. An inline chunk can be delimiter like this: @r 3 + 2@. That way, the function call (which must itself be in an inline chunk) can itself contain an inline chunk for creating a table, etc.

move

Distance in cm to move the note. positive means down, negative means up. Works only in PDF mode.

Examples

1
## Not run: In an Rmd file, margin_content("We can add 3 + 2 to get @r 3 + 2@")

dtkaplan/dtkbook documentation built on May 15, 2019, 4:59 p.m.