document ways to control Scribble TOC output
svn: r10972 original commit: c8318761c8fdfc4cbe305ffc1cc216fe16965f2f
This commit is contained in:
parent
48e3293a0b
commit
5ffcc610ba
|
@ -214,16 +214,23 @@ optional @scheme[tag] argument is used as the index section's tag.}
|
||||||
|
|
||||||
@section{Tables of Contents}
|
@section{Tables of Contents}
|
||||||
|
|
||||||
@defproc[(table-of-contents) delayed-flow-element?]{
|
@defproc[(table-of-contents) delayed-block?]{
|
||||||
|
|
||||||
Returns a delayed flow element that expands to a table of contents for
|
Returns a delayed flow element that expands to a table of contents for
|
||||||
the enclosing section. For LaTeX output, however, the table of
|
the enclosing section. For LaTeX output, however, the table of
|
||||||
contents currently spans the entire enclosing document.}
|
contents currently spans the entire enclosing document.}
|
||||||
|
|
||||||
|
|
||||||
@defproc[(local-table-of-contents) delayed-flow-element?]{
|
@defproc[(local-table-of-contents [#:style style any/c #f])
|
||||||
|
delayed-block?]{
|
||||||
|
|
||||||
Returns a delayed flow element that may expand to a table of contents
|
Returns a delayed flow element that may expand to a table of contents
|
||||||
for the enclosing section, depending on the output type. For
|
for the enclosing section, depending on the output type. For
|
||||||
multi-page HTML output, the flow element is a table of contents; for
|
multi-page HTML output, the flow element is a table of contents; for
|
||||||
Latex output, the flow element is empty.}
|
Latex output, the flow element is empty.
|
||||||
|
|
||||||
|
The meaning of the @scheme[style] argument depends on the output type,
|
||||||
|
but @scheme['immediate-only] normally creates a table of contents that
|
||||||
|
contains only immediate sub-sections of the enclosing section. See
|
||||||
|
also the @scheme['quiet] style of @scheme[part], which normally
|
||||||
|
suppresses sub-part entries in the table of contents.}
|
||||||
|
|
|
@ -274,6 +274,12 @@ are as follows:
|
||||||
|
|
||||||
@item{@scheme['hidden] --- the part title is not shown in rendered output.}
|
@item{@scheme['hidden] --- the part title is not shown in rendered output.}
|
||||||
|
|
||||||
|
@item{@scheme['quiet] --- in HTML output and most other output modes,
|
||||||
|
hides entries for sub-parts of this part in a
|
||||||
|
@scheme[table-of-contents] or @scheme[local-table-of-contents]
|
||||||
|
listing except when those sub-parts are top-level entries in
|
||||||
|
the listing.}
|
||||||
|
|
||||||
@item{@scheme['no-toc] --- as a style for the main part of a
|
@item{@scheme['no-toc] --- as a style for the main part of a
|
||||||
document, causes the HTML output to not include a margin box
|
document, causes the HTML output to not include a margin box
|
||||||
for the main table of contents; the ``on this page'' box that
|
for the main table of contents; the ``on this page'' box that
|
||||||
|
|
Loading…
Reference in New Issue
Block a user