racket/collects/scriblib/scribblings/bibtex.scrbl
2011-06-28 02:01:41 -04:00

21 lines
786 B
Racket

#lang scribble/manual
@(require (for-label scribble/struct
scriblib/bibtex
scriblib/autobib
racket/base
racket/contract))
@title[#:tag "bibtex"]{BibTeX Bibliographies}
@defmodule[scriblib/bibtex]
@defform[(define-bibtex-cite bib-pth ~cite-id citet-id generate-bibliography-id)]{
Parses @racket[bib-pth] as a BibTeX database.
Uses @racket[define-cite] from @racketmodname[scriblib/autobib], but augments the @racket[~cite-id] and @racket[citet-id] functions so that rather than accepting @racket[bib?] structures, they accept citation key strings.
Each string is broken along spaces into citations keys that are looked up in the BibTeX database and turned into @racket[bib?] structures.
}