Nothing
knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(rebib)
While using rebib with a LaTeX document, one can use the following two options as per their needs :
The bibliography converter will convert any LaTex or BBL file given as a path. This way, one can generate BibTeX from the embedded bibliography or BBL file.
dir.create(your_article_folder <- file.path(tempdir(), "exampledir")) example_files <- system.file("standalone", package = "rebib") x <- file.copy(from = example_files,to=your_article_folder,recursive = T,) path_to_your_file <- paste(your_article_folder,"standalone", "sample.bbl", sep = "/")
rebib::biblio_converter(path_to_your_file)
unlink(your_article_folder)
The bibliography aggregator will append the existing BibTeX file with bibliographic entries extracted from the LaTeX or BBL file.
The Flow Chart here visualizes the sequence.
knitr::include_graphics("../man/figures/bib_agg.svg")
dir.create(your_article_folder <- file.path(tempdir(), "exampledir")) example_files <- system.file("aggr_example", package = "rebib") x <- file.copy(from = example_files,to=your_article_folder,recursive = T,) your_article_path <- paste(your_article_folder,"aggr_example",sep="/")
# Suppose you have a example.bib file in your article path cat(readLines(paste(your_article_path,"example.bib",sep="/")),sep = "\n") # for files with BibTeX source as well as embedded entries rebib::aggregate_bibliography(xfun::normalize_path(your_article_path)) cat(readLines(paste(your_article_path,"example.bib",sep="/")),sep = "\n")
unlink(your_article_folder,recursive = T)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.