Live data from Hacker News

BibTeX Tidy

flamingtempura.github.io

21–30 of 33 posts

Re: BibTeX Tidy

#21
post #12

I find formatting is usually a nonissue with BibTeX files as entries tend to already be automatically generated from some authoritative source (e.g., CrossRef). What I do end up using a lot however is nschloe's betterbib [1]. [1] https://github.com/nschloe/betterbib

Wow thank you, _this_ is what I've been looking for!

Re: BibTeX Tidy

#22
post #18

My .bib files are a mess. This is partly because I tried to order the file by year then author (manually), which of course resulted in some errors. And also because I write some free text in between entries which talk about the papers and have some keywords that I'm able to search for entries in. I'd really like some sort of citation manager that uses a .bib file as the data format.

Two programs that do just that are JabRef (https://www.jabref.org/) and Emacs’ BibTeX mode (http://www.jonathanleroux.org/bibtex-mode.html). Both are excellent. Which one to use depends on whether you prefer a GUI or the programmability and text interface of Emacs.

Re: BibTeX Tidy

#23
I'm surprised that no one has mentioned bibtool [1], which is part of a standard TeXLive install. bibtool can also reformat BiBTeX entries and automatically generate keys. I also use it to turn URLs containing DOI to pure DOI using the following rule:

    % Turn DOI links into pure DOI.
    rename.field { url=doi if url = "10\.[0-9.]+/[-._;()/:a-zA-Z0-9]+" }
    rewrite.rule { doi # ".*/\(10\.[0-9.]+\/[-._;()/:a-zA-Z0-9]+\)" # "{\1}" }

[1]: https://github.com/ge-ne/bibtool

Re: BibTeX Tidy

#24
post #18

My .bib files are a mess. This is partly because I tried to order the file by year then author (manually), which of course resulted in some errors. And also because I write some free text in between entries which talk about the papers and have some keywords that I'm able to search for entries in. I'd really like some sort of citation manager that uses a .bib file as the data format.

I use KBibTeX.

Re: BibTeX Tidy

#26
I used JabRef[1], Zotero[2], and ConTeXt[3] to create a reasonably consistent bibliography[4]. See the TeX SE post for details[5].

[1]: https://www.jabref.org

[2]: https://www.zotero.org

[3]: https://www.contextgarden.net

[4]: https://impacts.to/bibliography.pdf

[5]: https://tex.stackexchange.com/a/490043/2148

Re: BibTeX Tidy

#27
On a tangential note, this got me really excited that there was a Stefan Sweig book that I hadn't heard of. Alas, it seems as if "the impossible book" is a fiction.

Re: BibTeX Tidy

#28
post #18

My .bib files are a mess. This is partly because I tried to order the file by year then author (manually), which of course resulted in some errors. And also because I write some free text in between entries which talk about the papers and have some keywords that I'm able to search for entries in. I'd really like some sort of citation manager that uses a .bib file as the data format.

I do basically the same. And I wrote some scripts around to auto-fix certain things.

E.g. I can change the bib entry name, put a comment `% alias: old-name` above it, and my auto-fix script will go through my tex files and update them accordingly. This is helpful when I found out later that I had a duplicate entry, or when I just want to rename the bib entry name.

It is sometimes a bit ambiguous when there is an Arxiv version from a different year than the proceedings publication. In that case, I use the proceedings publication, with a reference to Arxiv as well, and I set the year to the proceedings publication.

I have a consistent format for pure Arxiv publications, using misc, and not article as Google Scholar would output it. If I have this inconsistent anywhere, my script would auto-fix this to make it consistent. Or if some entries are missing, it would automatically complete them.

Re: BibTeX Tidy

#29
post #2

I made a really rough script that does a bunch of transformations on bibtex files to have them be ready for use in academic papers: 1. Shorten author lists to 10 authors 2. Abbreviate journal names 3. Remove unneeded IDs and replace with doi links 4. Remove unneeded tags (file, abstract) https://gist.github.com/joebentley/6e3e4198ea427545738a82021...

> Shorten author lists to 10 authors

Normally the Bibtex style would automatically do that for you already, and it is configurable. And it would automatically append "et al" then. The templates of many conferences usually do that for you.

Re: BibTeX Tidy

#30
post #18

My .bib files are a mess. This is partly because I tried to order the file by year then author (manually), which of course resulted in some errors. And also because I write some free text in between entries which talk about the papers and have some keywords that I'm able to search for entries in. I'd really like some sort of citation manager that uses a .bib file as the data format.

https://bibdesk.sourceforge.io/ for Macs uses .bib natively
Post reply on HN