1bbl2bib(1)                     CROSSREF LIBRARY                     bbl2bib(1)
2
3
4

NAME

6       bbl2bib.pl - convert thebibliography environment to a bib file
7

SYNOPSIS

9       bbl2bib.pl [-d] [-u] [-o output] file
10

OPTIONS

12       [-d]
13           Send debugging output to stdout
14
15       -o output
16           Output file.  If this option is not used, the name for the output
17           file is formed by changing the extension to ".bib"
18
19       -u  Do not clean URL fields.
20
21           Normally "bbl2bib" recognizes URL fields of the kind
22           "http://dx.doi.org" and their variants and converts them to DOI
23           fields (see also biburl2doi(1) script).  The switch -u suppresses
24           this cleanup.
25

DESCRIPTION

27       The script tries to reconstruct a "bib" file from the corresponding
28       "thebibliography" environment.  One can argue that this operation is
29       akin to reconstructing a cow from the steak.  The way the script does
30       it is searching for the entry in the MR database, and creating the
31       corresponding BibTeX fields.
32
33       The script reads a TeX or Bbl file and extracts from it the
34       "thebibliography" environment.  For each bibitem it creates a plain
35       text bibliography entry, and then  tries to match it in the database.
36

INPUT FILE

38       We assume some structure of the input file:
39
40       1.  The bibliography is contained between the lines
41
42              \begin{thebibliography}...
43
44           and
45
46              \end{thebibliography}
47
48       2.  Each bibliography item starts from the line
49
50              \bibitem[...]{....}
51

EXAMPLES

53          bbl2bib  -o - file.tex > result.bib
54          bbl2bib  -o result.bib file.bbl
55          bbl2bib  file.tex
56

AUTHOR

58       Boris Veytsman
59
61       Copyright (C) 2014-2017  Boris Veytsman
62
63       This is free software.  You may redistribute copies of it under the
64       terms of the GNU General Public License
65       <http://www.gnu.org/licenses/gpl.html>.  There is NO WARRANTY, to the
66       extent permitted by law.
67
68
69
70                                  2018-04-29                        bbl2bib(1)
Impressum