BibTeX Tidy
flamingtempura.github.io
flamingtempura.github.io
What I do end up using a lot however is nschloe's betterbib [1].
% 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/bibtoolI'd really like some sort of citation manager that uses a .bib file as the data format.
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.
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},
year = 1942,
month = mar,
publisher = {Dead Poet Society}
}
And \"O should be Ö, so I guess I do not really understand what is "incorrect" in your use case.I know that the Zoteroplugin BetterBibTeX converts Ö to {\"O} when exporting as BibTeX, but keeps it as Ö when exporting as BibLaTeX – maybe Kbibtex has similar options?
edit: It actually "fixes" Ö to {\"O} if you tick "Escape special characters" or supply the command line argument `--escape`, which should be the default according to GitHub.
I was just hoping that the tool fixes this problem, too. Maybe in a future version.
[3]: https://www.contextgarden.net
It also detects repetitions and some basic English language stuff if I recall correctly.
I've used it for my PhD manuscript, it's quite useful.
There’s also a set of style linting scripts by Matt Might [0] that I’ve found really helpful in my writing. There’s an emacs minor mode built around them too, writegood-mode [1]
0: https://matt.might.net/articles/shell-scripts-for-passive-vo...
In Matt Might's recommended reading section for that tool he points out Style: The Basics of Clarity and Grace by Joseph Williams, and reading that book and really learning a lot of things it shows will be much more helpful overall for your writing. Its use of contrasting examples is very effective. For instance, it shows how the passive voice can be a very powerful tool for controlling the flow of topics and ideas and actions in a sentence or paragraph. Through the passive voice you can improve the clarity and coherence of a piece of prose. As Matt Might says, it's about making it a conscious decision rather than to enforce all controlling rules.
I use a lot of hedging/weasel words in my first drafts so I find it helpful to have those highlighted for reconsideration
Relatedly, here are a couple of tools to ensure that references are complete (e.g. updating arXiv papers to their published versions, mostly for computer science papers):
- https://github.com/yuchenlin/rebiber (CLI, web interface)
- https://www.cl.cam.ac.uk/~ga384/bibfix.html (only *ACL papers, web interface with diff, disclaimer: mine)
https://github.com/tpapastylianou/A-tidy-LaTeX-project-templ...
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...
This was exactly what I was going to suggest, it would be a great addition! And if someone from Overleaf is listening... ;)
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.