word2grattex: Convert a Grattan report-style Word document to .tex

Description Usage Arguments

View source: R/word2grattex.R

Description

Convert a Grattan report-style Word document to .tex

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
word2grattex(
  path = ".",
  overwrite = TRUE,
  downloadGrattex = FALSE,
  removeReport.tex = TRUE,
  bibReplace = TRUE,
  buildFigures = TRUE,
  buildTables = TRUE,
  crossReferences = TRUE,
  footnoteNewLine = TRUE,
  segmented = FALSE,
  testRun = FALSE
)

Arguments

path

The path of the folder containing your Word document.

overwrite

Overwrite an existing .tex file.

downloadGrattex

Download the most recent version of Grattex. Set to TRUE if the Word document is not located within a Grattex folder.

removeReport.tex

Delete the default Grattex .tex file.

bibReplace

Add in-text citations using bib2grattex.

buildFigures

Automatically build figure environments with titles, units, \includegraphics, notes and sources.

buildTables

Automatically build table environments to enable table cross-referencing. Note that this does _not_ build the table itself.

crossReferences

Automatically create cross-references. Eg: “See Section 2.2” to "See \Crefsubsec:section-name".

footnoteNewLine

Create a new line for each footnote in .tex

segmented

Set to TRUE if this is just a chapter or section of a larger document.

testRun

To test new features of word2grattex. Leave as FALSE.


wfmackey/word2grattex documentation built on Feb. 28, 2021, 9:54 p.m.