Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change bib file layout to match biber? #1043

Closed
2 of 4 tasks
tobiasdiez opened this issue Mar 26, 2016 · 5 comments
Closed
2 of 4 tasks

Change bib file layout to match biber? #1043

tobiasdiez opened this issue Mar 26, 2016 · 5 comments

Comments

@tobiasdiez
Copy link
Member

I just discovered that biber has the ability to reformat an existing bib file.
Running biber --tool --output_fieldcase=lower --output_align results in a file layout which almost coincides with the current JabRef convention.
However, I noticed the following differences:

  • @article is in lowercase instead of our @Article
  • The fields are sorted by alphabet (we sort by ?)
  • The last field ends with a comma (see below; I think we already had a discussion about this)
  • The equal signs are also aligned, i.e.
@article{key,
  abstract     = {abstract},
  author       = {author},
  editor       = {editor},

I propose to adopt the changes marked with a tick. What is your opinion about this, @JabRef/developers ?

@tobiasdiez tobiasdiez added this to the v3.3 milestone Mar 26, 2016
@oscargus
Copy link
Contributor

Alphabetical sort makes it harder for version control.

, at the end makes it easier for version control, but as I recall it we didn't want it to avoid arguments with purists.

Alignment and casing: no opinion, both versions work for me (but I do not like ALLCAPS).

@stefan-kolb
Copy link
Member

We discussed all of the points several times in the dev calls. You can see the Minutes and issues on this for clarifications. Personally, I don't want to kick up a shindy again on this decisions. Although I voted differently on some of the decisions.

@tobiasdiez
Copy link
Member Author

@stefan-kolb I didn't found anything concrete on these points in the Minutes (although there were of course other documented design decisions), this is why I opened this issue. But if you have already discussed all of this, then close.

@lenhard
Copy link
Member

lenhard commented Apr 1, 2016

After some discussion during the devcall, we decided to:

  • To risk arguments with purists and always prepend , after every field for reasons of version-controllability
  • To do as biber does and right-align the equals sign.

As of 0b7bea2 this is implemented.

@lenhard lenhard closed this as completed Apr 1, 2016
@koppor
Copy link
Member

koppor commented Apr 8, 2016

Refs #481

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants