processBibliography: processBibliography

Description Usage Arguments Details Value

Description

Process the bibliography of a Latex document, substituting the references and inserting the formatted bibliography.

Usage

1
processBibliography(tex, fileRoot)

Arguments

tex

A vector of character strings, each element representing a single line in a Latex file.

fileRoot

The name of the Latex file being processed, without the .tex extension. If latex file is <latex>.tex, fileRoot should be <latex>.

Details

A <fileRoot>.aux and a <fileRoot>.bbl file must both be present and in the same directory as the <fileRoot>.tex file. Hence, one must compile the Latex document first to generate these files.

Citation styles allowed here are citet (cite text, e.g., McDonald (2018)) and citep (cite paratheses, e.g., (McDonald, 2018)). The plain cite style is treated exactly like citep.

Value

A vector of character strings representing the file but with references substituted and the bibliography in it.


tmcd82070/tex2rmd documentation built on May 27, 2019, 8:46 a.m.