Back Table of contents Index Next   BibTool Manual
Reference Manual
Format Specification
Formatting Fields

Formatting Fields

The next component of formats are made up formating instructions which are starting with a % character. The general idea has been inspired by formating facilities of C. Since there are several different types of information in a BibTeX entry we provide several primitives for formating. The simplest form is for instance

  %N(author)

The % character is followed by a single character --- here N --- which indicates the way of formating and the name of the field to be formatted enclosed in parenthesis. The example above requests to format the field author according to formatting rules for names (N).

The general form is

In this specification sign is + or -. + means that all characters will be translated to upper case. - means that all characters will be translated to lower case. If no sign is given, the case of the field is preserved.

pre and post are positive integers whose meaning depends on the format letter letter. qualifier letter is a one letter specification indicating the desired formatting type optionally preceded by the qualifier #. Possible values are as described in the following list:

The field specification (field) selects the field of the entry to be formatted. As usual in BibTeX the case of the letters is ignored. If the field does not exist then the formatting fails and continues at the next alternative (see below).

But the field is not only sought in the current entry. According to the behaviour of BibTeX the special field crossref is taken into account. If a field is missing them the entry named in the crossref field is also considered. Since this dereferencing contains the potential danger of an infinite loop the number of dereferencing steps is restricted by the numeric resource crossref.limit. The number of uses of the crossref field is limited by the value of this resource. The default of this resource is 32.

Usually a value of 1 would be sufficient for BibTeX files conforming to the standard styles. Nevertheless other applications can be imagined where a higher value is desirable.

To turn off the crossref feature complete you can set the value of crossref.limit to 0. In this case only the fields found in the entry itself are considered.



Back Table of contents Index Next   BibTool Manual
Reference Manual
Format Specification
Formatting Fields
© 1999 Gerd Neugebauer