Live data from Hacker News

BibTeX Tidy

flamingtempura.github.io

31–33 of 33 posts

Re: BibTeX Tidy

#31
First I used a VS Code extension for formatting. After getting into my thesis I switched to Zotero[1] to manage my resources. Its extension BetterBibtex[2] can export into a prettyprinted *.bib which refreshes automatically on change. Works on Zoteros subcollections too.

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

[2]: https://retorque.re/zotero-better-bibtex/

Re: BibTeX Tidy

#32
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.

The APS (American Physical Society) Bibtex style does not do this, which is the document class I always use (revtex)

Re: BibTeX Tidy

#33

Does it fix incorrect Unicode chars? I've had a huge problem with that recently when for some reason Kbibtex insisted on converting {\"O} into Ö. I believe Jabref fixed it but I've made very bad experiences with Jabref in the past and would prefer not to use it.

What do you mean? I tried placing Ö and {\"O} in the author's name of the example and tidied it: Click Tidy to clean up the entries below @Book{sweig42, Author = { Stef{\"O}{n} SwÖig }, title = { The impossible book }, publisher = { Dead Poet Society}, year = 1942, month = mar } This is the output: Click Tidy to clean up the entries below @book{sweig42, title = {The impossible book}, author = {Stef{\"O}{n} SwÖig}, ye…

I meant leaving the Ö as is or even introducing it, which is always wrong with Bibtex. I'm not using Zotero but Jabref also fixes it. There was an Ö in an author name and when I manually changed it to {\"O} Kbibtex reverted it back to an Ö! It's easy to fix by switching to XeTeX but some editorial systems don't use it and will make your manuscript fail.

I was just hoping that the tool fixes this problem, too. Maybe in a future version.

Post reply on HN