bibtex-mode

bibtex-mode is an interactive autoloaded compiled Lisp function in `bibtex.el'.


(bibtex-mode)

Major mode for editing BibTeX files.

General information on working with BibTeX mode:

Use commands such as C-c C-e b to get a template for a specific entry.
Then fill in all desired fields using C-j to jump from field
to field. After having filled in all desired fields in the entry, clean the
new entry with the command C-c C-c.

Some features of BibTeX mode are available only by setting the variable
`bibtex-maintain-sorted-entries' to non-nil. However, then BibTeX mode
works only with buffers containing valid (syntactically correct) and sorted
entries. This is usually the case, if you have created a buffer completely
with BibTeX mode and finished every new entry with C-c C-c.

For third party BibTeX files, call the command M-x bibtex-convert-alien
to fully take advantage of all features of BibTeX mode.


Special information:

A command such as C-c C-e b outlines the fields for a BibTeX book entry.

The names of optional fields start with the string OPT, and are thus ignored
by BibTeX. The names of alternative fields from which only one is required
start with the string ALT. The OPT or ALT string may be removed from
the name of a field with C-c C-o.
C-c C-f inserts a new field after the current one.
C-c C-k kills the current field entirely.
C-c C-y yanks the last recently killed field after the current field.
C-c } removes the double-quotes or braces around the text of the current field.
C-c C-d replaces the text of the current field with the default "" or {}.
TAB moves point to the end of the current field.
C-M-i completes word fragment before point according to context.

The command C-c C-c cleans the current entry, i.e. it removes OPT/ALT
from the names of all non-empty optional or alternative fields, checks that
no required fields are empty, and does some formatting dependent on the value
of `bibtex-entry-format'. Furthermore, it can automatically generate a key
for the BibTeX entry, see `bibtex-generate-autokey'.
Note: some functions in BibTeX mode depend on entries being in a special
format (all fields beginning on separate lines), so it is usually a bad
idea to remove `realign' from `bibtex-entry-format'.

BibTeX mode supports Imenu and hideshow minor mode (`hs-minor-mode').

----------------------------------------------------------
Entry to BibTeX mode calls the value of `bibtex-mode-hook'
if that value is non-nil.

key binding
--- -------

C-c Prefix Command
TAB bibtex-find-text
C-j bibtex-next-field
ESC Prefix Command

C-c C-a bibtex-search-entries
C-c C-b bibtex-entry
C-c C-c bibtex-clean-entry
C-c C-d bibtex-empty-field
C-c C-e Prefix Command
C-c C-f bibtex-make-field
C-c C-k bibtex-kill-field
C-c C-l bibtex-url
C-c C-n bibtex-pop-next
C-c C-o bibtex-remove-OPT-or-ALT
C-c C-p bibtex-pop-previous
C-c C-q bibtex-fill-entry
C-c C-r Prefix Command
C-c C-s bibtex-search-entry
C-c C-t bibtex-copy-summary-as-kill
C-c C-u bibtex-entry-update
C-c C-w bibtex-kill-entry
C-c C-x bibtex-search-crossref
C-c C-y bibtex-yank
C-c ESC Prefix Command
C-c " bibtex-remove-delimiters
C-c $ bibtex-ispell-abstract
C-c & reftex-view-crossref-from-bibtex
C-c ? bibtex-print-help-message
C-c { bibtex-remove-delimiters
C-c } bibtex-remove-delimiters

C-M-a bibtex-beginning-of-entry
C-M-e bibtex-end-of-entry
C-M-h bibtex-mark-entry
C-M-i completion-at-point
C-M-l bibtex-reposition-window

C-c C-e C-a bibtex-Article
C-c C-e C-b bibtex-InBook
C-c C-e C-c bibtex-InCollection
C-c C-e TAB bibtex-InProceedings
C-c C-e RET bibtex-Manual
C-c C-e C-p bibtex-InProceedings
C-c C-e C-s bibtex-String
C-c C-e C-t bibtex-TechReport
C-c C-e C-u bibtex-Unpublished
C-c C-e ESC Prefix Command
C-c C-e B bibtex-Booklet
C-c C-e I bibtex-InBook
C-c C-e M bibtex-Misc
C-c C-e P bibtex-PhdThesis
C-c C-e b bibtex-Book
C-c C-e i bibtex-InCollection
C-c C-e m bibtex-MastersThesis
C-c C-e p bibtex-Proceedings

C-c C-r n bibtex-narrow-to-entry
C-c C-r w widen

C-c M-k bibtex-copy-field-as-kill
C-c M-w bibtex-copy-entry-as-kill
C-c M-y bibtex-yank-pop

C-c C-e M-p bibtex-Preamble