doc_temp(temp.name = "newDoc", doc.type = "rnw", path = getwd())
"doc", "rnw", "tex" or "rmd"
).
"doc"
will contain a .docx document; "rnw"
and "tex"
contain both doc.rnw
/doc.tex
and
preamble.tex
files; whereas "rmd"
contains
doc.rmd
/.Creates a document template framework for template personal use or submission.
This function generates a document template for personal
use or submission to the reports package to be included as
a template in the doc_library. This function is similar to
package.skeleton
.
templates must contain the following two items:
doc.type = rnw
- Must contain:
doc.rnw (preamble included) doc.type =
tex
- Must contain: doc.tex and preamble.tex doc.type = rmd
- Must contain: doc.rmd doc.type = docx
- Must contain: doc.docx Additional project files and directories can be stored in
the inst directory. Files in this directory will be
placed in the main directory of the template created by
new_report
. If a directory called
css this directory will be moved to the
REPORT directory rather than the main directory.
To be submitted a .tex template must run in Debian TeX Live on Linux Mint and MiKTex on Windows. After a template has been tested it can be sent as a .zip file to the reports package reports.rpackage@gmail.com. Please note that the template folder/directory name must end in _tex, _rnw, _rmd or _doc to indicate to the user the type of template.