diff options
| author | Douglas B. Rumbaugh <doug@douglasrumbaugh.com> | 2026-06-06 12:17:21 -0400 |
|---|---|---|
| committer | Douglas B. Rumbaugh <doug@douglasrumbaugh.com> | 2026-06-06 12:17:21 -0400 |
| commit | 4aec9800fca665713b0eba19f10af927b483332e (patch) | |
| tree | 65d1b6cc83f34e9343c058e36bfe10474ff3d5ee /man/bib-key.1 | |
| parent | eabf1f6d74dac497ce31e3e2f441cfa25e9f74f2 (diff) | |
| download | bibutils-4aec9800fca665713b0eba19f10af927b483332e.tar.gz | |
Documentation
Diffstat (limited to 'man/bib-key.1')
| -rw-r--r-- | man/bib-key.1 | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/man/bib-key.1 b/man/bib-key.1 new file mode 100644 index 0000000..84fad10 --- /dev/null +++ b/man/bib-key.1 @@ -0,0 +1,39 @@ +.TH BIB-KEY 1 "June 2026" "bibutils" "User Commands" +.SH NAME +bib-key \- generate citation keys for bibtex entries +.SH SYNOPSIS +.B bib-key +.RI [ file " ...]" +.SH DESCRIPTION +.B bib-key +reads bibtex entries from the named files (or standard input) and +emits them on standard output, in canonical form, with automatically +generated citation keys replacing the existing ones. +.PP +Keys have the form +.IR surname year word , +for example +.BR knuth1984literate : +the lowercased surname of the first author (or editor, if there is no +author), the four-digit year, and the first word of the title that is +not a common stopword. +When two entries produce the same key, subsequent ones are +disambiguated with +.BR b , +.BR c , +\&... suffixes. +.SH EXIT STATUS +0 on success. +.SH ENVIRONMENT +.TP +.B BIBUTILS_LIB +Directory holding the shared awk library, overriding the default +search (lib/ next to the script, then /usr/local/share/bibutils). +.SH EXAMPLES +.nf +bib-fetch -d 10.1093/comjnl/27.2.97 | bib-key +.fi +.SH SEE ALSO +.BR bib-add (1), +.BR bib-gen (1), +.BR bib-util (1) |