tablecaption: Function to format captions for table when using...

View source: R/tablecaption.R

tablecaptionR Documentation

Function to format captions for table when using pandoc-crossref and table-short-captions Lua filter.

Description

Formats the caption according to the output format. For the short caption, you need this Lua Filter: https://github.com/pandoc/lua-filters/tree/master/table-short-captions

Usage

tablecaption(caption, label = NULL, shortcaption = NULL, unlisted = FALSE)

EZtable(caption, shortcaption = NULL, label = knitr::opts_current$get("label"))

Arguments

caption

A character vector containing the (long) caption of the table.

label

An optional character vector containing the label used for referencing.

shortcaption

An optional character vector containing the short caption.

unlisted

Either TRUE or FALSE, to determine if the table should be added to the list of tables.

Value

Formatted table caption

Examples

tablecaption("Caption of the Table")


julianre/jRmisc documentation built on June 4, 2024, 11:32 p.m.