pandoc.latex: Invoke Pandoc to Produce a 'pdf' via LaTeX

Description Usage Arguments Value

View source: R/latex.R

Description

Invoke Pandoc with the provided parameters.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
pandoc.latex(
  sourceFile,
  destName = sub(pattern = "\\..*", replacement = "", x = basename(sourceFile)),
  destDir = dirname(sourceFile),
  format.in = "markdown",
  standalone = TRUE,
  tabstops = 2L,
  toc.print = TRUE,
  toc.depth = 3L,
  crossref = TRUE,
  bibliography = TRUE,
  topLevelDivision = "chapter",
  numberSections = TRUE,
  metadata = NULL,
  useListings = FALSE
)

Arguments

sourceFile

the path to the source file

destName

the base name of the destination file without extension

destDir

the destination directory

format.in

the input format

standalone

should we produce a stand-alone document?

tabstops

the number of spaces with which we replace a tab character, or NA to not replace

toc.print

print a table of contents?

toc.depth

the depth of the table of content to print

crossref

use pandoc-crossref?

bibliography

do we have a bibliography?

topLevelDivision

the top-level division

numberSections

should sections be numbered?

metadata

the metadata

useListings

use the listings package for LaTeX code blocks?

Value

the canonical path to the destination file


thomasWeise/bookbuildeR documentation built on Sept. 5, 2021, 6:31 p.m.