racket/collects/tests/scribble/docs/autobib-disambiguation-more.scrbl
Matthew Flatt 71fe28e5dc scriblib/autobib: fixes in docs and related to disambiguation
Fixed problems related to sorting, more than two references for
one citation, and "specific" additions like page numbers.

Also, removed a set of parentheses around disambiguated dates
in the bibliography, because I don't think they belong there.

The doc format was confused; for example, square brackets don't mean
optional in a syntactic form documentation, but instead mean square
brackets.
2012-07-10 00:21:56 -06:00

57 lines
906 B
Racket

#lang scribble/manual
@(require scriblib/autobib)
@(define-cite ~cite citet generate-bibliography)
@(define a1
(make-bib
#:title "One"
#:author "A"
#:date "2012"
#:location "There"))
@(define a2
(make-bib
#:title "Two"
#:author "A"
#:date "2012"
#:location "Here"))
@(define a2x
(make-bib
#:title "Twoish"
#:author "A"
#:date "2012"
#:location "HereX"))
@(define a3
(make-bib
#:title "Three"
#:author "A"
#:date "2013"
#:location "Where?"))
@(define b1
(make-bib
#:title "Uno"
#:author "B"
#:date "2012"
#:location "Ici"))
A1@~cite[a1 a2 b1].
A1@~cite[a1 a2 a3].
@citet[a1 a2 a3].
In A2@~cite[(in-bib a2 " p. 17")]
In A2 and A3@~cite[(in-bib a2 " p. 17") a3]
In A1 and more@~cite[a1 (in-bib a2 " p. 17") a3]
B&B@~cite[b1 a1].
@generate-bibliography[]