knit_print: Printing functions for 'knitr'

Description Usage Arguments Details

Description

The knit_print functions fot pgfvalue and pgfkeyvalue return LaTeX-code to set key-value pairs using LaTeX's pgfkeys-package.

Usage

1
2
3
4
5
## S3 method for class 'pgfkeyvalue'
knit_print(x, options = list())

## S3 method for class 'pgfvalue'
knit_print(x, options = list())

Arguments

x

an object of S3 class pgfvalue or pgfkeyvalue

options

a string, a common path for all keys, change_dir if TRUE the path is set using the /.cd handler of the LaTeX command

Details

For objects x of S3 class pgfkeyvalue knit_print returns LaTeX code to set pgf key-value pairs using \pgfkeys{key = value}.

The optional argument option contain knitr chunk options. Available options for printing key value pairs are

path

a common path to prepend pgf-keys

change_dir

logical, for pgfkeyvalue objects only; If TRUE the path is set globally by using /.cd handler

rm_unnamed

logical, for pgfvalue objects only; If TRUE unnamed arguments are omitted silently. If FALSE an error is thrown on any unnamed argument (default).

For objects x of S3 class pgfkeyvalue knit_print returns LaTeX code to set pgf key-value pairs using \pgfkeyssetvalue{key}{value}.


mlkornexl/pgfKeys documentation built on May 14, 2019, 2:17 p.m.