python-bibtexparser
python-bibtexparser copied to clipboard
Bibtex parser for Python 3
A new option `align_multiline_values` is added to BibTexWriter to enable whether text of multiline values should be aligned on top of each other. Indentation also considered `_max_field_width`. Current behaviour: BibTeX...
When using `align_values`, the minimum `_max_field_width` is always 9 as `ENTRYPOINT` (9 chars) is in the list of `entries`: https://github.com/sciunto-org/python-bibtexparser/blob/006f463a8601dc8065f02f3199210c70f24ac4f9/bibtexparser/bwriter.py#L108 Therefore, this tests works fine: ``` def test_align2(self): bib_database =...
Fixes https://github.com/sciunto-org/python-bibtexparser/issues/308. A warning message will appear if the `parse` method is called more than once and the message will be "Parser has been called more than once."
Hi there, while testing the library if it fits my needs, I've come across some issues in how urls and links in general are handled. An example that is not...
The issue was caused by pyparsing not returning as named result an empty string. Hence, although these are correctly parsed, they cannot be accessed by names. The rule would apply...
The BibTexWriter variable min_align_padding can help to avoid whitespace changes throughout the document if fields with a length below min_align_padding are inserted. This is useful to achieve a more readable...
When it reads this record: ``` @book{bug1, title="Demonstrate a bug. A \$1 billion!", author="Dr. Evil", year=2000 } ``` bibtexparser writes it this way: ``` @book{bug1, author = {Dr. Evil}, title...
Validate BiBTeX output with a LaTeX, BiBTeX, LaTeX cycle that runs automatically as part of the GitHub Actions. This is the only real way to validate that everything works.
Consider the snippet shown below. The second `parses` call returns 4 entries, I would have expected three. I do see use cases where this is intended, and changing this could...
`import bibtexparser` `with open('Included_studies.bib', encoding = "utf-8") as bibtex_file: included = bibtexparser.load(bibtex_file)` `include_df =pd.DataFrame(included.entries)` `include_df['title'].head()` **0 {Plasma prostaglandin levels in fed and starved lean, normal and obese women} 1 {Lack...