Version: 5.1
4.8 Compatibility Libraries
4.8.1 Compatibility Structures And Processing
The scribble/struct compatibility library mostly re-exports
scribble/core, but using some different names (e.g.,
blockquote instead of nested-flow).
The following structure types and functions are re-exported directly:
The following structure types are re-exported, but the constructors and some selectors are replaced as documented further below:
part paragraph table itemization compound-paragraph |
element toc-element target-element toc-target-element |
page-target-element redirect-target-element link-element |
index-element |
Several additional compatibility functions and structure types are also exported.
| |||||||||||||||||||||||||||||||||||||||||||||||||
tag-prefix : (or/c false/c string?) | |||||||||||||||||||||||||||||||||||||||||||||||||
tags : (listof tag?) | |||||||||||||||||||||||||||||||||||||||||||||||||
title-content : (or/c false/c list?) | |||||||||||||||||||||||||||||||||||||||||||||||||
style : any/c | |||||||||||||||||||||||||||||||||||||||||||||||||
to-collect : list? | |||||||||||||||||||||||||||||||||||||||||||||||||
blocks : (listof block?) | |||||||||||||||||||||||||||||||||||||||||||||||||
parts : (listof part?) |
For backward compatibility. Compared to the normal constructor for part, parses style to convert old formats to
the current one. Also, if title-content is a list with a
single item, the item by itself is stored in the resulting
part.
For backward compatibility. An alias for part-blocks.
(part-title-content p) → list? |
p : part? |
For backward compatibility. Like the normal selector, but if the result would not be a list, it is
coerced to one.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
For backward compatibility. Like make-part, but adds a the
document-version style property using the given
version. The versioned-part? predicate recognizes a
part with a document-version property.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
For backward compatibility. Like make-part, but adds the 'unnumbered
style property. The unnumbered-part? predicate
recognizes a part with the 'unnumbered property.
(make-paragraph content) → paragraph? |
content : list? |
For backward compatibility. Compared to the normal constructor for paragraph, omits a style argument. Also, if
content is a list containing a single item, the item by
itself is stored in the resulting paragraph.
(paragraph-content p) → list? |
p : paragraph? |
For backward compatibility. Like the normal selector, but if the result would not be a list, it is
coerced to one.
| |||
| |||
|
For backward compatibility. Compared to the normal constructor for paragraph, parses style to convert old formats
to the current one. The styled-paragraph? predicate and
styled-paragraph-style accessor are aliases for
paragraph? and paragraph-style.
| ||
|
For backward compatibility. Like make-paragraph, but adds the
'omitable style property. The
omitable-paragraph? predicate checks for a paragraph with the
property.
(make-table style blocksss) → table? |
style : any/c |
blocksss : (listof (listof (or/c (listof block?) (one-of/c 'cont)))) |
For backward compatibility. Compared to the normal constructor for table, the style is converted, and each cell has a list
of blocks instead of a single block. If any such list has multiple
blocks, they are combined into a nested-flow.
For backward compatibility. Like table-blockss, but adds a list wrapper to be
consistent with make-table.
(make-itemization blockss) → itemization? |
blockss : (listof (listof block?)) |
For backward compatibility. Compared to the normal constructor for itemization, omits a style argument.
| |||
| |||
|
For backward compatibility. Compared to the normal constructor for itemization, parses style to convert old
formats to the current one. The styled-itemization? predicate
is an alias for itemization?, and
styled-itemization-style is an alias for
itemization-style.
(make-blockquote style blocks) → nested-flow? |
style : any/c |
blocks : (listof block?) |
| |||
|
For backward compatibility. Like make-table, but adds the 'aux
style property. The auxiliary-table? predicate recognizes
tables with the 'aux property.
(make-compound-paragraph style blocks) → compound-paragraph? |
style : any/c |
blocks : (listof block?) |
For backward compatibility. Compared to the normal constructor for compound-paragraph, parses style to convert old
formats to the current one.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
For backward compatibility. Compared to the normal constructors, parses style to convert old
formats to the current one.
| ||
| ||
|
For backward compatibility. A content list is treated as an element by these functions,
and the result of element-content is always a list.
(make-aux-element style content) → element? |
style : any/c |
content : list? |
(make-hover-element style content text) → element? |
style : any/c |
content : list? |
text : string? |
For backward compatibility. Like make-element, but adds hover-property
containing text to the element’s style.
| ||||||||||||||||||||||||||||
style : any/c | ||||||||||||||||||||||||||||
content : list? | ||||||||||||||||||||||||||||
type : string? | ||||||||||||||||||||||||||||
script : (or/c path-string? (listof string?)) |
For backward compatibility. Like make-element, but adds script-property
containing type and script to the element’s style.
| ||||||
style : any/c | ||||||
assoc : (listof (cons/c symbol? string?)) |
For backward compatibility. Used for an element’s style to combine a base style with
arbitrary HTML attributes. When the style field is itself an
instance of with-attributes, its content is automatically
flattened into the enclosing with-attributes when it is used
(when, e.g., rendering an element or paragraph).
| ||||||
addr : path-string? | ||||||
style : any/c |
For backward compatibility. Used as a style for an element. The style at this
layer is a style for the hyperlink.
| ||||||||
| ||||||||
scale : real? |
For backward compatibility. Used as a style for an element to inline an image. The
path field can be a result of
path->main-collects-relative.
(element->string element) → string? |
element : content? |
(element->string element renderer p info) → string? |
element : content? |
renderer : any/c |
p : part? |
info : resolve-info? |
For backward compatibility. An alias for content->string.
4.8.2 Compatibility Basic Functions
The scribble/basic
compatibility library mostly just re-exports
scribble/base.
(span-class style-name pre-content ...) → element? |
style-name : string? |
pre-content : any/c |
(itemize itm ... [#:style style]) → itemization? |
itm : (or/c whitespace? an-item?) |
style : (or/c style? string? symbol? #f) = #f |