thchr / DOI2BibTeX.jl

MIT License
20 stars 2 forks source link

Include BibLaTeX? #4

Open kellertuer opened 1 year ago

kellertuer commented 1 year ago

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?

thchr commented 1 year ago

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.

kellertuer commented 1 year ago

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

thchr commented 1 year ago

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.

kellertuer commented 1 year ago

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.