BibtexParser (bibtex_parser v0.2.1) View Source

Link to this section Summary

Functions

Given a string containing bibtex content, parses the string and then runs checks on it to verify if the content is proper Bibtex.

Given a string containing bibtex content, returns a list of entries found in this string.

Link to this section Functions

Given a string containing bibtex content, parses the string and then runs checks on it to verify if the content is proper Bibtex.

These checks can be both structural (e.g., empty fields) and semantic (e.g. required fields).

Each error returned from the function is in the form of {<label>, [<error>: message]}.

Examples

iex> BibtexParser.check_string("@incollection{foo, title={Bar}")
[{"foo", [missing_tags: ["author", "booktitle", "pages", "publisher", "year"]]}]

Given a string containing bibtex content, returns a list of entries found in this string.

Examples

iex> BibtexParser.parse_string("@incollection{foo, title={Bar}")
[%{label: "foo", tags: [title: "Bar"], type: "incollection"}]