Debian Codegraph @

texmf-dist/doc/latex/custom-bib/readme.mkb

raw
1 CUSTOM-BIB Package
2
3 **** INFO ******
4 (Work on version 4.x has been supported by the American Physical Society)
5
6 Current version is 4.33
7 *****************
8 See list of changes below
9 *****************
10
11 This is the custom-bib package for generating customized BibTeX bibliography
12 styles from a generic file by means of the docstrip program that is part of
13 the LaTeX2e installation.
14
15 ****************************************************************************
16
17 To use/install the package:
18
19 0. (optional, for hackers) LaTeX makebst.dtx to get the documentation;
20 This also extracts makebst.ins from makebst.dtx, if it does not already
21 exist.
22 1. Run TeX (or LaTeX) on makebst.ins (--> makebst.tex)
23 2. Run TeX (or LaTeX) on makebst.tex to start customizing
24 your own .bst file. Select merlin as the master file (default) when
25 asked. (I have other master files for my own purposes.)
26 3. Answer the questions that then arise; for merlin, you will also be asked
27 which language support file you want (default is merlin itself, meaning
28 English or the pseudo-language Babel). You will also be asked if you want
29 to add a file defining short-hand designations for various journals; such
30 files are included (physjour.mbs, geojour.mbs, photjour.mbs) for physics
31 geophysics, and optics journals, but you could create your own.
32 4. The menus that appear may not be informative enough for you. More
33 information can be obtained by reading the documentation (on the options)
34 contained in the .mbs files themselves. This documentation can be printed
35 out by running LaTeX on the .mbs files.
36 5. The makebst program only produces a docstrip batch job to generate the .bst
37 file. The last question it asks is whether that job should be run right
38 away. You can always run it again yourself by running TeX or LaTeX on
39 this .dbj file. (The .dbj file can also be manually edited if you want to
40 play around with the various options it includes.)
41
42 ****************************************************************************
43
44 The package contains the following files:
45 merlin.mbs -- A master BibTeX style file for producing customized
46 styles (numerical or author-year) with docstrip. It is
47 self-documenting: simply latex it to produce its
48 description.
49
50 english.mbs -- A sample language support file for English, to act as a
51 model for hacking others.
52
53 catalan.mbs -- A language support file for Catalan
54 dansk.mbs -- A language support file for Danish
55 dutch.mbs -- A language support file for Dutch
56 esperant.mbs -- A language support file for Esperanto
57 finnish.mbs -- A language support file for Finnish
58 french.mbs -- A language support file for French
59 german.mbs -- A language support file for German
60 italian.mbs -- A language support file for Italian
61 norsk.mbs -- A language support file for Norwegian
62 polski.mbs -- A language support file for Polish
63 portuges.mbs -- A language support file for Portuguese
64 slovene.mbs -- A language support file for Slovene
65 spanish.mbs -- A language support file for Spanish
66 svenska.mbs -- A language support file for Swedish
67 (Further contributions and corrections are welcome)
68
69 physjour.mbs -- A support file to add the names of common Physics journals
70 in shorthand form, for example `pr' for Physical Review, or
71 Phys. Rev., depending on whether abbreviations are chosen.
72
73 photjour.mbs -- A contributed file containing names of optics journals
74
75 geojour.mbs -- A contributed file containing names of geophysics journals
76 suppjour.mbs -- A contributed file containing further journal names
77
78 (Contributions for other fields are welcome)
79
80 shorthnd.ins -- (La)TeX this file to obtain shorthnd.tex, which when
81 LaTeX'ed lists all the shorthands and journal names
82
83 The .mbs files can only be used effectively with the makebst `program', which
84 is included in documented source form.
85
86 makebst.dtx -- the documented source file; LaTeXing this file produces
87 the manual and optionally a documentation of the coding.
88 Requires ltxdoc class from the LaTeX2e distribution.
89
90 This is version 4.0; necessary with merlin 4.00, but
91 works with older versions of merlin.
92
93 makebst.ins -- a docstrip batch job to extract from makebst.dtx the
94 program file makebst.tex. (This file is actually included
95 within makebst.dtx; it is extracted when the .dtx file is
96 processed under LaTeX2e.)
97
98 ****************************************************************************
99
100 HISTORY AND DEVELOPMENT:-
101 Many authors are frustrated at the wide range of bibliographic styles demanded
102 by journals and publishers, and at the limited number available with standard
103 LaTeX and BibTeX. This is not the fault of the latter, but rather of the lack
104 of any bibliographic standards in the English language. Often the differences
105 are so trivial (comma or colon, date in brackets or parentheses). The normal
106 user does not want to tackle the task of making up his own .bst file (no
107 normal human would!)
108
109 For this reason, I set out to produce a generic .bst file that could have
110 features and options selected by means of the docstrip program.
111 I found over 50 different *.bst files and compared their outputs just for
112 article: they were all different. They served as part of my input as to which
113 features were needed. I knew of a few extra that were not covered by these 50.
114
115 I also discovered XBTXBST.DOC, a minor modification of Patashnik's BTXBST.DOC,
116 as well as a file PHYSICS.BST, all of which are meant to do precisely what I
117 had set up to accomplish. However, they make use of the C Preprocessor
118 language. It is really a simple matter to convert the preprocessor commands
119 into docstrip equivalents.
120
121 Nevertheless, none of these really met all of my needs, so I continued to
122 develop GENBST.mbs (GENeric-BibST.MasterBibSt). It soon became obvious that the
123 sheer number of options necessary made any kind of customizing a difficult
124 chore. Hence, the next step: the program MAKEBST takes menu information from
125 the selected .mbs file and presents the user with descriptive choices as
126 menus. From the answers, it writes a docstrip batch job (extension .dbj) which
127 when TeX'ed, creates the desired .bst file out of the .mbs one. The .dbj file
128 may even be hand edited if one wants to alter only one or two options.
129
130 Since I first released this system in November 1993, I have received many
131 suggestions and requests for additions. I have tried to incorporate as many as
132 possible, but often the task is too complicated and I have to leave them out.
133
134 The second version of GENBST.mbs allowed other languages to be used. However,
135 since the method had considerable overhead per language, I was unsatified with
136 it. A parallel version called BABEL.mbs (which was really GENBST.mbs version
137 2) has been available for some time, supporting English, French, German, and
138 Esperanto, as well as a generic language called Babel.
139
140 I then modified MAKEBST to allow more than one .mbs file to be used as
141 input for any given .bst output. This means that the language support can be
142 contained in separate files, one per language, and does not need to burden the
143 main file. The next issue of this main file, version 3, was renamed
144 MERLIN.mbs, to emphasize its magical powers.
145
146 Version 3 continued to grow as more suggestions and requests were
147 contributed. Further language files were offered to me, as well as lists of
148 prerecorded journal names. The number of options had grown to roughly 200,
149 including the defaults.
150
151 The American Physical Society then decided it would like a number of new
152 features for its REVTeX package, mainly to support electronic publishing.
153 David Carlisle, Mark Doyle, and Arthur Ogawa made up a variant on merlin.mbs
154 for this purpose, which I then integrated into the "official" one. Thus was
155 born version 4.00 of MERLIN.mbs.
156
157 NOTE ON AUTHOR-YEAR CITATIONS:-
158 Author-year style citations are not supported by standard LaTeX and BibTeX.
159 However, there exist a large number of bib styles for this, all of which need
160 some interface package to run properly. There are (at least) 7 different such
161 interfaces, including the one I invented for the NATBIB package. If one
162 selects author-year style, then one is asked which interface is to be
163 used. (Incidentally NATBIB is capable of interpreting all of them.)
164
165 LIST OF ALL OPTIONS IN THE DBJ FILE
166 The makebst program writes to the .dbj file all the docstrip options that were
167 offered in the interactive session with the unselected ones commented out.
168 This makes editing afterwards much easier. Often one wants to experiment with
169 some of these options, but only wants to run the makebst program once.
170
171 This feature (suggested by Frank Mittelbach) is available when the
172 makebst.tex file is extracted from makebst.dtx with the `optlist' option;
173 without it, only the selected options are listed in the .dbj file.
174 Edit the makebst.ins file accordingly; by default, this feature is included.
175
176 With version 4, one may select a verbose listing during run time, writing
177 more details into the .dbj file, including all possible options, even those
178 not offered.
179
180 ALLOW MULTIPLE INPUT .MBS FILES
181 The .dbj file is so constructed that more than one input .mbs file may be
182 read for a single output .bst file. The main .mbs file must have its menu
183 coding arranged to take advantage of this, something that merlin.mbs does.
184 (The older genbst.mbs and babel.mbs did not have this feature.)
185
186 NEW FEATURES OF MERLIN.MBS since genbst.mbs 1.7 and babel 2.5
187 Names formatting: can also have reversed full names, as Smith, John George
188 (previously reversed names could only be initials)
189 John George Smith
190 Smith, John George (v3.1)
191 J. G. Smith
192 Smith, J. G.
193 (AGU style: first name reversed, rest normal, all with initials)
194 (AGU style but with full names, not initials) (v3.82)
195 Smith, J G
196 Smith, JG (v3.1)
197 Smith J G (v3.2)
198
199 Editors' names (in collections) for surname-first styles, may now be formatted
200 exactly as the authors'. (Previously these would never be reversed.)
201
202 Also possible to have
203 In: B. G. Jones, editor, Booktitle [default]
204 In: B. G. Jones, (editor), Booktitle
205 In: B. G. Jones, (editor) Booktitle
206 In: B. G. Jones (editor) Booktitle
207 In: Booktitle, edited by B. G. Jones
208 In: Booktitle (edited by B. G. Jones)
209 In: Booktitle, (edited by B. G. Jones)
210 In: Booktitle, editor B. G. Jones
211 In: Booktitle, (editor) B. G. Jones
212 In: Booktitle (editor B. G. Jones)
213 In: Booktitle, (editor B. G. Jones)
214 In: Booktitle, B. G. Jones, editor
215 In: Booktitle (B. G. Jones, editor)
216
217 ISBN and ISSN numbers can optionally be included, if present in database
218
219 Volume, number has more possibilities: for volume=34, number=2:
220 34(2) 34 (2) 34, 2 34, no. 2 34, #2 34 34(1997)
221 (Last example: the year in parentheses in place of the number)
222
223 The following page number can be separated by colon, colon space,
224 semi-colon and space, comma and space, or space only
225
226 Or even vol. 34 (1994) 2, pp. 234-254 (v3.81)
227
228 Date: year coming just after authors may have colon and space following
229 date may appear as `1994 Jul', with or without a dot (v3.2)
230 date may be part of journal specification, something that is common
231 in medical journals (v3.2)
232
233 Journal names: the periods in abbreviations may be removed, so Phys. Rev.
234 becomes Phys Rev (no change to database necessary)
235
236 Author names in citations and list of references may be independently set
237 in italic, small caps, or bold. Optionally, first names can be in a
238 different font from the surnames.
239
240 The mininum number of authors' names before et al. has been raised from
241 6 to 99 (v3.87)
242
243 The page numbers in edited works can have `pages' or `pp' suppressed (v3.2)
244
245 It is possible to have the names sorted by ignoring the `von' part, so that
246 della Robbia comes after Rabin (v3.2)
247
248 Publisher's address may come before name, as New York: New Press
249 (required by some psychology journals) (v3.3)
250
251 Publisher's address may come before the chapter/page information (v3.81)
252
253 Number/series can come just before publisher/organization (v3.88)
254
255 URL support for online documents (v3.97)
256
257 HTML output added, experimental (v3.88)
258
259 Refinements added to version 3.3:
260 - the extra labels added to years (as 1995a) are grouped in braces
261 to avoid some problems with natbib when this extra label is more than
262 one letter
263
264 - when full author lists may be optional (for harvard and natbib formats)
265 they are no longer included if they are identical to the short
266 author list
267
268 Refinements added to version 3.4:
269 - journals can have date between volume and pages, as
270 J. Geophys. Res. {\bf 34} (1994) 333-338
271 - author block can be terminated with colon
272 - if cited authors are in bold, italic, or small caps, then the word
273 `and' can be in the regular text font, not in the author font.
274
275 Refinements added to version 3.5:
276 - Technical Reports can have titles treated like books (default=article)
277 - can sort by year then authors
278 - can include more than one file with prestored journal names
279 - bug fixed for limited number of authors: sort only on those present
280 - the `named' format for \bibitem now included.
281
282 Refinements added to version 3.6:
283 - blocks can be separated by colons as well as commas or periods
284 - name of journal can be in normal font, not only italic
285 - pages in books may be in parentheses
286 - can have `number' as part of page specification: 34, (2)234-(2)254
287 - date may be bold
288 - if authors in list have special font, then `and' and/or `et al.'
289 may be normal font
290
291 Refinements added to version 3.7:
292 - an option to allow authors to be separated by semi-colons instead of
293 by commas
294 - fix bug in the option that removes periods from journal names when
295 italicized
296
297 Refinements added to version 3.8:
298 - fix a bug with titles in quotes
299 - an option allows ALPHA style citations, of the form ABD90. This
300 is essentially a numerical system with some text replacing the number.
301 - publishers and address can appear in parentheses
302 - punctuation between `blocks' can be suppressed, space only
303 - ordering reference list by year is possible for author-year as well as
304 numerical modes
305 - can put date between volume and number
306 - can add `pages' or `pp' to articles
307 - cited names in a special font can have the `and' in regular font:
308 previously this meant \rm, but now, with NFSS, only the one attribute is
309 reset; thus \textbf{\cite{james93}} yields
310 \textbf{\textsc{James {\upshape and} Johns}, [1993]}
311 so that `and' will be bold non-sc. (Actually, bold small caps does not
312 exist in the CM fonts, so a substitution will be made.)
313
314 Refinements added to version 3.81:
315 - when used with natbib 6.3, the extra letters added to the dates in
316 author-year citations (Jones et al, 1994a) are suppressed in the reference
317 list when numerical citations are used instead. These letters are
318 superfluous in this case and so should not be present.
319 - For incollections, the word `in' can be left off.
320 - Publisher can be placed before chapter/page information
321 - dates can be followed by periods even when block punctuation is comma
322
323 - The .mbs files with prestored journal names have been rationalized, to
324 remove duplications (or shorthands) and to organize the journal types
325 better. Some journals were present several times under different
326 shorthands (Phys. Rev. is both pr and physrev); these multiple shorthands
327 have been retained for consistency. Duplications of journal AND shorthand
328 have been removed. One shorthand clash: jas was both Journal of Applied
329 Spectroscopy and Journal of the Atmospheric Sciences; the former has been
330 altered to jasp.
331 - A file shorthnd.ins is included to assist listing the journal shorthands
332
333 - Option yr-com to allow comma before the date.
334 - Option pub-date to put publisher and date in parentheses (Nature style)
335 - Some internal improvements
336
337 Refinements added to version 3.82:
338 - Page numbers can come at end before notes
339 - Fix up bug with quoted titles when title missing
340 - Fix up bug that left off extra date labels for plain dates with no brackets
341 or special punctuation
342 - Fix up bug that put punctuation before publishers in paretheses
343 - Add option to allow full names, with only first author reversed
344
345 Refinements added to version 3.83:
346 - Edited works can be either Names (eds.), Booktitle
347 or Names, (eds.) Booktitle
348 Previously only the first version was possible. (There are several other
349 possibilities too.)
350 - If commas selected as punctuation between blocks, one can still have a
351 period coming before any file note.
352 - With repeated authors/editors for adjacent references, the repeated names
353 can be replaced by a long dash.
354 - \BIBand made robust, otherwise it does not really work.
355
356 Refinements added to version 3.84:
357 - large page numbers can be separated by comma, space, period,
358 as 10,345. No provision for 7 digit numbers
359 - emphasis can also be underlining; bad policy, since underlining belongs
360 to the days of the typewriter, and in LaTeX, \underline command cannot
361 be broken across lines. Loading the ulem package by Donald Arseneau
362 solves this problem.
363 - titles can be in <<guillemots>> (best with T1 encoding, but poor man's
364 OT1 also provided; must have LaTeX2e)
365 - titles of proceedings and collections can be in quotes if article
366 titles in quotes
367 - can add year to journal volume in parentheses as vol(year) and still
368 format year for books differently.
369 - full natbib form of \bibitem resistent against square brackets in names
370 or date.
371
372 Refinements added to version 3.85:
373 - add option to allow junior part of name of appear in citations
374 - options for specifying fonts for names: may apply only to the surnames
375 if wished, and not to the entire name. User-defined font commands
376 \bibnamefont, \bibfnamefont, and \citenamefont may be used too,
377 where the names are used as a single argument.
378
379 Refinements added to version 3.86:
380 - suppress ISBN number for certain crossrefs
381 - fix bug with limited number of authors when mininum is 6
382 - add option for comma between year and pages
383 - restrict \natexlab to natbib styles
384
385 Refinements added to version 3.87:
386 - Limited number of authors can be as many as 99 (previously 6)
387 - Add language field, to switch hyphenation patterns for titles
388 - Add url field for all entries
389 - Add annote field
390 - Months may be suppressed for numerical mode
391 - et~al. is no longer hardwired; dutch.mbs allows variations on et~al.
392
393 Refinements added to version 3.88:
394 - Copyright notices conform to LaTeX Project Public Licence
395 - HTML coding can replace the LaTeX pre- and postamble and font commands;
396 intended for Web listings of complete databases; LaTeX special symbol
397 remain; works only if one selects numerical, not author-year citations.
398 - complex coding to convert edition numbers to (multilingual) text and vice
399 versa can be removed, saving considerable memory requirements and
400 possibly preventing memory overflow
401 - by default, number and series for inproceedings and incollection can only
402 be used as "Complete Works" (series only) or "Number 3 in Complete Works"
403 (number and series). With number only, a warning is issued. New option
404 allows number to be a document code number, like REP-01/1998-ab; without
405 series, this number is printed bare, without the word "Number", but if
406 both number and series are present, the default text "Number .. in .." is
407 reinstated.
408 - another option allows the number/series to be prepended to the publisher
409 and/or organization name.
410 - more options to format editors in inproceedings and incollection
411 - option to allow the total number of pages in books to be listed; for
412 this, the pages field must be given for the entry, a field that is
413 normally ignored for books.
414 - book titles may be set in upright typeface (default is italic)
415 - a slash may be used in place of comma or semi-colon between authors
416 - journal names may be preceded by `in' as for incollections
417
418 Refinements added to version 3.89:
419 - for use with natbib 7.0:
420 when author/editor empty, the key field is used in place of author,
421 but what is new is the option that the year is then left blank
422 in the \bibitem entry. This allows natbib (7.0) to print only the
423 key without any year punctuation.
424 also optional, if the year itself is missing, it is left blank instead
425 of being set to ????.
426 - fix a bug that caused the citation font to be missing at times
427
428 Refinements added to version 4.00:
429 - Entire code reorganized and rationalized (by Arthur Ogawa).
430 - For REVTeX, new fields collaboration, eid, eprint, archive, numpages
431 - Option for tagging all entries in the bibliography with \bibinfo marker.
432 Thus the pages might appear as \bibinfo{pages}{345--350} which prints
433 only the page numbers, but allows other programs to parse the entries.
434 (Contribution by David Carlisle.)
435 - For reversed author names, the junior part can appear either as
436 Smith, Jr., John (previously the only possibility) or
437 Smith, John, Jr.
438 (For some reason, the AGU options that reverse only the leading name in
439 an author list always used this latter form.)
440 - When surnames and first names are in different fonts, the junior part is
441 now in the same font as the first name. Previously, it varied.
442 - When abbreviated months or journal names are to be dotless, only the
443 dots are removed. Previously all non-alphanumeric characters were
444 removed, causing problems with accents in other languages.
445 - When author initials are to be dotless, the dot is also removed from
446 the junior part.
447 - Journal abbreviations in physjour.mbs may be those used in astronomy
448 journals, e.g. ApJ for Astrophysical Journal, (aka Astrophys. J.)
449
450 Refinements added to version 4.01
451 - a bug with the bibinfo tag caused titles not be be case-changed; fixed
452 - technical report numbers were not tagged with bibinfo; fixed
453 - option added to let the word `in' be in italics.
454
455 Refinements added to version 4.02
456 - some bugs fixed:
457 In: with articles no longer has comma added
458 bold dates work when date and publisher together
459 typo alfph removed
460
461 Refinements added to version 4.03
462 - bug fixes
463 - add definition of \natexlab to aux file for harvard styles
464 - add option thtit-x to suppress thesis titles
465 - add option seq-yrr to order by descending years (latest first)
466 - Updates to french.mbs, dansk.mbs
467 - Fix misprint in physjour.mbs
468
469
470 Refinements added to version 4.04:
471 - addition of slovene.mbs for Slovenian language.
472 - additional journal in geojour.mbs
473
474 Refinement added to version 4.05:
475 - fix all language files for a bug in suppression of page numbers
476 - fix bug in merlin.mbs in inproceedings with pp-last plus dt-beg|dt-end
477
478 Refinement added to version 4.06:
479 - options for doubled or trebled dashes for repeated authors
480
481 Refinements added to version 4.10
482 - add doi and eid fields
483 Both of these are for electronic journals. The DOI number is a
484 universal reference to the electronic location, more robust than
485 URLs. Electronic journals do not have page numbers, and use a
486 sequence number (called here EID for electronic identifier) to find
487 the printed version. The doi field is optional, the eid will always
488 be included in the bst file. However, it is still optional within
489 any bib file. If present, it appears in place of the page number.
490
491 Refinements added to version 4.11
492 - fix up doi output to be official style, no blank between doi: and number
493 - add options ser-vol and ser-ed
494
495 Refinements added to version 4.12
496 - add plntx so bbl output will work with Plain TeX (and LaTeX 2.09)
497 (the option nfss must also NOT be given, else font commands are LaTeX2e)
498
499 Bug fix version 4.12a
500 - merlin.mbs and all language files needed fixing because the comma between
501 options was inserted in the wrong place for external language files
502
503 Refinements added to version 4.13
504 - fix a bug in inbook and incollection that suppressed chapter under
505 certain conditions
506 - add option to put a colon after article and/or book titles
507 - add option to format names as Jones, AB (the comma was
508 previously not possible)
509
510 Refinements added to version 4.14
511 - add option to format names as Jones, A.B. (comma, no spaces in initials)
512 - add option to suppress comma before et al in reference list.
513
514 Refinements added to version 4.15
515 - add option to allow new type: presentation. This is for conference talks which are
516 not otherwise published. Requires author, title, month, year, organization, address;
517 may also have key (= author number for the speaker, this name is highlighted),
518 type = oral or poster etc
519
520 Refinements added to version 4.16
521 - fix minor bug in proceedings, that suppressed number and series under circumstance.
522
523 Refinements added to version 4.20
524 - add option to allow citation to have more than one author before et al. added.
525 - add option to allow truncation for more than two, three, four, or five authors.
526
527 Refinements added to version 4.21
528 - remove.dots function modified as suggested by Joseph A. Wright [[email protected]]
529 to retain the dot accent \.
530
531 Refinements added to version 4.22
532 - extra labels in author-year citations can now handle more than 26 entries of same author and year.
533 It now goes from a..z, aa, ab, .., az, ba ,..., zz. After that, it will crash.
534 Code provided by Joseph A. Wright.
535
536 Refinements added to version 4.30
537 - a bug fixed when ordering by label and the author list was truncated to a maximum number.
538 - number of authors in citations can be up to six instead of five.
539 - add option to sort authors by surname only, ignoring initials and first names.
540 - minor bugs repaired
541
542 Refinements added to version 4.31
543 - let the options for punctuation before the date (yr-com, yr-col, yr-per) also work with harvard option harnm.
544
545 Refinements added to version 4.32
546 - fix bug in proceedings with numerical citations when the numser option NOT selected.
547
548 Refinements added to version 4.33
549 - fix a bug that appeared with remove.dots macro.
550 - fix a bug so that pub-xc (comma suppression with publisher date) works for numerical citations too
551
552 Nov 18, 2011
553 Patrick W. Daly
554 Max-Planck-Institut f\"ur Sonnensystemforschung
555 D-37191 Katlenburg-Lindau, Germany
556 E-mail: [email protected]