quote_from_tex: Quote from TeX document

View source: R/revision_letter_format.R

quote_from_texR Documentation

Quote from TeX document

Description

Includes a labelled quote from a LaTeX document 'asis'.

Usage

quote_from_tex(
  x,
  file = paste0(rmarkdown::metadata[["manuscript-tex"]], ".tex")
)

Arguments

x

Character. One or more quote labels.

file

Character. Path to LaTeX file from which to quote.

Details

Searches the LaTeX document specified in file for labelled quotes, i.e. paragraphs that are enclosed in ⁠% <@~{#quote-label}⁠ and ⁠% ~@>⁠ tags in LaTeX comments on separate lines. The labelled quote is then inserted and rendered asis. To use labelled quote-tags in a apa6_pdf()-document, set the YAML front matter options quote_labels: true.

Value

A character vector of LaTeX document text of class knit_asis, see knitr::asis_output().


papaja documentation built on Oct. 30, 2024, 9:09 a.m.