Package 'biblioformat'

Title: Revise and Reformat Plain Text Bibliographies
Description: This package aims to revise and reformat reference lists (bibliographies) in plain text format. It takes a reference list as plain text, tries to retrieve DOIs and metadata from Crossref, and reformat them according to a chosen style (e.g. BibTeX, or following a particular journal citation style).
Authors: Francisco Rodriguez-Sanchez [aut, cre]
Maintainer: Francisco Rodriguez-Sanchez <[email protected]>
License: MIT + file LICENSE
Version: 0.0.1
Built: 2024-11-15 04:37:20 UTC
Source: https://github.com/Pakillo/biblioformat

Help Index


Revise and Reformat a Bibliography

Description

Revise and reformat a list of references provided as plain text. This function will try to identify their DOI (through Crossref), then formatting each following the chosen output format (e.g. BibTeX, or a particular journal style).

Usage

biblioformat(refs = NULL, format = "text", style = "apa",
  filename = NULL, ...)

Arguments

refs

A character vector with bibliographic references. If NULL (default), will read them from the clipboard.

format

Output format. Default is "text". Alternatively, choose "bibtex" for extracting references that can e.g. be later imported in a reference manager. See cr_cn for all output formats available.

style

Output style for bibliography when format is "text". Default is "apa", but any of the >9000 styles available in github.com/citation-style-language/styles can be used. See cr_cn for details.

filename

Optional. Save formatted bibliography to a file.

...

Further arguments for cr_cn.

Value

A character vector with revised and reformatted bibliographic references. These are automatically copied to the clipboard, so they can be directly pasted onto a document. Optionally, also a text file saved on disk.

Note

Some references may be changed and erroneously confounded with others. Please check the output reference list.

Examples

## Not run: 
refs <- c(
"Hansen, J. et al. (2013) Climate sensitivity, sea level and atmospheric carbon dioxide. Phil. Trans. R. Soc. A. 371: 20120294.",
"Davis, M.B. and Shaw, R.G. (2001) Range shifts and adaptive responses to Quaternary climate change. Science 292(5517): 673-679."
)

newrefs <- biblioformat(refs)
newrefs

newrefs <- biblioformat(refs, style = "ecology-letters")
newrefs <- biblioformat(refs, format = "bibtex", filename = "myrefs.bib")


## End(Not run)