Description Usage Arguments Details Value See Also Examples
Look up entries in bibliography and insert citation in Markdown format if exactly one match is returned.
1 2 3 4 |
x |
Character. Search terms used to filter bibliography (by author, year, title, and journal fields); Regex is supported. |
in_paren |
Logical. Determines if citation is in parentheses. |
bib_file |
Character. Path to Bib(La)TeX-file. See details. |
cache |
Logical. If |
use_betterbiblatex |
Logical. If |
encoding |
Character. Encoding of the Bib(La)TeX-file. |
The path to the BibTeX-file can be set in the global options and is set to
references.bib
when the package is loaded. Once the path is changed in the
RStudio addin, the global option is updated. If use_betterbiblatex = TRUE
references
are imported from Zotero/Juris-M rather than from the Bib(La)TeX-file. The Bib(La)TeX-file
is then updated to include the inserted reference.
If the bibliography contains exactly one match the formatted citation is returned, otherwise
returns NULL
. md_cite
returns an in-text citation ("@foo2016"
), md_cite
returns an in-parenthesis citation ("[@foo2016]"
).
1 2 3 4 | ## Not run:
md_cite("foo 2016", bib_file = "references.bib")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.