-
Notifications
You must be signed in to change notification settings - Fork 453
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
Beautify bibtex #291
Comments
It's unlikely I will personally have time to implement this beautifier in Atom Beautify, however I am always accepting Pull Requests. Here are some potential options for beautifiers that may lead to designing a solution for Atom Beautify: |
Thanks for the links. As I have to beautify only one (large) file, I guess I will also not implement a beautifier right now. |
I could add Does this command work for you? biber --tool --output_align --output_indent=2 --output_fieldcase=lower <filename>.bib Let me know what works for you and I can add support for it so you can stay in Atom and not use the Terminal. |
Here is a list of options that biber in tool mode knows:
Not sure what to use as default for |
I am not sure if biber is the best choice for pretty printing, so I kept searching and found two more tools, bibtool and bibclean (also see https://tex.stackexchange.com/a/242215/8569).
For atom-beautify, one might might have to adopt these, e.g. turn off sorting, turn off verbosity, etc Only disadvantage is that bibtool is hard to install on Windows, because it is distributed as source code only. On Ubuntu installation is as easy as |
See #300 (comment) for how to add a new language and/or beautifier. Update: I will be maintaining this documentation on adding languages and beautifiers: https://github.com/Glavin001/atom-beautify/blob/master/docs/add-languages-and-beautifiers.md |
AFAIK, |
Awesome to hear |
Since this issue is not yet closed, I'd like to recommend BibTool for beautifying For example, a bib entry like the following
Is formatted as such by latexindent, apparently without any option for customization
With BibTool, I can reorder fields, remove braces from numeric fields, rename fields (like urldate to urlaccessdate) and remove fields (like file).
|
Pull Requests welcome! See https://github.com/Glavin001/atom-beautify/blob/master/docs/add-languages-and-beautifiers.md#how-to-add-a-beautifier-for-a-language for details. Please feel free to ask questions. The core team is unlikely to implement new beautifiers like this, as we are working on other features, however we are always open to questions! 😃 |
@douglasrizzo The only problem I see with bibtool is that the author does not ship Windows binaries:
biber does ship binaries for Windows, and they are available in most TeX distributions. |
Title says it all: Would be nice to be able to beautify Bibtex files so that all braces are aligned.
The text was updated successfully, but these errors were encountered: