getAuthorTitles: Extract Authors and Titles From LaTeX document

Description Usage Arguments Value

Description

This function extracts the first 250 characters of a document, which should be the front matter (document start, title, author, chapter headings, in that order). It takes anything contained within brackets. It eliminates things that don't look like a title or author, like "document" and "Front Matter", then returns a data.frame where every odd entry is the title, and every even entry is the author. This is a pretty narrow function, but it serves its purpose.

Usage

1
getAuthorTitles(sdir = ".", filetype = "*.tex", filename = NULL)

Arguments

sdir

The directory to process

filetype

The type of file to process. Currently only supports .tex files.

Value

This function returns a data.frame with titles and authors for a directory of LaTeX documents.


ecology-rocks/grammaR documentation built on May 15, 2019, 7:58 p.m.