bbt_cite_cayw: Fetch citations from Zotero

View source: R/bbt.R

bbt_cite_caywR Documentation

Fetch citations from Zotero

Description

Use Better BibTex's cite-as-you-write tool to search your Zotero libraries and insert citations or a bibliography. Unfortunately, this doesn't work well on some platforms. Citation text is printed to the console by default. Use the RStudio addin to insert directly into the editor!

Usage

bbt_cite_cayw(format = c("pandoc", "latex", "cite"), .action = bbt_print)

bbt_bib_cayw(
  translator = getOption("rbbt.default.translator", "biblatex"),
  .action = bbt_print
)

Arguments

format

The citation format to use for in-text citations.

.action

Use bbt_return() to return the value without printing.

translator

Type of bibliography file to create. Options are json (CSL-JSON), biblatex (BibLaTeX), bibtex (BibTeX), and yaml (CSL YAML). CSL-JSON is recommended if users are not specifically using a LaTeX citation processor.

Value

A character vector of length 1, the result of .action.

Note

Most users should use CSL-JSON format (.json) for their bibliographies.

RMarkdown's citation formatting uses CSL styles. These styles require CSL-JSON data. RMarkdown converts other data formats (e.g., BibLaTeX) to CSL-JSON. This is not lossless, and references other than journal articles may be inaccurate. This is the case even if outputting to PDF or TeX format.

Only use BibLaTeX or BibTeX if you are using pandoc arguments to specify an alternative citation engine for raw TeX output.

The default translator can be changed. For example: options(rbbt.default.translator = "json")


paleolimbot/rbbt documentation built on Nov. 16, 2024, 5:25 p.m.