DOI2BibTeX.jl icon indicating copy to clipboard operation
DOI2BibTeX.jl copied to clipboard

Include BibLaTeX?

Open kellertuer opened this issue 2 years ago • 4 comments

Oh, super nice! I had this in mind for a while, but never found the time (currently using an old bash script from a colleague for that).

Just a request – would it be possible to also provide BibLateX entries?

kellertuer avatar Mar 30 '23 16:03 kellertuer

What's the format differences between BibTeX and BibLaTeX? Sorry I'm not familiar with BibLaTeX.

If it's a request type from https://doi.org it should be possible I imagine.

thchr avatar Mar 30 '23 17:03 thchr

It is minor differences as soon as the DOI is given I think (for example there exist @online types. One main difference is the date field (instead of year / month) and journaltitle instead of just journal. Also it has unicode support, that's why I use it. The main things are listed in 2.3 (p. 34) in https://ctan.uib.no/macros/latex/contrib/biblatex/doc/biblatex.pdf I think

kellertuer avatar Mar 30 '23 17:03 kellertuer

Okay, I see: I didn't know the biblatex package also had its own format - I always assumed it just took the ordinary BibTeX format.

Unfortunately, it doesn't look like the crosscite API provides a BibLaTeX-formatted return type, cf. https://citation.crosscite.org/docs.html#sec-4. In principle, we could make a fixed set of replace calls to the entry names, but - same as #3 - it would probably only work well if we include a proper BibTeX parser first.

thchr avatar Mar 30 '23 21:03 thchr

I remember some (probably python) package that could convert the necessary fields, maybe including that (probably again more in a BibTeX package) would be the better idea then, sure.

kellertuer avatar Mar 31 '23 07:03 kellertuer