joostkremers / ebib

A BibTeX database manager for Emacs.
https://joostkremers.github.io/ebib/
BSD 3-Clause "New" or "Revised" License
275 stars 37 forks source link

Question: customization of buffer containing ref details #274

Closed AlainGuill closed 10 months ago

AlainGuill commented 1 year ago

Dear Joost, I really like ebib. You already helped me some times ago to organize a buffer with my keywords. This time I'm wondering whether it's possible to force the order of the field of the buffer appearing below the list of references ? For me it would be great to have always the same order : "title, authors, keywords, journal" Is it already possible and I'm missing something ? Thanks a lot by advance. Alain

joostkremers commented 1 year ago

The order is determined by the user option bibtex-BibTeX-entries-alist or bibtex-biblatex-entry-alist, so you'd have to customise these to get the effect you want.

Note, though, that those user options are organised according to the type of field. The doc string has the details, but basically required and optional fields are separated, and the order of fields in Ebib reflects this.

In Ebib, the distinction isn't used for much else, so I don't think it would result in any inconveniences if you use your preferred order. I don't know what problems may arise with bibtex.el itself, though, if you also edit your .bib files by hand.

AlainGuill commented 1 year ago

Thank you so much for this answer (and sorry for being so late to write). Unfortunately I tries several times to change it in my init.el but without sucess. Would it be possible for you to show how you can change it? Thanks again for your answer and your time.

AlainGuill commented 1 year ago

Hello, I finally managed to have what I wanted. I think I was not trying correctly. In the init.el : (custom-set-variables '(bibtex-BibTeX-entry-alist '(("Article" "Article in Journal" (("keywords") ("author")) (("title") ("journaltitle") ("shortjournal") ("year")) (("abstract") ("volume") ("number"))) etc... for the other format ("InProceedings", "Conference", ...) Thanks a lot for your help ! Alain