knitPDF: Knit a File and Patch

View source: R/patchPDF.R

knitPDFR Documentation

Knit a File and Patch

Description

This is a simple script to run knit, then LaTeX, then patchDVI.

Usage

knitMiktex(Rnw, main,
    weave = knitr::knit,
    ...)

knitPDFMiktex(Rnw, main,
    weave = knitr::knit,
    ...)

knitDVI(Rnw, main,
    weave = knitr::knit,
    ...)

knitPDF(Rnw, main,
    weave = knitr::knit,
    ...)

knitDVIPDFM(Rnw, main,
    weave = knitr::knit,
    ...)

Arguments

Rnw

The .Rnw input file

main

The .tex file on which to run latex, defaulting to the output file from Sweave

weave

The function to carry out the weaving.

...

See Details below.

Details

The ... arguments are passed to the corresponding Sweave* function.

If the Rnw argument is a filename ending in ‘.tex’, then knitting is skipped, but the output file is still patched (because one of the other files in the project might have come from knitr).

Value

These functions are run for the side effects.

Examples

## Not run: 
knitPDF("chapter.Rnw", "book.tex")

## End(Not run)

patchDVI documentation built on March 31, 2023, 11:34 p.m.