Show HN: Url2cite: Transparently convert links to citations in markdown papers
phiresky.github.io
phiresky.github.io
> All citation data is cached (permanently) as bibtex as well as CSL to citation-cache.json. This is both to improve performance and to make sure references stay the same forever after the initial fetch, as well as to avoid problems if the API might be down in the future. This also means that errors in the citation data can be fixed manually, although if you find you need to do a lot of manual tweaking you might again be better off with Zotero.
Of course this might not be as comfortable as a GUI editor like Zotero, but I think I still prefer doing some small tweaks to a JSON file vs. the problems I've had in the past with Zotero exporting. The auto-export didn't always work consistently, and Zotero has many features that I don't need at all that make the whole thing more complex and fragile. Even collections are somewhat confusing to work with - I've often added citations to the wrong collection because it always adds to the currently open one, and then had to spend time to find it again. You also can't know which references are actually used and which aren't.
And I pretty much always gave up as soon as someone else needs to work on the same paper, which then leads to managing the .bib file by hand anyways.
[1]: https://github.com/phiresky/pandoc-url2cite/blob/master/exam...
By default it will be stored in the directory from which pandoc is invoked, but you can also change that by setting `url2cite-cache: filename` in the markdown frontmatter or in the pandoc invocation: `pandoc -M url2cite-cache=../bla.json --filter ...`.
Should be: https://raw.githubusercontent.com/phiresky/pandoc-url2cite/m...
[0] https://raw.githubusercontent.com/phiresky/pandoc-url2cite/m...
[1] https://github.com/phiresky/pandoc-url2cite/blob/master/READ...
The relevant code to extract that is a Zotero Translator [1] so that's what would have to be changed for this.
[1]: https://github.com/zotero/translators/blob/master/GitHub.js
An internet archive integration would be nice!
Reverse citation would also be interesting feature to have - on gwern.net, I use https://ricon.dev/ to provide reverse citation links which search on DOI (if specified) or title (if no DOI) of links.