BIBUTILS(1)
π BIBUTILS(1) β User Commands π
okay bestie, welcome to the bibutils manual page π (that's the manual name, in case the header wasn't giving it away). Buckle up, we're doing bibliography conversions and honestly? it's giving main character energy.
β¨ NAME β¨
bibutils β bibliography conversion utilities π¦
β¨ SYNOPSIS β¨
format2xml [OPTIONS] [file.format]
xml2format [OPTIONS] [file.xml]
β¨ DESCRIPTION β¨
The bibutils program set inter-converts between various bibliography formats using Library of Congress [1]'s Metadata Object Description Schema (MODS) [2] version 3.1. πΈ
So like, for example? You can convert RIS-format files to Bibtex by doing two transformations: RIS->MODS->Bibtex. Two-step glow-up, no cap. π
π CONVERTING TO MODS π
π Overview π
Every one of these little icons takes your format and turns it into MODS:
bib2xmlβ convert bibtex to MODSbiblatex2xmlβ convert biblatex to MODScopac2xmlβ convert COPAC [3] format references to MODSebi2xmlβ convert EBI XML to MODSend2xmlβ convert EndNote (Refer format) to MODSendx2xmlβ convert EndNote XML to MODSisi2xmlβ convert ISI web of science to MODSmed2xmlβ convert Pubmed XML references to MODSnbib2xmlβ convert Pubmed nbib format references to MODSmodscleanβ a MODS to MODS converterris2xmlβ convert RIS format to MODSwordbib2xmlβ convert Word2007 bibliography XML to MODS
π Common Options Converting to MODS π
Several flags available for the end2xml, endx2xml, bib2xml, ris2xml, med2xml, and copac2xml programs. Most options have both a short and a long version, because we love options around here. π
-h,--helpβ display help-v,--versionβ display version-a,--add-refcountβ add"_#", where#is reference count to reference id-s,--single-refperfileβ put one reference per file name by the reference number-i,--input-encodingβ interpret the input file as using the requested character set (use w/o argument for current list derived from character sets at www.kostis.net [4]) unicode is now a character set option-u,--unicode-charactersβ encode unicode characters directly in the file rather than as XML entities-un,--unicode-no-bomβ as-u, but don't include a byte order mark-x,--xml-entitiesβ encode unicode characters as XML entities (opposite of-u)-nl,--no-latexβ do not convert latex-style character combinations-s,--single-refperfileβ one reference per output file-d,--drop-keyβ don't put citation key in the mods id field-c,--corporation-fileβ with argument specifying a file containing a list of corporation names to be placed in<name type="corporate"></name>instead oftype="personal"and eliminate name mangling-a,--asisβ with argument specifying a file containing a list of names to be treated verbatim-nt,--nosplit-titleβ don't split titles into TITLE/SUBTITLE pairs--verboseβ verbose output--debugβ very verbose output (mostly for debugging)
yes,-sand-aeach show up twice up there. that's not me being messy, that's literally what the page says. π
πΈ bib2xml πΈ
bib2xml converts a bibtex-formatted reference file to an XML-intermediate bibliography file. Specify file(s) to be converted on the command line. Files containing bibtex substitutions strings should be specified before the files where substitutions are specified (or in the same file before their use). If no files are specified, then bibtex information will be read from standard input. π«Ά
bib2xml bibtex_file.bib > output_file.xml
πΈ biblatex2xml πΈ
biblatex2xml converts a biblatex (not to be confused with bibtex π) formatted reference file to an MODS XML-intermediate bibliography file.
biblatex2xml biblatex_file.bib > outputfile.xml
πΈ copac2xml πΈ
copac2xml converts a COPAC formatted reference file to a MODS XML-intermediate bibliography file.
πΈ end2xml πΈ
end2xml converts a text endnote-formatted reference file to an XML-intermediate bibliography file. This program will not work on the binary library; the file needs to be exported first. π Endnote tagged formats ("Refer" format export) look like Example 1, "Example refer format file". There are very nice instructions for making sure that you are properly exporting this at http://www.sonnysoftware.com/endnoteimport.html [5]
Usage for end2xml is the same as bib2xml.
end2xml endnote_file.end > output_file.xml
πΈ ebi2xml πΈ
ebi2xml converts a EBI XML file to a MODS XML-intermediate bibliography file.
πΈ endx2xml πΈ
endx2xml converts a EndNote-XML exported reference file to a MODS XML-intermediate bibliography file. This program will not work on the binary library; the file needs to be exported first.
πΈ isi2xml πΈ
isi2xml converts an ISI-web-of-science-formatted reference file to an XML-intermediate bibliography file.
Usage for isi2xml is the same as bib2xml.
isi2xml input_file.isi > output_file.xml
πΈ ris2xml πΈ
ris2xml converts a RIS-formatted reference file to an XML-intermediate bibliography file. ris2xml usage is as end2xml and bib2xml
ris2xml ris_file.ris > output_file.xml
πΈ wordbib2xml πΈ
wordbib2xml convert a Word2007-formatted reference file to an XML-intermediate bibliogrpahy file. β¨
π CONVERTING FROM MODS π
π Overview π
Going the other way now, bestie β MODS back out into the wild:
xml2adsβ convert MODS into the SAO/NASA ADS formatxml2bibβ convert MODS into bibtexxml2endβ convert MODS into format for EndNotexml2isiβ convert MODS to ISI formatxml2risβ convert MODS into RIS formatxml2wordbibβ convert MODS into Word 2007 bibliography format
π Common Options Converting from MODS π
Note that --output-encoding refers to the input file. (yes, really. iykyk π)
-h,--helpβ display help-v,--versionβ display version-o,--output-encodingβ interpret the input file as using the requested character set (use w/o argument for current list derived from character sets at www.kostis.net [4]) unicode is now a character set option-s,--single-refperfileβ put one reference per file name by the reference number-nb,--no-bomβ do not write Byte Order Mark if writing UTF8
πΈ xml2bib πΈ
xml2bib converts the MODS XML bibliography into a bibtex-formatted reference file. xml2bib usage is as for other tools
xml2bib xml_file.xml > output_file.bib
Since the BibTeX reference format is fairly flexible and seems to have the greatest number of personal preferences, it has also accumulated a number of specific options that are not available for other formats. π
Starting with 3.24, xml2bib output uses lowercase tags and mixed case reference types for better interaction with other software. The older behavior with all uppercase tags/reference types can still be generated using the command-line switch -U/--uppercase.
xml2bib-specific Options:
-fc,--finalcommaβ add final comma in the bibtex output for those that want it-sd,--singledashβ use one dash instead of two (longer dash in latex) between numbers in page output-b,--bracketsβ use brackets instead of quotation marks around field data-w,--whitespaceβ add beautifying whitespace to output-U,--uppercaseβ use all uppercase for tags (field names) and reference types (pre-3.24behavior)-sk,--strictkeyβ only use alphanumeric characters for bibtex citation keys
πΈ xml2ads πΈ
xml2ads converts the MODS XML bibliography to the Smithsonian Astrophysical Observatory (SAO)/National Aeronautics and Space Administration (NASA) Astrophyics Data System or ADS reference format [6] (which is very similar to the tagged Endnote style). xml2ads usage is as for other tools
xml2ads xml_file.xml > output_file.ads
πΈ xml2ris πΈ
xml2ris converts the MODS XML bibliography to RIS-formatted bibliography file. xml2ris usage is as for other tools
xml2ris xml_file.xml > output_file.ris
πΈ xml2end πΈ
xml2end converts the MODS XML bibliography to tagged Endnote (refer-format) bibliography file. xml2end usage is as for other tools
xml2end xml_file.xml > output_file.end
πΈ xml2wordbib πΈ
xml2wordbib converts the MODS XML bibliography to Word 2007-formatted XML bibliography file. xml2wordbib usage is as for other tools
xml2wordbib xml_file.xml > output_file.word.xml
xml2wordbib was called xml2word in versions of bibutils prior to 3.40. It was renamed to avoid confusion with other tools. Hopefully this will not break too many scripts already in use. π¬
πΈ EXAMPLES πΈ
okay bestie, this is the part where it all comes together, the moment we've been building to π. These are the receipts, the actual real-life examples of what these conversions look like. Grab a snack, we're going through all of them.
π Example 1. Example refer format file
%0 Journal Article
%A C. D. Putnam
%A C. S. Pikaard
%D 1992
%T Cooperative binding of the Xenopus RNA polymerase I
transcription factor xUBF to repetitive ribosomal gene enhancers
%J Mol Cell Biol
%V 12
%P 4970-4980
%F Putnam1992
so that's the little refer-format cutie right there, %0 through %F, serving the whole look π
.
β¨ xml2bib Output Variations β¨
now THIS is the glow-up section, where we see how all the different options change the output. Same input, seven different lewks π. Obsessed.
π¦ Example 2. Default
@Article{Putnam1992,
author="C. D. Putnam
and C. S. Pikaard",
year="1992",
month="Nov",
title="Cooperative binding of the
Xenopus RNA polymerase I transcription
factor xUBF to repetitive ribosomal
gene enhancers",
journal="Mol Cell Biol",
volume="12",
pages="4970--4980",
number="11"}
the plain default, no notes, no drama, just vibing β¨.
π Example 3. Final Comma
@Article{Putnam1992,
author="C. D. Putnam
and C. S. Pikaard",
year="1992",
month="Nov",
title="Cooperative binding of the
Xenopus RNA polymerase I transcription
factor xUBF to repetitive ribosomal
gene enhancers",
journal="Mol Cell Biol",
volume="12",
pages="4970--4980",
number="11",}
see that lil comma before the closing brace? that's the -c energy, a little extra garnish π.
π Example 4. Single Dash
@Article{Putnam1992,
author="C. D. Putnam
and C. S. Pikaard",
year="1992",
month="Nov",
title="Cooperative binding of the
Xenopus RNA polymerase I transcription
factor xUBF to repetitive ribosomal
gene enhancers",
journal="Mol Cell Biol",
volume="12",
pages="4970-4980",
number="11"}
spot the difference bestie: pages="4970-4980" with ONE dash, not the double -- π₯.
π Example 5. Whitespace
@Article{Putnam1992,
author = "C. D. Putnam
and C. S. Pikaard",
year = "1992",
month = "Jan",
title = "Cooperative binding of
the Xenopus RNA polymerase I transcription
factor xUBF to repetitive ribosomal gene
enhancers",
journal = "Mol Cell Biol",
volume = "12",
pages = "4970--4980"
}
the pretty-printer mode, all spaced out and aligned, plus note the month = "Jan" β yeah, different month here, just go with it π. Also pages has no trailing comma here, slay.
π§ Example 6. Brackets
@Article{Putnam1992,
author={Putnam, C. D.
and Pikaard, C. S.},
title={Cooperative binding of the Xenopus
RNA polymerase I transcription factor xUBF
to repetitive ribosomal gene enhancers},
journal={Mol Cell Biol},
year={1992},
month={Nov},
volume={12},
number={11},
pages={4970--4980}
}
brackets instead of quotes, and the names flipped to Putnam, C. D. format, main character energy π.
β Example 7. Uppercase
@ARTICLE{Putnam1992,
AUTHOR="Putnam, C. D.
and Pikaard, C. S.",
TITLE="Cooperative binding of the Xenopus
RNA polymerase I transcription factor xUBF
to repetitive ribosomal gene enhancers",
JOURNAL="Mol Cell Biol",
YEAR="1992",
MONTH="Nov",
VOLUME="12",
NUMBER="11",
PAGES="4970--4980"
}
ALL CAPS MODE, and again the flipped name order and the Nov month. It's giving loud and proud π£.
π LICENSE π
okay so legal time, but make it cute β¨:
every single version of bibutils is released under the GNU General Public License (GPL). tl;dr bestie: feel free to download, run, and modify these programs as required π . But if you re-release these, you need to release the modified version of the source. Periodt. (And Chris would appreciate patches as well...if you care enough to make the change, then he'd like to see what you're adding or fixing π«Ά.)
Chris Putnam, Ludwig Institute for Cancer Research[7]
π COPYRIGHT π
Copyright Β© 2021 David Bremner (Manual)
Copyright Β© 2021 Christopher Putnam (Software and Manual)
This manual page is distributed under the terms of version 2 of the GNU General Public License.
π NOTES π
the footnotes, the little linkies, the receipts π:
- Library of Congress http://www.loc.gov
- Metadata Object Description Schema (MODS) http://www.loc.gov/standards/mods/
- COPAC http://copac.ac.uk/
- www.kostis.net http://www.kostis.net/
- http://www.sonnysoftware.com/endnoteimport.html http://www.sonnysoftware.com/endnoteimport.html
- ADS reference format http://doc.adsabs.harvard.edu/abs_doc/help_pages/taggedformat.html
- Chris Putnam, Ludwig Institute for Cancer Research http://www.sourceforge.net/p/bibutils/home/Bibutils
and that's a wrap, bestie πβ¨ this whole lil guide is bibutils 7.2, dated November 8, 2016, and it's BIBUTILS(1) β go forth and convert your citations, you absolute icon ππ¦
π¦ where this page comes from
- epel 9: bibutils 7.2-1.el9 Β· GPLv2
- fedora 43: bibutils 7.2-11.fc43 Β· GPL-2.0-only
- fedora 44: bibutils 7.2-13.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms