Description Usage Arguments Details Note Examples
Use http://johnmacfarlane.net/pandoc/ to convert tex/markdown/html to docx (or tex/html) for those colleagues who use docx.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 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"))
|
in.file |
A character vector of the tex/md file. |
out.file |
A character vector of the outfile. If |
path |
The path to where the documents reside/should be created.
Default is the REPORT directory. This conveniently allows for non paths to
be supplied to |
bib.loc |
Optional path to a .bib resource. |
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).
1 2 3 4 5 6 7 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.