.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man v6.1.1 (Pod::Simple 3.48) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CR .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "addbibinfo 1" .TH addbibinfo 1 2026-11-30 "" "LATEX CROSSREFWARE" .\" For nroff, turn off justification. Always turn off hyphenation. String .\" and register settings are required by groff 1.23.0 and later. Changing .\" tag separation back to 1n is required by groff 1.24.0 and later. .if n .ds AD l .if n .ad l .nr HY 0 .nh .SH NAME addbibinfo, bibdoiadd, bibmradd, bibzbladd \- add information from public databases to a bib file .SH SYNOPSIS .IX Header "SYNOPSIS" addbibinfo [\-c \fIconfig\fR] [\-d] [\fB\-e\fR 1|0] [\fB\-f\fR] [\fB\-o\fR \fIoutput\fR] [\-t all|mr|doi|zbl] \fIbib_file\fR .PP bibdoiadd [\-c \fIconfig\fR] [\-d] [\fB\-e\fR 1|0] [\fB\-f\fR] [\fB\-o\fR \fIoutput\fR] \fIbib_file\fR .PP bibmradd [\-c \fIconfig\fR] [\-d] [\fB\-e\fR 1|0] [\fB\-f\fR] [\fB\-o\fR \fIoutput\fR] \fIbib_file\fR .PP bibzbladd [\-c \fIconfig\fR] [\-d] [\fB\-e\fR 1|0] [\fB\-f\fR] [\fB\-o\fR \fIoutput\fR] \fIbib_file\fR .SH OPTIONS .IX Header "OPTIONS" .TP 4 \&\fB\-c\fR \fIconfig_file\fR .IX Item "-c config_file" Configuration file. If this file is absent, some defaults are used. See below for its format. .TP 4 \&\fB\-d\fR .IX Item "-d" Debug mode on .TP 4 \&\fB\-e\fR .IX Item "-e" If 1 (default), add an empty field if the information cannot be found. This prevents repeated searches for the same entries if you add new entries to the file. Calling \f(CR\*(C`\-e 0\*(C'\fR suppresses this behavior. .TP 4 \&\fB\-f\fR .IX Item "-f" Force search for information even if present in the file .TP 4 \&\fB\-o\fR \fIoutput\fR .IX Item "-o output" Output file. If this option is not used, the name for the output file is formed by adding \f(CR\*(C`_output\*(C'\fR to the input file .TP 4 \&\fB\-t\fR .IX Item "-t" Type of search: .RS 4 .TP 4 \&\fBall\fR .IX Item "all" Search for all information (default) .TP 4 \&\fBmr\fR .IX Item "mr" Search for MR numbers only .TP 4 \&\fBzbl\fR .IX Item "zbl" Search for ZBL numbers only .TP 4 \&\fBdoi\fR .IX Item "doi" Search for DOI numbers only .RE .RS 4 .RE .SH DESCRIPTION .IX Header "DESCRIPTION" The script reads a BibTeX file, parses it and tried to add from the public databases the following information to each entry: .IP \(bu 4 doi number from http://www.crossref.org .IP \(bu 4 MR number from https://mathscinet.ams.org/batchmrlookup .IP \(bu 4 ZBL number from https://zbmath.org .PP You can tell script to add only the databases you need using \fB\-t\fR option with the list of reqiired databases. If called as \f(CR\*(C`bibdoiadd\*(C'\fR, \&\f(CR\*(C`bibmradd\*(C'\fR, or \f(CR\*(C`bibzbladd\*(C'\fR, the script behaves as called with \f(CR\*(C`\-t doi\*(C'\fR, \f(CR\*(C`\-t mr\*(C'\fR, or \f(CR\*(C`\-t zbl\*(C'\fR option correspondingly. .PP If a bibliographic entry already has the requested field (which could be empty), the script does not search for it unless \fB\-f\fR option is chosen. If the script cannot find the information, it adds an empty field to the entry unless \f(CR\*(C`\-e 0\*(C'\fR option is chosen. .PP The name of the output file is either set by the \fB\-o\fR option or is derived by adding the suffix \f(CR\*(C`_output\*(C'\fR to the output file. .SH "CONFIGURATION FILE" .IX Header "CONFIGURATION FILE" The configuration file relates to the Crossref queries, and is mostly self\-explanatory: it has comments (starting with \f(CR\*(C`#\*(C'\fR) and assginments in the form .PP .Vb 1 \& $field = value ; .Ve .PP Crossref\-related parameters in the hash \f(CR%$crossrefparams\fR. They are \&\f(CR$mode\fR (\f(CR\*(Aqfree\*(Aq\fR or \f(CR\*(Aqpaid\*(Aq\fR), \f(CR$email\fR (for free users) and \&\f(CR$username\fR and \f(CR$password\fR for paid members. .PP Field names can be rededined in this file, see "FIELD NAMES" below. .SH "FIELD NAMES" .IX Header "FIELD NAMES" The names of the fields by default are .TP 4 \&\fBmr\fR .IX Item "mr" mrnumber .TP 4 \&\fBzbl\fR .IX Item "zbl" zblnumber .TP 4 \&\fBdoi\fR .IX Item "doi" doi .PP You can rededine them in the config file redefining the hash \&\f(CR\*(C`%{$fieldnames}\*(C'\fR, for example .PP .Vb 1 \& $fieldnames\->{mr} = {MR}; .Ve .SH EXAMPLES .IX Header "EXAMPLES" .Vb 2 \& addbibionfo \-c addbibionfo.cfg \-t \*(Aqmr doi\*(Aq \-o \- citations.bib > result.bib \& addbibionfo \-o result.bib citations.bib .Ve .SH AUTHOR .IX Header "AUTHOR" Boris Veytsman .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" Copyright (C) 2026 Boris Veytsman .PP This is free software. You may redistribute copies of it under the terms of the GNU General Public License . There is NO WARRANTY, to the extent permitted by law.