BibtexParser (bibtex_parser v0.2.0)
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. These checks can be both structural (e.g., empty fields) and semantic (e.g. required fields).
Given a string containing bibtex content, returns a list of entries found in this string.
Link to this section Functions
Link to this function
check_file(path)
Link to this function
check_string(str)
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(4)> BibtexParser.check_string("@incollection{foo, title={Bar}")
[{"foo", [missing_tags: ["author", "booktitle", "pages", "publisher", "year"]]}]
Link to this function
parse_file(path)
Link to this function
parse_string(str)
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"}]