[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Required empty fields in BibTeX mode
From: |
Roland Winkler |
Subject: |
Re: Required empty fields in BibTeX mode |
Date: |
Mon, 19 Nov 2007 15:46:41 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> writes:
> Sven Bretfeld <sven.bretfeld@gmx.ch> writes:
>> By default Emacs kills empty fields when the function
>> bibtex-clean-entry is called. Is it possible to exclude a certain type
>> of field from deletion?
>
> Formatting of BibTeX entries is controlled by the variable
> bibtex-entry-format which contains a list of formatting options.
> Empty fields are deleted if this list contains 'opts-or-alts. Remove
> this from the list and you should get what you want.
Ooops, this is just part one of your more specific question. With
the above you will keep all empty fields. You could then put a
function into bibtex-clean-entry-hook that deletes all empty fields
except for the one you want to keep.
Roland