latex_minipage: Generate a LaTeX minipage environment

View source: R/minipage.R

latex_minipageR Documentation

Generate a LaTeX minipage environment

Description

Generate a LaTeX minipage environment

Usage

latex_minipage(
  x,
  width = NULL,
  position = NULL,
  height = NULL,
  inner_position = NULL
)

Arguments

x

The text to go within the minipage. See Details.

width

The width of the minipage ("\columnwidth" is a useful choice.)

position

The position of the minipage with respect to the line where it appears.

height

(optional) the height of the minipage

inner_position

The position of the contents within the minipage (only available if height is also provided).

Details

If x is a character vector, all text will be inserted as separate paragraphs (with an empty line between). If x is a list of character vectors, then multiple minipages will be generated (via sapply). The latter is useful for building tables of minipages, for instance.

Value

Either a character scalar (if x is character input) or a character vector (if x is a list of character vectors).


billdenney/latex.makers documentation built on July 9, 2023, 12:46 p.m.