[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guix show --bibtex (was: How to compute SWHID? (with Guix/Disarchive
From: |
Liliana Marie Prikler |
Subject: |
Re: guix show --bibtex (was: How to compute SWHID? (with Guix/Disarchive)) |
Date: |
Tue, 07 Dec 2021 19:20:15 +0100 |
User-agent: |
Evolution 3.34.2 |
Hi,
Am Dienstag, den 07.12.2021, 18:39 +0100 schrieb zimoun:
> --8<---------------cut here---------------start------------->8---
> $ cat bibtex.tmpl
> @example{ {{name}}@{{version}},
> title = {{name}},
> url = {{home-page}},
You typo'd on homepage here, the dash is superfluous.
> license = {{license}},
> abstract = {{synopsis}},
> swhid = {swh:1:...},
> repository = "WE HAVE THAT INFO",
I too don't like that origin information is missing from `guix show'.
Can we fix that somehow?
> author = "?????",
We don't capture that in Guix, you'd have to look elsewhere IIUC.
> date = "?????",
January 1st, 1970, what else?
> }
>
> [...]
> --8<---------------cut here---------------end--------------->8---
I think there are a few things that'd need fixing in recutils itself.
1a. There needs to be a way of escaping {} in templates -- or at least
I haven't found one.
1b. A rec2bib command would be nice, as would be bib2rec.
2. Looking at the output, a rec2rec command would also be nice, i.e.
one that could rename fields. Though that one would probably be easier
to implement in terms of recfmt.
> 1. SWHID is not computed by "guix show".
Is that a Guix concern, though? We also don't have author and date, so
you'd have to shell out either way.
> 2. recutils is not installed by default, IIRC.
I don't think that's too hard if you use guix shell (or environment)
inside your scientific workflow -- just add recutils to emacs-citar and
whatever else you only need for scientific writing :)
> As much fields as possible. As the example above more or
> less. Well, use bibtex-software as decribe here:
>
> https://mirrors.chevalier.io/CTAN/macros/latex/contrib/biblatex-contrib/biblatex-software/software-biblatex.pdf
Uhm, what exactly should I extract from this manual?
Cheers,
Liliana