tex2docx(in.file = NULL, out.file = NULL, path = QP(), bib.loc = getOption("bib.loc")) tex2html(in.file = NULL, out.file = NULL, path = QP(), bib.loc = getOption("bib.loc")) md2docx(in.file = NULL, out.file = NULL, path = QP(), bib.loc = getOption("bib.loc")) md2html(in.file = NULL, out.file = NULL, path = QP(), bib.loc = getOption("bib.loc")) md2tex(in.file = NULL, out.file = NULL, path = QP(), bib.loc = getOption("bib.loc")) md2pdf(in.file = NULL, out.file = NULL, path = QP(), bib.loc = getOption("bib.loc")) html2pdf(in.file = NULL, out.file = NULL, path = QP(), bib.loc = getOption("bib.loc"))
"replace"
over writes the original HTML file.
Default, NULL
, uses the root name of the
in.file
plus a number 2.in.file
and out.file
(i.e., just the file
names). Paths can be supplied to in.file
and
out.file
by setting path
to NULL
.Use http://johnmacfarlane.net/pandoc/ to convert tex/markdown/html to docx (or tex/html) for those colleagues who use docx.
The user must have pandoc installed and on their path. pandoc can be installed from: http://johnmacfarlane.net/pandoc/installing.html
md2docx
, md2tex
and md2pdf
converts
markdown (a .md file) not Rmarkdown (.Rmd). Use knitr to
knit to HTML first (this creates the .md file).
## Not run: # DOC <- system.file("extdata/doc_library/apa6.qual_tex/doc.tex",# package = "reports")# BIB <- system.file("extdata/docs/example.bib", package = "reports")# tex2docx(DOC, file.path(getwd(), "test.docx"), path = NULL, bib.loc = BIB)# ## End(Not run)