bartleby.language.bibtex

BibTeXFormatter

protocol

Handle formatting of bibliography items into BibTeX strings

members

-format

(-format this)
Format this as a BibTeX string

field

(field)
Use within the outer braces of a BibTeX entry, to capture a single key-value
field pair and consume the following comma and whitespace, if any.

field-value

(field-value)
Read the RHS of a field-value field pair, as a string

gloss

(gloss)
Capture inter-entry content in BibTeX, returning a Gloss record

gloss-line

(gloss-line)

gloss-line-characters

(gloss-line-characters)
Captures a single line of interlinear comments,
i.e., whatever is not a Reference,
returning a sequence of characters

item

(item)
Capture any valid bibtex item, potentially preceded by whitespace

number-literal

(number-literal)
Consume one or more digits and return a string in TeX syntax (in curly braces)

read

(read reader)
Reads a single bibliography item from the BibTeX reader

read-all

(read-all input)
Read input to the end, returning all bibliography items.

read-str

(read-str string)
Reads one bibliography item from the BibTeX string

reference

(reference)
Capture a single BibTeX entry, returning a Reference record

simple-string

(simple-string)
Read a simple string literal and convert to TeX syntax

word

(word)
Match any BibTeX-valid naked identifier, like pubtype, citekey, or field key,
i.e., a contiguous string of anything but whitespace, commas, and end braces.

write

(write item writer & options)
Write BibTeX-formatted output to a java.io.Writer.

write-str

(write-str item & options)
Convert bibliography item into BibTeX-formatted string