- edited description
Use `{...}` in output fields
Issue #163
new
I want to read (modify) and write a BibTeX file all while preserving as much as possible (to help version management).
Here is my bib-file:
@article{foo2022,
title = {I want to preserve all order to help version management},
author = {Foo, B.},
year = {2022},
journal = {Bitbucket},
volume = {1},
pages = {1--2},
}
Now
from pybtex.database import parse_file
bib_data = parse_file('library.bib')
print(bib_data.to_string('bibtex'))
modifies the order slightly (https://bitbucket.org/pybtex-devs/pybtex/issues/162/read-and-write-bibtex-in-exactly-the-same) but it also changes {...}
around fields to "..."
. How can I preserve the former?
@article{foo2022,
author = "Foo, B.",
title = "I want to preserve all order to help version management",
year = "2022",
journal = "Bitbucket",
volume = "1",
pages = "1--2"
}
(there might be options for this, there is an argument **kwargs
but I could not find what options I can use)
Comments (2)
-
reporter -
you can design a style for the entries
- Log in to comment