BIB2BIB(1)
π BIB2BIB(1) β the filter era π
okay bestie, welcome to BibX2bib (yes that's the NAME, she's a filter for BibTeX data bases, and she ate) π
this page lives in the General Commands Manual, section 1 β so like, it's a command you just run, no cap.
β¨ SYNOPSIS β¨
bib2bib [options] <filename> ...
that's it. that's the whole vibe. options, then as many filenames as your little heart desires π«Ά
πΈ DESCRIPTION πΈ
so bib2bib is a filter tool, right? she reads one or several bibliography files, filters the entries against a criterion you give her, and then outputs two things:
- the list of selected keys
- a new bibliography file containing only the selected entries
and if you give her no input file at all? no stress β input is taken from the standard input. queen of flexibility honestly π
alsoooo, she can output a file containing all the keys of entries that satisfy the condition. that second file? it's literally built to be fed in as the -citefile option to bibtex2html. match made in heaven fr fr π¦
π OPTIONS π
-obfilename β tells her where to write the selected entries. if you don't say anything, she defaults to standard output. no secrets here π-ocfilename β tells her where to write the list of selected keys. if you don't say anything, this file is not created at all. ghosted π«₯-ccondition β the β¨conditionβ¨ for selecting entries. output keeps only the entries that satisfy it. give her several of these and only entries that satisfy all of the conditions get selected (she's picky, we love that). the syntax of conditions is described in the complete documentation, and heads up: it's better to escape shell expansions in those conditions β in other words, write your conditions between quotes. periodt π-expandβ expands all abbreviations in the output file. β οΈ but notice: there is no way to ask for expansion of cross-references, because the meaning of such an expansion is unclear. better to letbibtex(viabibtex2html) handle the cross-references himself, depending on the style considered. let him cook π₯-sfield β sorts the entries of the bibliography with respect to the given field, which may be$keyor$typeto refer to the key or the entry type, same as for filter conditions. you can use this one several times to specify a lexicographic order β like by year, then by keys. and when the field is$date, entries are sorted chronologically β°- when sorting, the resulting bibliography will always contain the comments first, then the preambles, then the abbreviations, and finally the regular entries. π¨ be warned: such a sort may put cross-references before entries that refer to them, so be cautious. this one's giving chaos energy, stay safe out there π
-rβ reverses the sort π-q,--quietβ be quiet. π€«-w,--warn-errorβ stop at the first warning. dramatic but valid π
π USAGE WITH BIBTEX2HTML π
notice that the two output files are suitable for use with bibtex2html. a typical use would be:
bib2bib -oc citefile -ob bibfile.bib -c condition file1.bib file2.bib ...
bibtex2html -citefile citefile bibfile.bib
which will produce exactly the HTML file for the selected references. iconic behaviour, truly π
and finally (last one i promise), notice that bibtex2html will expand the strings β by default, unless you specify the -noexpand option β but not the cross-references. okay that's the tea β
π AUTHOR π
Bib2bib has been written by Jean-Christophe FilliΓ’tre and Claude MarchΓ©. π«Ά
This manpage has been compiled by Ralf Treinen from the original bib2bib documentation. thank you for your service π
π¦ SEE ALSO π¦
for complete documentation, please check the bibtex2html manual. on a Debian system the manual can be found at /usr/share/doc/bibtex2html β both in the formats postscript and HTML β or via the Debian help system. go read it bestie, i believe in you π
that's the whole page!! now go filter some bibliographies, you absolute main character π
signing off from the General Commands Manual, section 1 β BIB2BIB(1), always and forever πβ¨π
π¦ where this page comes from
- debian bookworm: bibtex2html 1.99-3+b3 Β· GPL-2.0-only
- debian trixie: bibtex2html 1.99-4+b4 Β· GPL-2.0-only
- ubuntu jammy: bibtex2html 1.99-3build1 Β· GPL-2.0-only
- ubuntu noble: bibtex2html 1.99-4 Β· GPL-2.0-only
- ubuntu resolute: bibtex2html 1.99-4build3 Β· GPL-2.0-only
- ubuntu stonking: bibtex2html 1.99-4build4 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms