add 'unnumbered' style to footnote parts
The function bound to `make-my-notes` by `define-footnote` (as in: ``` (define-footnote my-note make-my-notes) ``` ) now produces a part with the `unnumbered` style. This way, footnote sections can go between any two sections on a page without upsetting the section numbers.
This commit is contained in:
parent
68c4557968
commit
60b0cd100c
|
@ -14,13 +14,12 @@ Creates a margin note for HTML and a footnote for Latex/PDF output.}
|
||||||
|
|
||||||
@defform[(define-footnote footnote-id footnote-part-id)]{
|
@defform[(define-footnote footnote-id footnote-part-id)]{
|
||||||
|
|
||||||
Binds @racket[footnote-id] to a form like @racket[note] that generates
|
Binds @racket[footnote-id] to a form like @racket[note] that registers a
|
||||||
a footnote in HTML output as well as Latex/PDF output. To trigger the
|
footnote.
|
||||||
HTML output of the footnotes that are registered through
|
Binds @racket[footnote-part-id] to a function that generates a section to
|
||||||
@racket[footnote-id], the function bound to @racket[footnote-part-id]
|
display the registered footnotes.
|
||||||
must be called at a position that corresponds the bottom of the HTML
|
(The section generated by @racket[footnote-part-id] will not show a title or
|
||||||
page. (The generated section will not show a title or appear in a
|
appear in a table of contents; it will look like a footnote area.)
|
||||||
table of contents; it will look like a footnote area.)
|
|
||||||
|
|
||||||
Beware that any content passed to @racket[footnote-id] will occur
|
Beware that any content passed to @racket[footnote-id] will occur
|
||||||
twice in at least an intermediate form of the document, and perhaps
|
twice in at least an intermediate form of the document, and perhaps
|
||||||
|
@ -28,6 +27,24 @@ also in the rendered form of the document. Consequently, the content
|
||||||
passed to @racket[footnote-id] should not bind link targets or include
|
passed to @racket[footnote-id] should not bind link targets or include
|
||||||
other one-time declarations.}
|
other one-time declarations.}
|
||||||
|
|
||||||
|
Example:
|
||||||
|
@codeblock|{
|
||||||
|
#lang scribble/manual
|
||||||
|
@require[scriblib/footnote]
|
||||||
|
|
||||||
|
@define-footnote[my-note make-my-note]
|
||||||
|
|
||||||
|
@title{Months of the Year}
|
||||||
|
|
||||||
|
@section{January}
|
||||||
|
January has 31 days.
|
||||||
|
|
||||||
|
@section{February}
|
||||||
|
February has 28 days in common years.@my-note{In leap years,
|
||||||
|
February has 29 days.}
|
||||||
|
|
||||||
|
@make-my-note[]
|
||||||
|
|
||||||
|
@section{March}
|
||||||
|
March has 30 days.
|
||||||
|
}|
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
#f
|
#f
|
||||||
(list `(part ,(generated-tag)))
|
(list `(part ,(generated-tag)))
|
||||||
#f
|
#f
|
||||||
(make-style #f '(hidden toc-hidden))
|
(make-style #f '(unnumbered hidden toc-hidden))
|
||||||
null
|
null
|
||||||
(list
|
(list
|
||||||
(make-traverse-block
|
(make-traverse-block
|
||||||
|
|
Loading…
Reference in New Issue
Block a user