quote_from_tex {papaja}R 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-file"]], ".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().


[Package papaja version 0.1.2 Index]