veto_sic: Veto sic

Description Usage Arguments

View source: R/veto_sic.R

Description

Vetoes words in a LaTeX document that are marked '[sic]' for the purpose of spell checking by replacing them (and '[sic]' itself) with white space of equal length.

Usage

1
veto_sic(tex_lines, quote = TRUE, sentence = !quote, words_ante = 1L)

Arguments

tex_lines

A character vector.

quote

(logical, default: TRUE) Veto words after the previous opening quote (i.e. backtick) symbol.

sentence

(logical, default: TRUE) Veto words before [sic] in the same sentence. (The start of a sentence is taken to be the location of the capital letter which is preceded by white space and a full stop.)

words_ante

The number of words to exclude. Ignored if quote or sentence is TRUE.


TeXCheckR documentation built on Nov. 17, 2020, 9:08 a.m.