summaryrefslogtreecommitdiff
path: root/biblio/bibtex/utils/tex2bib/README
blob: b60ab81e23ba4f2917a18398755ba66a08624362 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
  tex2bib
    Input a TeX document containing \bibitems, translate these
    to BibTeX format
 
  Usage:
 		tex2bib [-k][-i infile] [-o outfile]
 		-k:  regenerate keys
 		if infile not given, reads from stdin
 		if outfile not given, prints to stdout

  The entire tex document is scanned for \bibitems, ending when
  the string '\end{thebibliography}' is read.

  Assumes that bibitems are formatted as follows:
   -- {key}author(s), (date) at the beginning
   -- titles of books or names of journals: {\em title}
   -- article titles: 	after date, `` '' quotes optional
   -- volume, pages: 	{\it vol}, nnn-nnn.
   -- publisher/address:    address:publisher
 
   All text in the bibitem which cannot be parsed is included
   in a note = { } field

  Examples of a book, article, inproceedings:

 \bibitem{Bertin83}Bertin, J. (1983),
         {\em Semiology of Graphics} (trans. W. Berg).  Madison, WI:
         University of Wisconsin Press.
 
 \bibitem{Bickel75}Bickel, P. J., Hammel, J. W. and O'Connell, J. W.
         (1975).
         Sex bias in graduate admissions: data from Berkeley.  {\em
         Science}, {\it 187}, 398-403.
 
 \bibitem{Farebrother87}Farebrother, R. W. (1987),
         ``Mechanical representations of the ${L}_1$ and ${L}_2$ estimation
         problems'', In Y. Dodge (ed.)  {\em Statistical data analysis
         based on the L1 norm and related methods}, Amsterdam:
         North-Holland., 455-464.


  These are output as:

 @Book{  Bertin:83,
     author      = {J. Bertin},
     year        = 1983,
     title       = {Semiology of Graphics},
     publisher   = {University of Wisconsin Press},
     address     = {Madison, WI},
     note        = {(trans. W. Berg).}
 }
 @Article{       Bickel:75,
     author      = {Bickel, P. J. and Hammel, J. W. and O'Connell, J. W.},
     year        = 1975,
     title       = {Sex Bias in Graduate Admissions: Data from Berkeley},
     journal     = {Science},
     volume      = 187,
     pages       = {398-403}
 }
 @InCollection{  Farebrother:87,
     author      = {R. W. Farebrother},
     year        = 1987,
     title       = {Mechanical Representations of the ${L}_1$ and ${L}_2$ Estimation Problems},
     booktitle   = {Statistical Data Analysis Based on the L1 Norm and Related Methods},
     editor      = {Y. Dodge},
     publisher   = {North-Holland},
     address     = {Amsterdam},
     pages       = {455-464}

  Text in a bibitem is removed from the bibitem as it is assigned to
  bibtex fields.  Any text remaining is assigned to a note={  } field
  at the end.  Since the parsing is heuristic, some manual fixup work
  can be expected at the end.