From b65585a126348e186a255a2d0daf86596515d81d Mon Sep 17 00:00:00 2001 From: Asumu Takikawa Date: Tue, 16 Dec 2014 16:58:25 -0500 Subject: [PATCH] Add an example showing how to cite a page/section --- scribble-doc/scriblib/scribblings/autobib.scrbl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scribble-doc/scriblib/scribblings/autobib.scrbl b/scribble-doc/scriblib/scribblings/autobib.scrbl index 0acede1b..3b6cae4e 100644 --- a/scribble-doc/scriblib/scribblings/autobib.scrbl +++ b/scribble-doc/scriblib/scribblings/autobib.scrbl @@ -37,6 +37,16 @@ function. See below for an example. @(generate-bibliography) }| +For citations that reference a page number or section, the @racket[in-bib] +function can be used. For example, the following snippet: + +@codeblock[#:keep-lang-line? #f]|{ + #lang scribble/base + Racket has a contract library.@~cite[(in-bib plt-tr1 ", ยง8")] +}| + +includes a citation to section 8 of the Racket reference. + @defform/subs[(define-cite ~cite-id citet-id generate-bibliography-id option ...) ([option (code:line #:style style-expr)