mdCitation: Build markdown citation report

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/base_markdownCitation.R

Description

For .md files,when given specified reference form(.csl), citation library(.bib), mardownCitation product a .bat file to annotate the citations of .md by pandoc.

Usage

1
2
3
mdCitation(md.path = NULL, csl.path = NULL, bib.path = NULL,
  save.names = NULL, save.type = "docx", sub.bat = F,
  save.path = NULL)

Arguments

md.path

the path of markdown doc

csl.path

the path of .csl file. Default is "american-medical-association.csl" provided by system

bib.path

the .bib citation library from cication editor(like Endnote). when you use endnote, you can select "BibTex Export" output form to produce a .txt

save.names

the names of saved files

save.type

the type of saved files. Default is "docx"

sub.bat

whether output indivitual .bat file. Default if FALSE

save.path

the path of output files

Details

1. The path should be a absolute path instead of relative one.
2. You have to install pandoc before. More detailed installation please go to https://github.com/jgm/pandoc/releases/tag/2.7.3
3.It seems that only "docx" is available by pandoc-citeproc filter

Value

a list

Author(s)

Weibin Huang<654751191@qq.com>

See Also

csl library https://editor.citationstyles.org/about/

Examples

1
2
cit <- mdCitation()
cit <- mdCitation(csl.path = "american-medical-association")

huangwb8/lucky documentation built on Oct. 16, 2019, 9:01 a.m.