;; Copyright (C) 1989 Free Software Foundation, Inc.
+;; Author: Henry Kautz <kautz@research.att.com>
+;; Keywords: bib, tex
+
;; This file is part of GNU Emacs.
;; GNU Emacs is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
-;; the Free Software Foundation; either version 1, or (at your option)
+;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.
;; GNU Emacs is distributed in the hope that it will be useful,
;; along with GNU Emacs; see the file COPYING. If not, write to
;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+;;; Commentary:
+
;; Use: from a buffer containing the refer-style bibliography,
;; M-x r2b-convert-buffer
;; Program will prompt for an output buffer name, and will log
;; warnings during the conversion process in the buffer *Log*.
+;;; Change Log:
+
; HISTORY
-; 9/88, created
+; 9/88, created H.Kautz
; modified 1/19/89, allow books with editor but no author;
; added %O ordering field;
; appended illegal multiple fields, instead of
; modified 2/23/89, include capitalize stop words in r2b stop words,
; fixed problems with contractions (e.g. it's),
; caught multiple stop words in a row
-; modified 3/1/89, fixed capitialize-title for first words all caps
+; modified 3/1/89, fixed capitalize-title for first words all caps
; modified 3/15/89, allow use of " to delimit fields
; modified 4/18/89, properly "quote" special characters on output
+
+;;; Code:
+
;**********************************************************
; User Parameters
for the journal name should be listed as beginning with a capital
letter, even if it really doesn't.
For example, a value of '((\"Aij\" \"{Artificial Intelligence}\")
-(\"Ijcai81\" \"ijcai7\")) would expand Aij to the text string
+\(\"Ijcai81\" \"ijcai7\")) would expand Aij to the text string
\"Artificial Intelligence\", but would replace Ijcai81 with the
BibTeX macro \"ijcai7\".")
Because titles are capitalized before matching, the abbreviated title
should be listed as beginning with a capital letter, even if it doesn't.
For example, a value of '((\"Aij\" \"{Artificial Intelligence}\")
-(\"Ijcai81\" \"ijcai7\")) would expand Aij to the text string
+\(\"Ijcai81\" \"ijcai7\")) would expand Aij to the text string
\"Artificial Intelligence\", but would replace Ijcai81 with the
BibTeX macro \"ijcai7\".")
(defvar r2b-additional-stop-words
"Some\\|What"
- "Words other than the `capitialize-title-stop-words'
+ "Words other than the `capitalize-title-stop-words'
which are not to be used to build the citation key")
(concat
"the\\|and\\|of\\|is\\|a\\|an\\|of\\|for\\|in\\|to\\|in\\|on\\|at\\|"
"by\\|with\\|that\\|its")
- "Words not to be capitialized in a title (unless they are the first
+ "Words not to be capitalized in a title (unless they are the first
word in the title)")
(defvar capitalize-title-stop-regexp
then include the following line in your .emacs file:
(setq r2b-load-quietly t)
To see this message again, perform
- M-x r2b-help")
+ M-x r2b-help
+Please send bug reports and suggestions to
+ Henry Kautz
+ kautz@research.att.com
+ allegra!kautz")
(defun r2b-help ()
"Print help message."
(interactive)
(with-output-to-temp-buffer "*Help*"
- (princ r2b-help-message)))
+ (princ r2b-help-message)
+ (save-excursion
+ (set-buffer standard-output)
+ (help-mode))))
(if (not r2b-load-quietly)
(r2b-help))