25 |
;;; Commentary: |
;;; Commentary: |
26 |
|
|
27 |
;; GNU Emacs code to help maintain databases compatible with (troff) |
;; GNU Emacs code to help maintain databases compatible with (troff) |
28 |
;; refer and lookbib. The file bib-file should be set to your |
;; refer and lookbib. The file bib-file should be set to your |
29 |
;; bibliography file. Keys are automagically inserted as you type, |
;; bibliography file. Keys are automagically inserted as you type, |
30 |
;; and appropriate keys are presented for various kinds of entries. |
;; and appropriate keys are presented for various kinds of entries. |
31 |
|
|
53 |
(define-key bib-mode-map "\e`" 'abbrev-mode) |
(define-key bib-mode-map "\e`" 'abbrev-mode) |
54 |
|
|
55 |
(defun addbib () |
(defun addbib () |
56 |
"Set up editor to add to troff bibliography file specified |
"Set up editor to add to troff bibliography file specified |
57 |
by global variable `bib-file'. See description of `bib-mode'." |
by global variable `bib-file'. See description of `bib-mode'." |
58 |
(interactive) |
(interactive) |
59 |
(find-file bib-file) |
(find-file bib-file) |
60 |
(goto-char (point-max)) |
(goto-char (point-max)) |
61 |
(bib-mode) |
(bib-mode) |
62 |
) |
) |
63 |
|
|
64 |
(define-derived-mode bib-mode text-mode "Bib" |
(define-derived-mode bib-mode text-mode "Bib" |
65 |
"Mode for editing `lookbib' style bibliographies. |
"Mode for editing `lookbib' style bibliographies. |
66 |
Hit RETURN to get next % field key. |
Hit RETURN to get next % field key. |
67 |
If you want to ignore this field, just hit RETURN again. |
If you want to ignore this field, just hit RETURN again. |
68 |
Use `text-mode' to turn this feature off. |
Use `text-mode' to turn this feature off. |
69 |
|
|
70 |
journal papers: A* T D J V N P K W X |
journal papers: A* T D J V N P K W X |
71 |
articles in books & proceedings: A* T D B E* I C P K W X |
articles in books & proceedings: A* T D B E* I C P K W X |
72 |
tech reports: A* T D R I C K W X |
tech reports: A* T D R I C K W X |
73 |
books: A* T D I C K W X |
books: A* T D I C K W X |
74 |
|
|
78 |
V olume N umber P age K eywords |
V olume N umber P age K eywords |
79 |
B in book or proceedings E ditor C ity & state |
B in book or proceedings E ditor C ity & state |
80 |
I nstitution, school, or publisher |
I nstitution, school, or publisher |
81 |
R eport number or 'phd thesis' or 'masters thesis' or 'draft' or |
R eport number or 'phd thesis' or 'masters thesis' or 'draft' or |
82 |
'unnumbered' or 'unpublished' |
'unnumbered' or 'unpublished' |
83 |
W here can be found locally (login name, or ailib, etc.) |
W here can be found locally (login name, or ailib, etc.) |
84 |
X comments (not used in indexing) |
X comments (not used in indexing) |