|
Scribe supports bibliographies. In order to use bibliography
references it is needed to:
- Provide a bibliography database.
- Load the database by the mean of the
bibliography Scribe function call.
- Reference to a bibliography entry, with a
ref Scribe function call.
Scribe bibliographies can be customized in different ways. They
are described in the
Scribe Programming Manual.
(bibliography entries) | Scribe function |
Loads bibliography entries into the Scribe memory.
An entry is either a list
representing one entry (such as an article or book reference) or a
string which denotes then a file name that contains several
entries. All the entries loaded in memory are available for references. A bibliography database must be loaded
before any reference is introduced. It is advised to place
the bibliography Scribe function call before the call to the
document function call.
The Scribe bibliography database uses a format very close to
the Bibtex one. It is a parenthetic version of Bibtex. Here is the
syntax of an entry:
<entry> --> (<kind> <key> <field>+)
<kind> --> techreport | article | inproceedings | book
<key> --> <symbol>
<field> --> (<symbol> <string>) |
Bibtex files cannot be directly loaded in Scribe but the tool
scribebibtex can be use to
automatically convert Bibtex format to Scribe bibliography format.
Here is an example of a simple Scribe database
(book ieee
(title "IEEE Standard for the Scheme Programming Language")
(author "IEEE Std 1178-1990")
(publisher "Institute of Electrical and Electronic Engineers, Inc.")
(address "New York, NY")
(year "1991"))
(misc r4rs
(title "The Revised4 Report on the Algorithmic Language Scheme")
(author "Clinger, W. and Rees, J.")
(month "Nov")
(year "1991"))
(article r5rs
(title "The Revised5 Report on the Algorithmic Language Scheme")
(author "Kelsey, R. and Clinger, W. and Rees, J.")
(journal "Higher-Order and Symbolic Computation")
(volume "11")
(number "1")
(month "Sep")
(year "1998")
(url "http://www.inria.fr/mimosa/fp/Bigloo/doc/r5rs.html"))
(book sicp
(author "Abelson, H. and Sussman, G.")
(title "Structure and Interpretation of Computer Programs")
(year "1985")
(publisher "MIT Press")
(address "Cambridge, Mass., USA")) |
(print-bibliography [:all #f] [:sort biblio-sort/authors]) | Scribe function |
Displays the bibliography. The arguments are:
argument | description |
:all | If the argument :all is #t
all the entries of the loaded database are displayed. If
:all is #f only the entries referenced to by a
ref function call are displayed.
|
:sort | A procedure that sorts the entry. Currently two procedures
are provided: biblio-sort/authors and biblio-sort/idents . |
The example:
(font :size -1 (print-bibliography :all #t)) |
produces:
[1] Abelson, H. and Sussman, G. -- Structure and Interpretation of Computer Programs -- MIT Press, Cambridge, Mass., USA, 1985.
[2] Clinger, W. and Rees, J. -- The Revised4 Report on the Algorithmic Language SchemeNov, 1991.
[3] IEEE Std 1178-1990 -- IEEE Standard for the Scheme Programming Language -- Institute of Electrical and Electronic Engineers, Inc., New York, NY, 1991.
[4] Kelsey, R. and Clinger, W. and Rees, J. -- The Revised5 Report on the Algorithmic Language Scheme -- Higher-Order and Symbolic Computation, 11(1), Sep, 1998.
|
|