|
11 | 11 |
|
12 | 12 | This library provides support for bibliography management in a Scribble |
13 | 13 | document. The @racket[define-cite] form is used to bind procedures |
14 | | -that create in-line citations and generate the bibilography in the |
| 14 | +that create in-line citations and generate the bibliography in the |
15 | 15 | document. |
16 | 16 |
|
17 | 17 | Individual bibliography entries are created with the @racket[make-bib] |
@@ -91,10 +91,16 @@ or more bibliography entries which have the same authors. It has the contract |
91 | 91 | ] |
92 | 92 |
|
93 | 93 | The function bound to @racket[generate-bibliography-id] generates the |
94 | | -section for the bibliography. It has the contract |
| 94 | +section for the bibliography, with a title as per the @racket[#:sec-title] argument |
| 95 | +(defaults to @racket["Bibliography"]) and a tag as per the @racket[#:tag] argument |
| 96 | +(defaults to @racket["doc-bibliography"]). |
| 97 | +If the @racket[#:sec-title] argument is @racket[#f] instead a string, |
| 98 | +only the content of the bibliography is created, as a table, |
| 99 | +and not the enclosing section as a part. |
95 | 100 |
|
96 | 101 | @racketblock[ |
97 | | -(->* () (#:tag string? #:sec-title string?) part?) |
| 102 | +(->* () (#:tag string? #:sec-title (or/c #f string?)) |
| 103 | + (or/c part? block?)) |
98 | 104 | ] |
99 | 105 |
|
100 | 106 | If provided, the function bound to @racket[cite-author-id] |
@@ -122,15 +128,12 @@ The functions bound to @racket[cite-author-id] and |
122 | 128 | library is pretty nifty. |
123 | 129 | }| |
124 | 130 |
|
125 | | -The default value for the @racket[#:tag] argument is @racket["doc-bibliography"] |
126 | | -and for @racket[#:sec-title] is @racket["Bibliography"]. |
127 | | - |
128 | 131 | The optional @racket[spaces-expr] determines the number of blank lines that appear |
129 | 132 | between citations. The default number of lines is 1. |
130 | 133 |
|
131 | 134 | The optional @racket[style-expr] determines the way that citations and |
132 | 135 | the bibliography are rendered.@margin-note*{Programmer-defined styles |
133 | | -may be supported in the future.} Currently, two built-in style are |
| 136 | +may be supported in the future.} Currently, two built-in styles are |
134 | 137 | provided, and @racket[author+date-style] is the default. |
135 | 138 |
|
136 | 139 | For @racket[author+date-style], |
|
0 commit comments