diff --git a/collects/scribblings/scribble/base.scrbl b/collects/scribblings/scribble/base.scrbl index 7daf57a3..ed20b5a3 100644 --- a/collects/scribblings/scribble/base.scrbl +++ b/collects/scribblings/scribble/base.scrbl @@ -1,7 +1,7 @@ #lang scribble/doc @(require scribble/manual "utils.ss" - (for-syntax scheme/base) + (for-syntax racket/base) (for-label setup/main-collects)) @(define-syntax def-section-like @@ -23,23 +23,23 @@ @(define-syntax def-style-proc (syntax-rules () [(_ id) - @def-elem-proc[id]{Like @scheme[elem], but with style @scheme['id].}])) + @def-elem-proc[id]{Like @racket[elem], but with style @racket['id].}])) @title[#:tag "base"]{Base Document Format} -@defmodulelang[scribble/base]{The @schememodname[scribble/base] language +@defmodulelang[scribble/base]{The @racketmodname[scribble/base] language provides functions and forms that can be used from code written either -in Scheme or with @elem["@"] expressions. +in Racket or with @elem["@"] expressions. -The @schememodname[scribble/base] name can also be used as a -library with @scheme[require], in which case it provides all of the same +The @racketmodname[scribble/base] name can also be used as a +library with @racket[require], in which case it provides all of the same bindings, but without setting the reader or setting the default -rendering format to the PLT Scheme manual format.} +rendering format to the Racket manual format.} -Functions provided by this library, such as @scheme[title] and -@scheme[italic], might be called from Scheme as +Functions provided by this library, such as @racket[title] and +@racket[italic], might be called from Racket as -@schemeblock[ +@racketblock[ (title #:tag "how-to" "How to Design " (italic "Great") " Programs") ] @@ -51,8 +51,8 @@ They can also be called with @elem["@"] notation as }| Although the procedures are mostly design to be used from @elem["@"] -mode, they are easier to document in Scheme mode (partly because we -have @schememodname[scribble/manual]). +mode, they are easier to document in Racket mode (partly because we +have @racketmodname[scribble/manual]). @; ------------------------------------------------------------------------ @@ -65,70 +65,70 @@ have @schememodname[scribble/manual]). [pre-content pre-content?] ...+) title-decl?]{ -Generates a @scheme[title-decl] to be picked up by @scheme[decode] or -@scheme[decode-part]. The @tech{decode}d @scheme[pre-content] (i.e., -parsed with @scheme[decode-content]) supplies the title content. If -@scheme[tag] is @scheme[#f], a tag string is generated automatically +Generates a @racket[title-decl] to be picked up by @racket[decode] or +@racket[decode-part]. The @tech{decode}d @racket[pre-content] (i.e., +parsed with @racket[decode-content]) supplies the title content. If +@racket[tag] is @racket[#f], a tag string is generated automatically from the content. The tag string is combined with the symbol -@scheme['part] to form the full tag. +@racket['part] to form the full tag. -The @scheme[style] argument can be a style structure, or it can be one -of the following: a @scheme[#f] that corresponds to a ``plain'' style, +The @racket[style] argument can be a style structure, or it can be one +of the following: a @racket[#f] that corresponds to a ``plain'' style, a string that is used as a @tech{style name}, a symbol that is used as a @tech{style property}, or a list of symbols to be used as @tech{style properties}. -For information on styles, see @scheme[part]. For example, a style of -@scheme['toc] causes sub-sections to be generated as separate pages in +For information on styles, see @racket[part]. For example, a style of +@racket['toc] causes sub-sections to be generated as separate pages in multi-page HTML output. -The @scheme[tag-prefix] argument is propagated to the generated -structure (see @secref["tags"]). If @scheme[tag-prefix] is a module +The @racket[tag-prefix] argument is propagated to the generated +structure (see @secref["tags"]). If @racket[tag-prefix] is a module path, it is converted to a string using -@scheme[module-path-prefix->string]. +@racket[module-path-prefix->string]. -The @scheme[vers] argument is propagated to the @scheme[title-decl] -structure. Use @scheme[""] as @scheme[vers] to suppress version +The @racket[vers] argument is propagated to the @racket[title-decl] +structure. Use @racket[""] as @racket[vers] to suppress version rendering in the output. The section title is automatically indexed by -@scheme[decode-part]. For the index key, leading whitespace and a +@racket[decode-part]. For the index key, leading whitespace and a leading ``A'', ``An'', or ``The'' (followed by more whitespace) is removed.} -@def-section-like[section part-start?]{ Like @scheme[title], but - generates a @scheme[part-start] of depth @scheme[0] to be by - @scheme[decode] or @scheme[decode-part].} +@def-section-like[section part-start?]{ Like @racket[title], but + generates a @racket[part-start] of depth @racket[0] to be by + @racket[decode] or @racket[decode-part].} -@def-section-like[subsection part-start?]{ Like @scheme[section], but - generates a @scheme[part-start] of depth @scheme[1].} +@def-section-like[subsection part-start?]{ Like @racket[section], but + generates a @racket[part-start] of depth @racket[1].} -@def-section-like[subsubsection part-start?]{ Like @scheme[section], but - generates a @scheme[part-start] of depth @scheme[2].} +@def-section-like[subsubsection part-start?]{ Like @racket[section], but + generates a @racket[part-start] of depth @racket[2].} @def-section-like[subsubsub*section paragraph?]{ Similar to - @scheme[section], but merely generates a paragraph that looks like an + @racket[section], but merely generates a paragraph that looks like an unnumbered section heading (for when the nesting gets too deep to include in a table of contents).} -@defform[(include-section module-path)]{ Requires @scheme[module-path] - and returns its @scheme[doc] export (without making any imports +@defform[(include-section module-path)]{ Requires @racket[module-path] + and returns its @racket[doc] export (without making any imports visible to the enclosing context). Since this form expands to - @scheme[require], it must be used in a module or top-level context.} + @racket[require], it must be used in a module or top-level context.} @defproc[(author [auth content?] ...) block?]{ -Generates a @scheme[paragraph] with style name @scheme['author] to +Generates a @racket[paragraph] with style name @racket['author] to show the author(s) of a document, where each author is represented by @tech{content}. Normally, this function is used after -@scheme[title] for the beginning of a document. See also -@scheme[author+email].} +@racket[title] for the beginning of a document. See also +@racket[author+email].} @defproc[(author+email [author elem] [email string?] [#:obfuscate? obfuscate? any/c #f]) element?]{ -Combines an author name with an e-mail address. If @scheme[obfuscate?] +Combines an author name with an e-mail address. If @racket[obfuscate?] is true, then the result obscures the e-mail address slightly to avoid address-harvesting robots.} @@ -140,23 +140,23 @@ address-harvesting robots.} [pre-content pre-content?] ...) paragraph?]{ Creates a @tech{paragraph} containing the @tech{decode}d - @scheme[pre-content] (i.e., parsed with @scheme[decode-paragraph]). + @racket[pre-content] (i.e., parsed with @racket[decode-paragraph]). - The @scheme[style] argument can be a style, @scheme[#f] to indicate a + The @racket[style] argument can be a style, @racket[#f] to indicate a ``plain'' style, a string that is used as a @tech{style name}, or a symbol that is used as a @tech{style name}. (Note that - @scheme[section] and @scheme[para] treat symbols differently as - @scheme[style] arguments.)} + @racket[section] and @racket[para] treat symbols differently as + @racket[style] arguments.)} @defproc[(nested [#:style style (or/c style? string? symbol? #f)] [pre-flow pre-flow?] ...) nested-flow?]{ Creates a @tech{nested flow} containing the @tech{decode}d - @scheme[pre-flow] (i.e., parsed with @scheme[decode-flow]). + @racket[pre-flow] (i.e., parsed with @racket[decode-flow]). - The @scheme[style] argument is handled the same as @scheme[para]. - The @scheme['inset] style causes the nested flow to be inset compared + The @racket[style] argument is handled the same as @racket[para]. + The @racket['inset] style causes the nested flow to be inset compared to surrounding text.} @@ -175,25 +175,25 @@ of inlined.} [#:style style (or/c style? string? symbol? #f) #f]) itemization?]{ - Constructs an @scheme[itemization] given a sequence of items - constructed by @scheme[item]. + Constructs an @racket[itemization] given a sequence of items + constructed by @racket[item]. - The @scheme[style] argument is handled the same as @scheme[para]. The - @scheme['ordered] style numbers items, instead of just using a + The @racket[style] argument is handled the same as @racket[para]. The + @racket['ordered] style numbers items, instead of just using a bullet.} @defproc[(item [pre-flow pre-flow?] ...) item?]{ -Creates an item for use with @scheme[itemlist]. The @tech{decode}d -@scheme[pre-flow] (i.e., parsed with @scheme[decode-flow]) is the item +Creates an item for use with @racket[itemlist]. The @tech{decode}d +@racket[pre-flow] (i.e., parsed with @racket[decode-flow]) is the item content.} @defproc[(item? [v any/c]) boolean?]{ -Returns @scheme[#t] if @scheme[v] is an item produced by -@scheme[item], @scheme[#f] otherwise.} +Returns @racket[#t] if @racket[v] is an item produced by +@racket[item], @racket[#f] otherwise.} @defproc[(tabular [cells (listof (listof (or/c block? content? 'cont)))] @@ -204,29 +204,29 @@ Creates a @tech{table} with the given content, which is supplies as a list of rows, where each row has a list of cells. The length of all rows must match. -Use @scheme['cont] as a cell to continue the content of the preceding +Use @racket['cont] as a cell to continue the content of the preceding cell in a row in the space that would otherwise be used for a new -cell. A @scheme['cont] must not appear as the first cell in a row. +cell. A @racket['cont] must not appear as the first cell in a row. -The @scheme[style] argument is handled the same as @scheme[para].} +The @racket[style] argument is handled the same as @racket[para].} @defproc[(verbatim [#:indent indent exact-nonnegative-integer? 0] [str string?] ...+) block?]{ -Typesets @scheme[str]s in typewriter font with the linebreaks -specified by newline characters in @scheme[str]. Consecutive spaces in -the @scheme[str]s are converted to @scheme[hspace] to ensure that they +Typesets @racket[str]s in typewriter font with the linebreaks +specified by newline characters in @racket[str]. Consecutive spaces in +the @racket[str]s are converted to @racket[hspace] to ensure that they are all preserved in the output. Additional space (via -@scheme[hspace]) as specified by @scheme[indent] is added to the +@racket[hspace]) as specified by @racket[indent] is added to the beginning of each line. -The @scheme[str]s are @emph{not} decoded with @scheme[decode-content], -so @scheme[(verbatim "---")] renders with three hyphens instead of an -em-dash. Beware, however, that @litchar["@"] for a @scheme[verbatim] +The @racket[str]s are @emph{not} decoded with @racket[decode-content], +so @racket[(verbatim "---")] renders with three hyphens instead of an +em-dash. Beware, however, that @litchar["@"] for a @racket[verbatim] call performs some processing before delivering arguments to -@scheme[verbatim]. The @scheme[verbatim] form is typically used with +@racket[verbatim]. The @racket[verbatim] form is typically used with @litchar["|{"]...@litchar["}|"] or similar brackets to disable -@litchar["@"] notation within the @scheme[verbatim] argument, like +@litchar["@"] notation within the @racket[verbatim] argument, like this: @verbatim[#:indent 2]|{ @@ -245,7 +245,7 @@ Even with @litchar["|{"]...@litchar["}|"], beware that consistent leading whitespace is removed; see @secref["alt-body-syntax"] for more information. -See also @scheme[literal].} +See also @racket[literal].} @; ------------------------------------------------------------------------ @@ -255,8 +255,8 @@ See also @scheme[literal].} [#:style style (or style? string? symbol? #f) #f]) element?]{ -Wraps the @tech{decode}d @scheme[pre-content] as an element with style -@scheme[style].} +Wraps the @tech{decode}d @racket[pre-content] as an element with style +@racket[style].} @def-style-proc[italic] @@ -265,35 +265,35 @@ Wraps the @tech{decode}d @scheme[pre-content] as an element with style @def-style-proc[subscript] @def-style-proc[superscript] -@def-elem-proc[smaller]{Like @scheme[elem], but with style -@scheme['smaller]. When uses of @scheme[smaller] are nested, text +@def-elem-proc[smaller]{Like @racket[elem], but with style +@racket['smaller]. When uses of @racket[smaller] are nested, text gets progressively smaller.} -@def-elem-proc[larger]{Like @scheme[elem], but with style -@scheme['larger]. When uses of @scheme[larger] are nested, text +@def-elem-proc[larger]{Like @racket[elem], but with style +@racket['larger]. When uses of @racket[larger] are nested, text gets progressively larger.} @defproc[(emph [pre-content pre-content?] ...) element?]{ -The same as @scheme[italic].} +The same as @racket[italic].} @defproc[(linebreak) element?]{ Produces an element that forces a line break.} @defproc[(hspace [n exact-nonnegative-integer?]) element?]{ -Produces an element containing @scheme[n] spaces and style -@scheme['hspace].} +Produces an element containing @racket[n] spaces and style +@racket['hspace].} @defproc[(literal [str string?] ...+) element?]{ -Produces an element containing literally @scheme[str]s with no -decoding via @scheme[decode-content]. +Produces an element containing literally @racket[str]s with no +decoding via @racket[decode-content]. -Beware that @litchar["@"] for a @scheme[literal] call performs some -processing before delivering arguments to @scheme[literal]. The -@scheme[literal] form can be used with @litchar["|{"]...@litchar["}|"] +Beware that @litchar["@"] for a @racket[literal] call performs some +processing before delivering arguments to @racket[literal]. The +@racket[literal] form can be used with @litchar["|{"]...@litchar["}|"] or similar brackets to disable @litchar["@"] notation within the -@scheme[literal] argument, like this: +@racket[literal] argument, like this: @verbatim[#:indent 2]|{ @literal|{@bold{---}}| @@ -305,7 +305,7 @@ which renders as @literal|{@bold{---}}| }| -See also @scheme[verbatim].} +See also @racket[verbatim].} @defproc[(image [path (or/c path-string? (cons/c 'collects (listof bytes?)))] @@ -315,21 +315,21 @@ See also @scheme[verbatim].} element?]{ Creates an image element from the given path. The @tech{decode}d - @scheme[pre-content] serves as the alternate text for contexts where + @racket[pre-content] serves as the alternate text for contexts where the image cannot be displayed. The path is relative to the current directory, which is set by @exec{setup-plt} and @exec{scribble} to the directory of the main - document file. The @scheme[path] argument also can be a result of - @scheme[path->main-collects-relative]. + document file. The @racket[path] argument also can be a result of + @racket[path->main-collects-relative]. - The strings in @scheme[suffixes] are filtered to those supported by + The strings in @racket[suffixes] are filtered to those supported by given renderer, and then the acceptable suffixes are tried in - order. The HTML renderer supports @scheme[".png"] and - @scheme[".gif"], while the Latex renderer supports @scheme[".png"], - @scheme[".pdf"], and @scheme[".ps"] (but @scheme[".ps"] works only - when converting Latex output to DVI, and @scheme[".png"] and - @scheme[".pdf"] work only for converting Latex output to PDF).} + order. The HTML renderer supports @racket[".png"] and + @racket[".gif"], while the Latex renderer supports @racket[".png"], + @racket[".pdf"], and @racket[".ps"] (but @racket[".ps"] works only + when converting Latex output to DVI, and @racket[".png"] and + @racket[".pdf"] work only for converting Latex output to PDF).} @; ------------------------------------------------------------------------ @@ -340,9 +340,9 @@ See also @scheme[verbatim].} [#:style style (or/c style? string? symbol? #f) (if underline? #f "plainlink")]) element?]{ -The @tech{decode}d @scheme[pre-content] is hyperlinked to -@scheme[url]. If @scheme[style] is not supplied, then -@scheme[underline?] determines how the link is rendered.} +The @tech{decode}d @racket[pre-content] is hyperlinked to +@racket[url]. If @racket[style] is not supplied, then +@racket[underline?] determines how the link is rendered.} @defproc[(url [dest string?]) element?]{ @@ -356,27 +356,27 @@ Generates a literal hyperlinked URL.} [#:underline? underline? any/c #t]) element?]{ -Inserts the hyperlinked title of the section tagged @scheme[tag], but -elements in the title content with the @scheme['aux] @tech{style property} +Inserts the hyperlinked title of the section tagged @racket[tag], but +elements in the title content with the @racket['aux] @tech{style property} are omitted in the hyperlink label. -If @scheme[#:doc module-path] is provided, the @scheme[tag] refers to -a tag with a prefix determined by @scheme[module-path]. When +If @racket[#:doc module-path] is provided, the @racket[tag] refers to +a tag with a prefix determined by @racket[module-path]. When @exec{setup-plt} renders documentation, it automatically adds a tag prefix to the document based on the source module. Thus, for example, -to refer to a section of the PLT Scheme reference, -@scheme[module-path] would be @scheme['(lib +to refer to a section of the Racket reference, +@racket[module-path] would be @racket['(lib "scribblings/reference/reference.scrbl")]. -The @scheme[#:tag-prefixes prefixes] argument similarly supports +The @racket[#:tag-prefixes prefixes] argument similarly supports selecting a particular section as determined by a path of tag -prefixes. When a @scheme[#:doc] argument is provided, then -@scheme[prefixes] should trace a path of tag-prefixed subsections to -reach the @scheme[tag] section. When @scheme[#:doc] is not provided, -the @scheme[prefixes] path is relative to any enclosing section (i.e., +prefixes. When a @racket[#:doc] argument is provided, then +@racket[prefixes] should trace a path of tag-prefixed subsections to +reach the @racket[tag] section. When @racket[#:doc] is not provided, +the @racket[prefixes] path is relative to any enclosing section (i.e., the youngest ancestor that produces a match). -If @scheme[underline?] is @scheme[#f], then the hyperlink is rendered +If @racket[underline?] is @racket[#f], then the hyperlink is rendered in HTML without an underline.} @@ -386,37 +386,37 @@ in HTML without an underline.} [#:underline? underline? any/c #t] [pre-content pre-content?] ...) element?]{ -Like @scheme[secref], but the link label is the @tech{decode}d -@scheme[pre-content] instead of the target section's name.} +Like @racket[secref], but the link label is the @tech{decode}d +@racket[pre-content] instead of the target section's name.} @defproc[(other-doc [module-path module-path?] [#:underline? underline? any/c #t]) element?]{ -Like @scheme[secref] for the document's implicit @scheme["top"] +Like @racket[secref] for the document's implicit @racket["top"] tag. Use this function to refer to a whole manual instead of -@scheme[secref], in case a special style in the future is used for +@racket[secref], in case a special style in the future is used for manual titles.} @defproc[(elemtag [t (or/c tag? string?)] [pre-content pre-content?] ...) element?]{ -The tag @scheme[t] refers to the content form of -@scheme[pre-content].} +The tag @racket[t] refers to the content form of +@racket[pre-content].} @defproc[(elemref [t (or/c tag? string?)] [pre-content pre-content?] ... [#:underline? underline? any/c #t]) element?]{ -The @tech{decode}d @scheme[pre-content] is hyperlinked to @scheme[t], -which is normally defined using @scheme[elemtag].} +The @tech{decode}d @racket[pre-content] is hyperlinked to @racket[t], +which is normally defined using @racket[elemtag].} @defproc[(module-path-prefix->string [mod-path module-path?]) string?]{ Converts a module path to a string by resolving it to a path, and -using @scheme[path->main-collects-relative].} +using @racket[path->main-collects-relative].} @; ------------------------------------------------------------------------ @@ -427,16 +427,16 @@ using @scheme[path->main-collects-relative].} index-element?]{ Creates an index element given a plain-text string---or list of -strings for a hierarchy, such as @scheme['("strings" "plain")] for a +strings for a hierarchy, such as @racket['("strings" "plain")] for a ``plain'' entry below a more general ``strings'' entry. As index keys, -the strings are ``cleaned'' using @scheme[clean-up-index-strings]. The +the strings are ``cleaned'' using @racket[clean-up-index-strings]. The strings (without clean-up) also serve as the text to render in the -index. The @tech{decode}d @scheme[pre-content] is the text to appear +index. The @tech{decode}d @racket[pre-content] is the text to appear inline as the index target. -Use @scheme[index] when an index entry should point to a specific word +Use @racket[index] when an index entry should point to a specific word or phrase within the typeset document (i.e., the -@scheme[pre-content]). Use @scheme[section-index], instead, to create +@racket[pre-content]). Use @racket[section-index], instead, to create an index entry that leads to a section, instead of a specific word or phrase within the section.} @@ -445,23 +445,23 @@ phrase within the section.} [word-contents (listof list?)] [pre-content pre-content?] ...) index-element?]{ -Like @scheme[index], except that @scheme[words] must be a list, and +Like @racket[index], except that @racket[words] must be a list, and the list of contents render in the index (in parallel to -@scheme[words]) is supplied as @scheme[word-contents]. +@racket[words]) is supplied as @racket[word-contents]. } @defproc[(as-index [pre-content pre-content?] ...) index-element?]{ -Like @scheme[index], but the word to index is determined by applying -@scheme[content->string] on the @tech{decode}d @scheme[pre-content].} +Like @racket[index], but the word to index is determined by applying +@racket[content->string] on the @tech{decode}d @racket[pre-content].} @defproc[(section-index [word string?] ...) part-index-decl?]{ -Creates a @scheme[part-index-decl] to be associated with the enclosing -section by @scheme[decode]. The @scheme[word]s serve as both the keys +Creates a @racket[part-index-decl] to be associated with the enclosing +section by @racket[decode]. The @racket[word]s serve as both the keys and as the rendered forms of the keys within the index.} @@ -469,7 +469,7 @@ and as the rendered forms of the keys within the index.} part?]{ Produces a part that shows the index the enclosing document. The -optional @scheme[tag] argument is used as the index section's tag.} +optional @racket[tag] argument is used as the index section's tag.} @; ------------------------------------------------------------------------ @@ -491,10 +491,10 @@ for the enclosing section, depending on the output type. For multi-page HTML output, the flow element is a table of contents; for 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 +The meaning of the @racket[style] argument depends on the output type, +but @racket['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] (i.e., in a -@scheme[part] structure, not supplied as the @scheme[style] argument -to @scheme[local-table-of-contents]), which normally suppresses +also the @racket['quiet] style of @racket[part] (i.e., in a +@racket[part] structure, not supplied as the @racket[style] argument +to @racket[local-table-of-contents]), which normally suppresses sub-part entries in a table of contents.} diff --git a/collects/scribblings/scribble/basic.scrbl b/collects/scribblings/scribble/basic.scrbl index 8eebd3de..2b94d9f6 100644 --- a/collects/scribblings/scribble/basic.scrbl +++ b/collects/scribblings/scribble/basic.scrbl @@ -7,15 +7,15 @@ @title[#:tag "basic"]{Compatibility Basic Functions} -@defmodule[scribble/basic]{The @schememodname[scribble/basic] +@defmodule[scribble/basic]{The @racketmodname[scribble/basic] compatibility library mostly just re-exports -@schememodname[scribble/base].} +@racketmodname[scribble/base].} @defproc[(span-class [style-name string?] [pre-content any/c] ...) element?]{ @compat[] Wraps the @tech{decode}d -@scheme[pre-content] as an element with style @scheme[style-name].} +@racket[pre-content] as an element with style @racket[style-name].} @@ -23,5 +23,5 @@ compatibility library mostly just re-exports [#:style style (or/c style? string? symbol? #f) #f]) itemization?]{ -@compat[] Like @scheme[itemlist], but whitespace strings among the -@scheme[itm]s are ignored.} +@compat[] Like @racket[itemlist], but whitespace strings among the +@racket[itm]s are ignored.} diff --git a/collects/scribblings/scribble/bnf.scrbl b/collects/scribblings/scribble/bnf.scrbl index a8dc78af..46509979 100644 --- a/collects/scribblings/scribble/bnf.scrbl +++ b/collects/scribblings/scribble/bnf.scrbl @@ -5,17 +5,17 @@ @title[#:tag "bnf"]{BNF Grammars} -@defmodule[scribble/bnf]{The @scheme[scribble/bnf] library +@defmodule[scribble/bnf]{The @racket[scribble/bnf] library provides utilities for typesetting grammars.} -See also @scheme[schemegrammar]. +See also @racket[racketgrammar]. @defproc[(BNF [prod (cons element? (listof element?))] ...) table?]{ Typesets a grammar table. Each production starts with an element -(typically constructed with @scheme[nonterm]) for the non-terminal +(typically constructed with @racket[nonterm]) for the non-terminal being defined, and then a list of possibilities (typically constructed -with @scheme[BNF-seq], etc.) to show on separate lines.} +with @racket[BNF-seq], etc.) to show on separate lines.} @defproc[(nonterm (pre-content any/c) ...) element?]{ @@ -44,15 +44,15 @@ Typesets a 1-or-more repetition.} @defproc[(kleenerange [n any/c] [m any/c] [pre-content any/c] ...) element?]{ -Typesets a @scheme[n]-to-@scheme[m] repetition. The @scheme[n] and -@scheme[m] arguments are converted to a string using @scheme[(format -"~a" n)] and @scheme[(format "~a" m)].} +Typesets a @racket[n]-to-@racket[m] repetition. The @racket[n] and +@racket[m] arguments are converted to a string using @racket[(format +"~a" n)] and @racket[(format "~a" m)].} @defproc[(BNF-alt [elem element?] ...) element?]{ Typesets alternatives for a production's right-hand side to appear on a single line. The result is normally used as a single possibility in -a production list for @scheme[BNF].} +a production list for @racket[BNF].} @defthing[BNF-etc string?]{ diff --git a/collects/scribblings/scribble/core.scrbl b/collects/scribblings/scribble/core.scrbl index a1e34162..321e14a7 100644 --- a/collects/scribblings/scribble/core.scrbl +++ b/collects/scribblings/scribble/core.scrbl @@ -22,17 +22,17 @@ A document is processed in three passes. The first pass is the contribute new hyperlink targets). The final pass is the @deftech{render pass}, which generates the resulting document. None of the passes mutate the document, but instead collect information in - side @scheme[collect-info] and @scheme[resolve-info] tables. + side @racket[collect-info] and @racket[resolve-info] tables. @; ------------------------------------------------------------------------ @section[#:tag "parts"]{Parts} -A @deftech{part} is an instance of @scheme[part]; among other things, +A @deftech{part} is an instance of @racket[part]; among other things, it has a title @techlink{content}, an initial @techlink{flow}, and a list of subsection @techlink{parts}. There is no difference between a part and a full document; a particular source module just as easily - defines a subsection (incorporated via @scheme[include-section]) as a + defines a subsection (incorporated via @racket[include-section]) as a document. A @deftech{flow} is a list of @techlink{blocks}. @@ -43,25 +43,25 @@ A @deftech{block} is either a @techlink{table}, an @itemize[ - @item{A @deftech{table} is an instance of @scheme[table]; it + @item{A @deftech{table} is an instance of @racket[table]; it has a list of list of @techlink{blocks} corresponding to table cells.} - @item{A @deftech{itemization} is an instance of @scheme[itemization]; + @item{A @deftech{itemization} is an instance of @racket[itemization]; it has a list of @techlink{flows}.} @item{A @deftech{nested flow} is an instance of - @scheme[nested-flow]; it has a @tech{flow} that + @racket[nested-flow]; it has a @tech{flow} that is typeset as sub-flow.} @item{A @deftech{paragraph} is an instance of - @scheme[paragraph]; it has a @tech{content}: + @racket[paragraph]; it has a @tech{content}: @itemize[ @item{An @deftech{content} can be a string, one of a few - symbols, an instance of @scheme[element] (possibly - @scheme[link-element], etc.), a @scheme[multiarg-element], a + symbols, an instance of @racket[element] (possibly + @racket[link-element], etc.), a @racket[multiarg-element], a @techlink{part-relative element}, a @techlink{delayed element}, or a list of content. @@ -70,62 +70,62 @@ A @deftech{block} is either a @techlink{table}, an @item{A string is included in the result document verbatim, except for space, and unless the content's enclosing @tech{style} is - @scheme['hspace]. In a style other than - @scheme['hspace], consecutive spaces in the + @racket['hspace]. In a style other than + @racket['hspace], consecutive spaces in the output may be collapsed togther or replaced with a line break. In the style - @scheme['hspace], all text is converted to + @racket['hspace], all text is converted to uncollapsable spaces that cannot be broken across lines.} - @item{A symbol content is either @scheme['mdash], - @scheme['ndash], @scheme['ldquo], - @scheme['lsquo], @scheme['rsquo], @scheme['larr], - @scheme['rarr], or @scheme['prime]; it is + @item{A symbol content is either @racket['mdash], + @racket['ndash], @racket['ldquo], + @racket['lsquo], @racket['rsquo], @racket['larr], + @racket['rarr], or @racket['prime]; it is rendered as the corresponding HTML entity (even for Latex output).} - @item{An instance of @scheme[element] has a + @item{An instance of @racket[element] has a @techlink{content} plus a @tech{style}. The style's interpretation depends on the renderer, but it can be one of a few special symbols (such as - @scheme['bold]) that are recognized by all + @racket['bold]) that are recognized by all renderers.} - @item{An instance of @scheme[link-element] has a + @item{An instance of @racket[link-element] has a @techlink{tag} for the target of the link.} - @item{An instance of @scheme[target-element] has a + @item{An instance of @racket[target-element] has a @techlink{tag} to be referenced by - @scheme[link-element]s. An instance of the - subtype @scheme[toc-target-element] is + @racket[link-element]s. An instance of the + subtype @racket[toc-target-element] is treated like a kind of section label, to be shown in the ``on this page'' table for HTML output.} - @item{An instance of @scheme[index-element] has a + @item{An instance of @racket[index-element] has a @techlink{tag} (as a target), a list of strings for the keywords (for sorting and search), and a list of @techlink{contents} to appear in the end-of-document index.} - @item{An instance of @scheme[image-element] + @item{An instance of @racket[image-element] incorporates an image from a file into the rendered document.} - @item{An instance of @scheme[multiarg-element] + @item{An instance of @racket[multiarg-element] combines a style with a list of content, where the style corresponds to a rendered command that takes multiple arguments.} - @item{An instance of @scheme[collect-element] has a + @item{An instance of @racket[collect-element] has a procedure that is called in the @techlink{collect pass} of document processing to record information used by later passes.} @item{A @deftech{part-relative element} is an - instance of @scheme[part-relative-element], + instance of @racket[part-relative-element], which has a procedure that is called in the @techlink{collect pass} of document processing to obtain @defterm{content}. When the @@ -135,12 +135,12 @@ A @deftech{block} is either a @techlink{table}, an available.} @item{A @deftech{delayed element} is an instance of - @scheme[delayed-element], which has a + @racket[delayed-element], which has a procedure that is called in the @techlink{resolve pass} of document processing to obtain @defterm{content}.} - @item{An instance of @scheme[render-element] has a + @item{An instance of @racket[render-element] has a procedure that is called in the @techlink{render pass} of document processing.} @@ -148,13 +148,13 @@ A @deftech{block} is either a @techlink{table}, an ]}]} @item{A @deftech{compound paragraph} is an instance of - @scheme[compound-paragraph]; like @scheme[blockquote], it + @racket[compound-paragraph]; like @racket[blockquote], it has list of @tech{blocks}, but the blocks are typeset as a single paragraph (e.g., no indentation after the first block) instead of inset.} @item{A @deftech{delayed block} is an instance of - @scheme[delayed-block], which has a procedure that + @racket[delayed-block], which has a procedure that is called in the @techlink{resolve pass} of document processing to obtain a @defterm{block}.} @@ -165,20 +165,20 @@ A @deftech{block} is either a @techlink{table}, an @section[#:tag "tags"]{Tags} A @deftech{tag} is a list containing a symbol and either a string, a -@scheme[generated-tag] instance, or an arbitrary list. The symbol -effectively identifies the type of the tag, such as @scheme['part] for -a tag that links to a part, or @scheme['def] for a Scheme function +@racket[generated-tag] instance, or an arbitrary list. The symbol +effectively identifies the type of the tag, such as @racket['part] for +a tag that links to a part, or @racket['def] for a Racket function definition. The symbol also effectively determines the interpretation of the second half of the tag. A part can have a @deftech{tag prefix}, which is effectively added onto the second item within each tag whose first item is -@scheme['part] or @scheme['tech]. The prefix is added to a string +@racket['part] or @racket['tech]. The prefix is added to a string value by creating a list containing the prefix and string, and it is -added to a list value using @scheme[cons]; a prefix is not added to a -@scheme[generated-tag] instance. The prefix is used for reference +added to a list value using @racket[cons]; a prefix is not added to a +@racket[generated-tag] instance. The prefix is used for reference outside the part, including the use of tags in the part's -@scheme[tags] field. Typically, a document's main part has a tag +@racket[tags] field. Typically, a document's main part has a tag prefix that applies to the whole document; references to sections and defined terms within the document from other documents must include the prefix, while references within the same document omit the prefix. Part @@ -187,18 +187,18 @@ references within the document. Some procedures accept a ``tag'' that is just the string part of the full tag, where the symbol part is supplied automatically. For -example, @scheme[section] and @scheme[secref] both accept a string -``tag'', where @scheme['part] is implicit. +example, @racket[section] and @racket[secref] both accept a string +``tag'', where @racket['part] is implicit. @; ------------------------------------------------------------------------ @section[#:tag "style"]{Styles} A @deftech{style} combines a @tech{style name} with a list of -@tech{style properties} in a @scheme[style] structure. A @deftech{style name} -is either a string, symbol, of @scheme[#f]. A @deftech{style property} can be +@tech{style properties} in a @racket[style] structure. A @deftech{style name} +is either a string, symbol, of @racket[#f]. A @deftech{style property} can be anything, including a symbol a structure such as -@scheme[color-property]. +@racket[color-property]. A style has a single @tech{style name}, because the name typically corresponds to a configurable instruction to a renderer. For example, @@ -207,14 +207,14 @@ or environment. For more information on how string style names interact with configuration of a renderer, see @secref["config"]. Symbolic style names, meanwhile, provide a simple layer of abstraction between the renderer and documents for widely -supported style; for example, the @scheme['italic] style name is +supported style; for example, the @racket['italic] style name is supported by all renderers. @tech{Style properties} within a style compose with style names and other properties. Again, symbols are often used for properties that are directly -supported by renderers. For example, @scheme['unnumbered] style +supported by renderers. For example, @racket['unnumbered] style property for a @tech{part} renders the part without a section number. -Many properties are renderer-specific, such as a @scheme[hover-property] +Many properties are renderer-specific, such as a @racket[hover-property] structure that associates text with an element to be shown in an HTML display when the mouse hovers over the text. @@ -225,35 +225,35 @@ HTML display when the mouse hovers over the text. The @techlink{collect pass}, @techlink{resolve pass}, and @techlink{render pass} processing steps all produce information that is specific to a rendering mode. Concretely, the operations are all -represented as methods on a @scheme[render%] object. +represented as methods on a @racket[render%] object. The result of the @method[render% collect] method is a -@scheme[collect-info] instance. This result is provided back as an +@racket[collect-info] instance. This result is provided back as an argument to the @method[render% resolve] method, which produces a -@scheme[resolve-info] value that encapsulates the results from both -iterations. The @scheme[resolve-info] value is provided back to the +@racket[resolve-info] value that encapsulates the results from both +iterations. The @racket[resolve-info] value is provided back to the @method[render% resolve] method for final rendering. Optionally, before the @method[render% resolve] method is called, serialized information from other documents can be folded into the -@scheme[collect-info] instance via the @method[render% +@racket[collect-info] instance via the @method[render% deserialize-info] method. Other methods provide serialized information out of the collected and resolved records. During the @techlink{collect pass}, the procedure associated with a -@scheme[collect-element] instance can register information with -@scheme[collect-put!]. +@racket[collect-element] instance can register information with +@racket[collect-put!]. During the @techlink{resolve pass}, collected information for a part -can be extracted with @scheme[part-collected-info], which includes a -part's number and its parent part (or @scheme[#f]). More generally, -the @scheme[resolve-get] method looks up information previously +can be extracted with @racket[part-collected-info], which includes a +part's number and its parent part (or @racket[#f]). More generally, +the @racket[resolve-get] method looks up information previously collected. This resolve-time information is normally obtained by the procedure associated with a @techlink{delayed block} or @techlink{delayed element}. -The @scheme[resolve-get] information accepts both a @scheme[part] and -a @scheme[resolve-info] argument. The @scheme[part] argument enables +The @racket[resolve-get] information accepts both a @racket[part] and +a @racket[resolve-info] argument. The @racket[part] argument enables searching for information in each enclosing part before sibling parts. @; ------------------------------------------------------------------------ @@ -268,20 +268,20 @@ searching for information in each enclosing part before sibling parts. [blocks (listof block?)] [parts (listof part?)])]{ -The @scheme[tag-prefix] field determines the optional @techlink{tag +The @racket[tag-prefix] field determines the optional @techlink{tag prefix} for the part. -The @scheme[tags] indicates a list of @techlink{tags} that each link +The @racket[tags] indicates a list of @techlink{tags} that each link to the section. -The @scheme[title-content] field holds the part's title, if any. +The @racket[title-content] field holds the part's title, if any. -For the @scheme[style] field, the currently recognized symbolic style +For the @racket[style] field, the currently recognized symbolic style names are as follows: @itemize[ - @item{@scheme['index] --- The part represents an index.} + @item{@racket['index] --- The part represents an index.} ] @@ -289,63 +289,63 @@ The recognized @tech{style properties} are as follows: @itemize[ - @item{@scheme['unnumbered] --- A section number is computed for an + @item{@racket['unnumbered] --- A section number is computed for an unnumbered section during the @techlink{collect pass}, but the number is not rendered.} - @item{@scheme['toc] --- Sub-parts of the part are rendered on separate + @item{@racket['toc] --- Sub-parts of the part are rendered on separate pages for multi-page HTML mode.} - @item{@scheme['non-toc] --- Initial sub-parts of the part are + @item{@racket['non-toc] --- Initial sub-parts of the part are @emph{not} rendered on separate pages for multi-page HTML mode; this style applies only to the main part.} - @item{@scheme['reveal] --- Shows sub-parts when this part is + @item{@racket['reveal] --- Shows sub-parts when this part is displayed in a table-of-contents panel in HTML output (which normally shows only the top-level sections).} - @item{@scheme['hidden] --- The part title is not shown in rendered + @item{@racket['hidden] --- The part title is not shown in rendered HTML output.} - @item{@scheme['quiet] --- In HTML output and most other output modes, + @item{@racket['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] + @racket[table-of-contents] or @racket[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{@racket['no-toc] --- As a style for the main part of a document, causes the HTML output to not include a margin box for the main table of contents; the ``on this page'' box that - contains @scheme[toc-element] and @scheme[toc-target-element] + contains @racket[toc-element] and @racket[toc-target-element] links (and that only includes an ``on this page'' label for multi-page documents) takes on the location and color of the main table of contents, instead.} - @item{@scheme[document-version] structure --- A version number for + @item{@racket[document-version] structure --- A version number for this part and its sub-parts (except as overridden). When it is - not @scheme[""] may be used when rendering a document; at a - minimum, a non-@scheme[""] version is rendered when it is + not @racket[""] may be used when rendering a document; at a + minimum, a non-@racket[""] version is rendered when it is attached to a part representing the whole document. The default - version for a document is @scheme[(version)].} + version for a document is @racket[(version)].} - @item{@scheme[body-id] structure --- Generated HTML uses the given + @item{@racket[body-id] structure --- Generated HTML uses the given string @tt{id} attribute of the @tt{body} tag; this style can be set separately for parts that start different HTML pages, otherwise it is effectively inherited by sub-parts; the - default is @scheme["scribble-plt-scheme.org"], but - @exec{setup-plt} installs @scheme["doc-plt-scheme.org"] as the + default is @racket["scribble-plt-scheme.org"], but + @exec{setup-plt} installs @racket["doc-plt-scheme.org"] as the @tt{id} for any document that it builds.} ] -The @scheme[to-collect] field contains @techlink{content} that is +The @racket[to-collect] field contains @techlink{content} that is inspected during the @techlink{collect pass}, but ignored in later passes (i.e., it doesn't directly contribute to the output). -The @scheme[blocks] field contains the part's initial flow (before +The @racket[blocks] field contains the part's initial flow (before sub-parts). -The @scheme[parts] field contains sub-parts. +The @racket[parts] field contains sub-parts. } @@ -354,16 +354,16 @@ The @scheme[parts] field contains sub-parts. A @techlink{paragraph} has a @tech{style} and a @tech{content}. -For the @scheme[style] field, a string @tech{style name} corresponds +For the @racket[style] field, a string @tech{style name} corresponds to a CSS class for HTML output or a macro for Latex output (see @secref["extra-style"]). The following symbolic @tech{style names} are recognized: @itemize[ - @item{@scheme['author] --- Typeset as the author of a document. Such + @item{@racket['author] --- Typeset as the author of a document. Such paragraphs normally should appear only in the initial flow of a - @scheme[part] for a document, where they are treated specially + @racket[part] for a document, where they are treated specially by the Latex renderer by moving the author information to the title.} @@ -373,21 +373,21 @@ The currently recognized @tech{style properties} are as follows: @itemize[ - @item{@scheme['omitable] --- When a table cell contains a single - @scheme[omitable-paragraph], then when rendering to HTML, no + @item{@racket['omitable] --- When a table cell contains a single + @racket[omitable-paragraph], then when rendering to HTML, no @tt{p} tag wraps the cell content.} - @item{@scheme['div] --- Generates @tt{
}.} - @item{@scheme[attributes] structure --- Provides additional HTML + @item{@racket[attributes] structure --- Provides additional HTML attributes for the @tt{
} or @tt{
} or @tt{
} tag.}
@defstruct[table-columns ([styles (listof style?)])]{
-Like @scheme[table-cells], but the @scheme[styles] list is duplicated
+Like @racket[table-cells], but the @racket[styles] list is duplicated
for each row in the table. This @tech{style property} is used only when a
-@scheme[table-cells] is not present in a style's list of properties.}
+@racket[table-cells] is not present in a style's list of properties.}
@defproc[(block? [v any/c]) boolean?]{
-Returns @scheme[#t] if @scheme[v] is a @scheme[paragraph],
-@scheme[table], @scheme[itemization], @scheme[nested-flow], or
-@scheme[delayed-block], @scheme[#f] otherwise.}
+Returns @racket[#t] if @racket[v] is a @racket[paragraph],
+@racket[table], @racket[itemization], @racket[nested-flow], or
+@racket[delayed-block], @racket[#f] otherwise.}
@defproc[(content? [v any/c]) boolean?]{
-Returns @scheme[#t] if @scheme[v] is a string, symbol,
-@scheme[element], @scheme[multiarg-element], @scheme[delayed-element],
-@scheme[part-relative-element], or list of @tech{content}, @scheme[#f]
+Returns @racket[#t] if @racket[v] is a string, symbol,
+@racket[element], @racket[multiarg-element], @racket[delayed-element],
+@racket[part-relative-element], or list of @tech{content}, @racket[#f]
otherwise.}
@@ -896,28 +896,28 @@ Represents a @techlink{style}.}
@defthing[plain style?]{
-A style @scheme[(make-style #f null)].}
+A style @racket[(make-style #f null)].}
@defproc[(element-style? [v any/c]) boolean?]{
-Returns @scheme[#t] if @scheme[v] is a string, symbol, @scheme[#f],
-or @scheme[style] structure.}
+Returns @racket[#t] if @racket[v] is a string, symbol, @racket[#f],
+or @racket[style] structure.}
@defproc[(tag? [v any/c]) boolean?]{
-Returns @scheme[#t] if @scheme[v] is acceptable as a link
+Returns @racket[#t] if @racket[v] is acceptable as a link
@techlink{tag}, which is a list containing a symbol and either a
-string, a @scheme[generated-tag] instance, or a list (of arbitrary
+string, a @racket[generated-tag] instance, or a list (of arbitrary
values).}
@defstruct[generated-tag ()]{
A placeholder for a tag to be generated during the @techlink{collect
- pass}. Use @scheme[tag-key] to convert a tag containing a
- @scheme[generated-tag] instance to one containing a string.
+ pass}. Use @racket[tag-key] to convert a tag containing a
+ @racket[generated-tag] instance to one containing a string.
}
@@ -928,7 +928,7 @@ A placeholder for a tag to be generated during the @techlink{collect
Converts @tech{content} to a single string (essentially
rendering the content as ``plain text'').
-If @scheme[p] and @scheme[info] arguments are not supplied, then a
+If @racket[p] and @racket[info] arguments are not supplied, then a
pre-``collect'' substitute is obtained for @tech{delayed
elements}. Otherwise, the two arguments are used to force the
@tech{delayed element} (if it has not been forced already).}
@@ -952,7 +952,7 @@ Returns the width in characters of the given @tech{block}.}
Encapsulates information accumulated (or being accumulated) from the
@techlink{collect pass}. The fields are exposed, but not currently
-intended for external use, except that @scheme[collect-info-parents]
+intended for external use, except that @racket[collect-info-parents]
is intended for external use.
}
@@ -967,13 +967,13 @@ intended for external use.
@defproc[(info-key? [v any/c]) boolean?]{
-Returns @scheme[#t] if @scheme[v] is an @deftech{info key}: a list of
+Returns @racket[#t] if @racket[v] is an @deftech{info key}: a list of
at least two elements whose first element is a symbol. The result is
-@scheme[#f] otherwise.
+@racket[#f] otherwise.
For a list that is an info tag, the interpretation of the second
element of the list is effectively determined by the leading symbol,
-which classifies the key. However, a @scheme[#f] value as the second
+which classifies the key. However, a @racket[#f] value as the second
element has an extra meaning: collected information mapped by such
info keys is not propagated out of the part where it is collected;
that is, the information is available within the part and its
@@ -986,7 +986,7 @@ Note that every @techlink{tag} is an info key.
@defproc[(collect-put! [ci collect-info?] [key info-key?] [val any/c])
void?]{
-Registers information in @scheme[ci]. This procedure should be called
+Registers information in @racket[ci]. This procedure should be called
only during the @techlink{collect pass}.
}
@@ -995,13 +995,13 @@ only during the @techlink{collect pass}.
any/c]{
Extract information during the @techlink{resolve pass} or
-@techlink{render pass} for @scheme[p] from @scheme[ri], where the
+@techlink{render pass} for @racket[p] from @racket[ri], where the
information was previously registered during the @techlink{collect
pass}. See also @secref["passes"].
-The result is @scheme[#f] if the no value for the given key is found.
+The result is @racket[#f] if the no value for the given key is found.
Furthermore, the search failure is recorded for potential consistency
-reporting, such as when @exec{setup-plt} is used to build
+reporting, such as when @exec{racket setup} is used to build
documentation.
}
@@ -1010,7 +1010,7 @@ documentation.
@defproc[(resolve-get/ext? [p (or/c part? false/c)] [ri resolve-info?] [key info-key?])
(values any/c boolean?)]{
-Like @scheme[render-get], but returns a second value to indicate
+Like @racket[render-get], but returns a second value to indicate
whether the resulting information originated from an external source
(i.e., a different document).}
@@ -1018,12 +1018,12 @@ whether the resulting information originated from an external source
@defproc[(resolve-search [dep-key any/c][p (or/c part? false/c)] [ri resolve-info?] [key info-key?])
void?]{
-Like @scheme[resolve-get], but a shared @scheme[dep-key] groups
+Like @racket[resolve-get], but a shared @racket[dep-key] groups
multiple searches as a single request for the purposes of consistency
reporting and dependency tracking. That is, a single success for the
-same @scheme[dep-key] means that all of the failed attempts for the
-same @scheme[dep-key] have been satisfied. However, for dependency
-checking, such as when using @exec{setup-plt} to re-build
+same @racket[dep-key] means that all of the failed attempts for the
+same @racket[dep-key] have been satisfied. However, for dependency
+checking, such as when using @exec{racket setup} to re-build
documentation, all attempts are recorded (in case external changes
mean that an earlier attempt would succeed next time).
@@ -1032,9 +1032,9 @@ mean that an earlier attempt would succeed next time).
@defproc[(resolve-get/tentative [p (or/c part? false/c)] [ri resolve-info?] [key info-key?])
any/c]{
-Like @scheme[resolve-search], but without dependency tracking. For
+Like @racket[resolve-search], but without dependency tracking. For
multi-document settings where dependencies are normally tracked, such
-as when using @exec{setup-plt} to build documentation, this function
+as when using @exec{racket setup} to build documentation, this function
is suitable for use only for information within a single document.
}
@@ -1044,8 +1044,8 @@ is suitable for use only for information within a single document.
[pred (info-key? . -> . any/c)])
list?]{
-Applies @scheme[pred] to each key mapped for @scheme[p] in
-@scheme[ri], returning a list of all keys for which @scheme[pred]
+Applies @racket[pred] to each key mapped for @racket[p] in
+@racket[ri], returning a list of all keys for which @racket[pred]
returns a true value.
}
@@ -1054,14 +1054,14 @@ returns a true value.
[ri resolve-info?])
collected-info?]{
-Returns the information collected for @scheme[p] as recorded within
-@scheme[ri].
+Returns the information collected for @racket[p] as recorded within
+@racket[ri].
}
@defproc[(tag-key [t tag?] [ri resolve-info?]) tag?]{
-Converts a @scheme[generated-tag] value with @scheme[t] to a string.
+Converts a @racket[generated-tag] value with @racket[t] to a string.
}
@@ -1070,7 +1070,7 @@ Converts a @scheme[generated-tag] value with @scheme[t] to a string.
@section{HTML Style Properties}
@defmodule[scribble/html-properties]{ The
-@scheme[scribble/html-properties] library provides datatypes used as
+@racket[scribble/html-properties] library provides datatypes used as
@tech{style properties} for HTML rendering.}
@@ -1082,20 +1082,20 @@ tag.}
@defstruct[url-anchor ([name string?])]{
-Used as a @tech{style property} with @scheme[element] to insert an
+Used as a @tech{style property} with @racket[element] to insert an
anchor before the element.}
@defstruct[hover-property ([text string?])]{
-Used as a @tech{style property} with @scheme[element] to add text that
+Used as a @tech{style property} with @racket[element] to add text that
is shown when the mouse hovers over the element.}
@defstruct[script-property ([type string?]
[script (or/c path-string? (listof string?))])]{
-Used as a @tech{style property} with @scheme[element] to supply a
+Used as a @tech{style property} with @racket[element] to supply a
script alternative to the element content.}
@@ -1106,8 +1106,8 @@ Used as a @tech{style property} to supply a CSS file to be referenced
in the generated HTML. This property can be attached to any style, and
all additions are collected to the top of the generated HTML page.
-The @scheme[path] field can be a result of
-@scheme[path->main-collects-relative].}
+The @racket[path] field can be a result of
+@racket[path->main-collects-relative].}
@defstruct[body-id ([value string?])]{
@@ -1123,7 +1123,7 @@ an HTML tag.}
[extra-files (listof (or/c path-string?
(cons/c 'collects (listof bytes?))))])]{
-Like @scheme[latex-defaults], but use for the
+Like @racket[latex-defaults], but use for the
@exec{scribble} command-line tool's @DFlag{html} and
@DFlag{htmls} modes.}
@@ -1133,7 +1133,7 @@ Like @scheme[latex-defaults], but use for the
@section{Latex Style Properties}
@defmodule[scribble/latex-properties]{ The
-@scheme[scribble/latex-properties] library provides datatypes used as
+@racket[scribble/latex-properties] library provides datatypes used as
@tech{style properties} for Latex rendering.}
@@ -1145,8 +1145,8 @@ included in the generated Latex. This property can be attached to any
style, and all additions are collected to the top of the generated
Latex file.
-The @scheme[path] field can be a result of
-@scheme[path->main-collects-relative].}
+The @racket[path] field can be a result of
+@racket[path->main-collects-relative].}
@defstruct[latex-defaults ([prefix (or/c bytes? path-string?
@@ -1156,17 +1156,17 @@ The @scheme[path] field can be a result of
[extra-files (listof (or/c path-string?
(cons/c 'collects (listof bytes?))))])]{
-Used as a @tech{style property} on the main @scheme[part] of a document
+Used as a @tech{style property} on the main @racket[part] of a document
to set a default prefix file, style file, and extra files (see
@secref["config-style"]). The defaults are used by the
@exec{scribble} command-line tool for and @DFlag{latex} or @DFlag{pdf}
mode if none are supplied via @DFlag{prefix} and @DFlag{style} (where
-@scheme[extra-files] are used only when @scheme[prefix] is used). A
+@racket[extra-files] are used only when @racket[prefix] is used). A
byte-string value is used directly like file content, and a path can
-be a result of @scheme[path->main-collects-relative].
+be a result of @racket[path->main-collects-relative].
Languages (used with @hash-lang[]) like
-@schememodname[scribble/manual] and @schememodname[scribble/sigplan]
+@racketmodname[scribble/manual] and @racketmodname[scribble/sigplan]
add this property to a document to specify appropriate files for Latex
rendering.}
@@ -1174,11 +1174,11 @@ rendering.}
@defstruct[latex-auto-extra-files ([paths (listof (or/c path-string?
(cons/c 'collects (listof bytes?))))])]{
-Used as a @tech{style property} for the main @scheme[part] of a
+Used as a @tech{style property} for the main @racket[part] of a
document to supply extra files needed to build the document via the
@exec{scribble} command-line tool (for @DFlag{latex} and @DFlag{pdf}
mode).
Languages (used with @hash-lang[]) like
-@schememodname[scribble/sigplan] add this property to a document to specify
+@racketmodname[scribble/sigplan] add this property to a document to specify
appropriate extra files.}
diff --git a/collects/scribblings/scribble/decode.scrbl b/collects/scribblings/scribble/decode.scrbl
index 936ec5c8..e5143e8f 100644
--- a/collects/scribblings/scribble/decode.scrbl
+++ b/collects/scribblings/scribble/decode.scrbl
@@ -4,11 +4,11 @@
@title[#:tag "decode"]{Decoding Text}
-@defmodule[scribble/decode]{The @schememodname[scribble/decode]
+@defmodule[scribble/decode]{The @racketmodname[scribble/decode]
library helps you write document content in a natural way---more like
plain text, except for @litchar["@"] escapes. Roughly, it processes a
stream of strings to produces instances of the
-@schememodname[scribble/struct] datatypes (see @secref["struct"]).}
+@racketmodname[scribble/struct] datatypes (see @secref["struct"]).}
At the @tech{flow} level, decoding recognizes a blank line as a
@tech{paragraph} separator. Blocks and paragraphs without blank lines
@@ -19,24 +19,24 @@ special text conversions:
@itemize[
- @item{@litchar{---}: converted to @scheme['mdash], which the HTML render
+ @item{@litchar{---}: converted to @racket['mdash], which the HTML render
outputs as an en-dash surrounded by space (so don't put spaces around
@litchar{---} in a document)}
- @item{@litchar{--}: converted to @scheme['ndash]}
+ @item{@litchar{--}: converted to @racket['ndash]}
- @item{@litchar{``}: converted to @scheme['ldquo], which is fancy open quotes: ``}
+ @item{@litchar{``}: converted to @racket['ldquo], which is fancy open quotes: ``}
- @item{@litchar{''}: converted to @scheme['rdquo], which is fancy closing quotes: ''}
+ @item{@litchar{''}: converted to @racket['rdquo], which is fancy closing quotes: ''}
- @item{@litchar{'}: converted to @scheme['rsquo], which is a fancy apostrophe: '}
+ @item{@litchar{'}: converted to @racket['rsquo], which is a fancy apostrophe: '}
]
-Some functions @deftech{decode} a sequence of @scheme[_pre-flow] or
-@scheme[_pre-content] arguments using @scheme[decode-flow] or
-@scheme[decode-content], respectively. For example, the @scheme[bold]
-function accepts any number of @scheme[_pre-content] arguments, so
+Some functions @deftech{decode} a sequence of @racket[_pre-flow] or
+@racket[_pre-content] arguments using @racket[decode-flow] or
+@racket[decode-content], respectively. For example, the @racket[bold]
+function accepts any number of @racket[_pre-content] arguments, so
that in
@verbatim[#:indent 2]|{@bold{``apple''}}|
@@ -47,52 +47,52 @@ then it is bolded.
@defproc[(pre-content? [v any/c]) boolean?]{
-Returns @scheme[#t] if @scheme[v] is a @deftech{pre-content} value: a
-string or other non-list @scheme[content], or a @scheme[splice]
+Returns @racket[#t] if @racket[v] is a @deftech{pre-content} value: a
+string or other non-list @racket[content], or a @racket[splice]
containing a list of @tech{pre-content} values; otherwise returns
-@scheme[#f].
+@racket[#f].
Pre-content is decoded into @tech{content} by functions like
-@scheme[decode-content] and @scheme[decode-paragraph].}
+@racket[decode-content] and @racket[decode-paragraph].}
@defproc[(pre-flow? [v any/c]) boolean?]{
-Returns @scheme[#t] if @scheme[v] is a @deftech{pre-flow} value: a
-string or other non-list @scheme[content], a @scheme[block],
-@|void-const|, or a @scheme[splice] containing a list of
-@tech{pre-flow} values; otherwise returns @scheme[#f].
+Returns @racket[#t] if @racket[v] is a @deftech{pre-flow} value: a
+string or other non-list @racket[content], a @racket[block],
+@|void-const|, or a @racket[splice] containing a list of
+@tech{pre-flow} values; otherwise returns @racket[#f].
Pre-flow is decoded into a @tech{flow} (i.e., a list of @tech{blocks})
-by functions like @scheme[decode-flow].}
+by functions like @racket[decode-flow].}
@defproc[(pre-part? [v any/c]) boolean?]{
-Returns @scheme[#t] if @scheme[v] is a @deftech{pre-part} value: a
+Returns @racket[#t] if @racket[v] is a @deftech{pre-part} value: a
string or other non-list @tech{content}, a @tech{block}, a
-@scheme[part], a @scheme[title-decl], a @scheme[part-start], a
-@scheme[part-index-decl], a @scheme[part-collect-decl], a
-@scheme[part-tag-decl], @|void-const|, or a @scheme[splice] containing
-a list of @tech{pre-part} values; otherwise returns @scheme[#f].
+@racket[part], a @racket[title-decl], a @racket[part-start], a
+@racket[part-index-decl], a @racket[part-collect-decl], a
+@racket[part-tag-decl], @|void-const|, or a @racket[splice] containing
+a list of @tech{pre-part} values; otherwise returns @racket[#f].
-A pre-part sequence is decoded into a @scheme[part] by functions like
-@scheme[decode] and @scheme[decode-part].}
+A pre-part sequence is decoded into a @racket[part] by functions like
+@racket[decode] and @racket[decode-part].}
@defproc[(decode [lst (listof pre-part?)]) part?]{
-Decodes a document, producing a part. In @scheme[lst], instances of
-@scheme[splice] are inlined into the list. An instance of
-@scheme[title-decl] supplies the title for the part, plus tag, style
-and version information. Instances of @scheme[part-index-decl] (that
+Decodes a document, producing a part. In @racket[lst], instances of
+@racket[splice] are inlined into the list. An instance of
+@racket[title-decl] supplies the title for the part, plus tag, style
+and version information. Instances of @racket[part-index-decl] (that
precede any sub-part) add index entries that point to the
-section. Instances of @scheme[part-collect-decl] add elements to the
+section. Instances of @racket[part-collect-decl] add elements to the
part that are used only during the @techlink{collect pass}. Instances
-of @scheme[part-tag-decl] add hyperlink tags to the section
-title. Instances of @scheme[part-start] at level 0 trigger sub-part
-parsing. Instances of @scheme[section] trigger are used as-is as
-subsections, and instances of @scheme[paragraph] and other
+of @racket[part-tag-decl] add hyperlink tags to the section
+title. Instances of @racket[part-start] at level 0 trigger sub-part
+parsing. Instances of @racket[section] trigger are used as-is as
+subsections, and instances of @racket[paragraph] and other
flow-element datatypes are used as-is in the enclosing flow.}
@@ -102,9 +102,9 @@ flow-element datatypes are used as-is in the enclosing flow.}
[depth exact-nonnegative-integer?])
part?]{
-Like @scheme[decode], but given a list of tag string for the part, a
-title (if @scheme[#f], then a @scheme[title-decl] instance is used if
-found), and a depth for @scheme[part-start]s to trigger sub-part
+Like @racket[decode], but given a list of tag string for the part, a
+title (if @racket[#f], then a @racket[title-decl] instance is used if
+found), and a depth for @racket[part-start]s to trigger sub-part
parsing.
}
@@ -112,9 +112,9 @@ parsing.
@defproc[(decode-flow [lst (listof pre-flow?)]) flow?]{
Decodes a flow. A sequence of two or more newlines separated only by
-whitespace counts is parsed as a paragraph separator. In @scheme[lst],
-instances of @scheme[splice] are inlined into the list. Instances of
-@scheme[paragraph] and other flow-element datatypes are used as-is in
+whitespace counts is parsed as a paragraph separator. In @racket[lst],
+instances of @racket[splice] are inlined into the list. Instances of
+@racket[paragraph] and other flow-element datatypes are used as-is in
the enclosing flow.
}
@@ -123,7 +123,7 @@ the enclosing flow.
Decodes a compound paragraph. If the compound paragraph contains a
single block, the block is returned without a
-@scheme[compound-paragraph] wrapper.
+@racket[compound-paragraph] wrapper.
}
@@ -141,7 +141,7 @@ Decodes @tech{content}.
@defproc[(decode-elements [lst (listof pre-content?)]) list?]{
-An alias for @scheme[decode-content].
+An alias for @racket[decode-content].
}
@defproc[(decode-string [s string?]) (listof content?)]{
@@ -153,7 +153,7 @@ Decodes a single string to produce @tech{content}.
@defproc[(whitespace? [s string?]) boolean?]{
-Returns @scheme[#t] if @scheme[s] contains only whitespace, @scheme[#f]
+Returns @racket[#t] if @racket[s] contains only whitespace, @racket[#f]
otherwise.
}
@@ -164,9 +164,9 @@ otherwise.
[style any/c]
[content content?])]{
-See @scheme[decode] and @scheme[decode-part]. The @scheme[tag-prefix]
-and @scheme[style] fields are propagated to the resulting
-@scheme[part].
+See @racket[decode] and @racket[decode-part]. The @racket[tag-prefix]
+and @racket[style] fields are propagated to the resulting
+@racket[part].
}
@@ -176,33 +176,33 @@ and @scheme[style] fields are propagated to the resulting
[style any/c]
[title content?])]{
-Like @scheme[title-decl], but for a sub-part. See @scheme[decode] and
-@scheme[decode-part].
+Like @racket[title-decl], but for a sub-part. See @racket[decode] and
+@racket[decode-part].
}
@defstruct[part-index-decl ([plain-seq (listof string?)]
[entry-seq list?])]{
-See @scheme[decode]. The two fields are as for @scheme[index-element].
+See @racket[decode]. The two fields are as for @racket[index-element].
}
@defstruct[part-collect-decl ([element element?])]{
-See @scheme[decode].
+See @racket[decode].
}
@defstruct[part-tag-decl ([tag tag?])]{
-See @scheme[decode].
+See @racket[decode].
}
@defstruct[splice ([run list?])]{
-See @scheme[decode], @scheme[decode-part], and @scheme[decode-flow].
+See @racket[decode], @racket[decode-part], and @racket[decode-flow].
}
diff --git a/collects/scribblings/scribble/doclang.scrbl b/collects/scribblings/scribble/doclang.scrbl
index 080e7d70..062d7e3b 100644
--- a/collects/scribblings/scribble/doclang.scrbl
+++ b/collects/scribblings/scribble/doclang.scrbl
@@ -3,16 +3,16 @@
@title[#:tag "doclang"]{Document Language}
-@defmodulelang[scribble/doclang]{The @schememodname[scribble/doclang]
-language provides everything from @scheme[scheme/base], except that it
-replaces the @scheme[#%module-begin] form.}
+@defmodulelang[scribble/doclang]{The @racketmodname[scribble/doclang]
+language provides everything from @racket[racket/base], except that it
+replaces the @racket[#%module-begin] form.}
-The @schememodname[scribble/doclang] @scheme[#%module-begin]
+The @racketmodname[scribble/doclang] @racket[#%module-begin]
essentially packages the body of the module into a call to
-@scheme[decode], binds the result to @scheme[doc], and exports
-@scheme[doc].
+@racket[decode], binds the result to @racket[doc], and exports
+@racket[doc].
Any module-level form other than an expression (e.g., a
-@scheme[require] or @scheme[define]) remains at the top level, and
-the @scheme[doc] binding is put at the end of the module. As usual, a
-module-top-level @scheme[begin] slices into the module top level.
+@racket[require] or @racket[define]) remains at the top level, and
+the @racket[doc] binding is put at the end of the module. As usual, a
+module-top-level @racket[begin] slices into the module top level.
diff --git a/collects/scribblings/scribble/docreader.scrbl b/collects/scribblings/scribble/docreader.scrbl
index 00e77970..19f9acb8 100644
--- a/collects/scribblings/scribble/docreader.scrbl
+++ b/collects/scribblings/scribble/docreader.scrbl
@@ -5,8 +5,8 @@
@title[#:tag "docreader"]{Document Reader}
-@defmodulelang[scribble/doc]{The @schememodname[scribble/doc] language is
-the same as @schememodname[scribble/doclang], except that
-@scheme[read-syntax-inside] is used to read the body of the module. In
+@defmodulelang[scribble/doc]{The @racketmodname[scribble/doc] language is
+the same as @racketmodname[scribble/doclang], except that
+@racket[read-syntax-inside] is used to read the body of the module. In
other words, the module body starts in Scribble ``text'' mode instead
of S-expression mode.}
diff --git a/collects/scribblings/scribble/eval.scrbl b/collects/scribblings/scribble/eval.scrbl
index 88504396..4c50f071 100644
--- a/collects/scribblings/scribble/eval.scrbl
+++ b/collects/scribblings/scribble/eval.scrbl
@@ -1,11 +1,11 @@
#lang scribble/doc
@(require scribble/manual
"utils.ss"
- (for-label scheme/sandbox))
+ (for-label racket/sandbox))
@title[#:tag "eval"]{Evaluation and Examples}
-@defmodule[scribble/eval]{The @scheme[scribble/eval] library provides
+@defmodule[scribble/eval]{The @racket[scribble/eval] library provides
utilities for evaluating code at document-build time and incorporating
the results in the document, especially to show example uses of
defined procedures and syntax.}
@@ -13,22 +13,22 @@ defined procedures and syntax.}
@defform*[[(interaction datum ...)
(interaction #:eval eval-expr datum ...)]]{
-Like @scheme[schemeinput], except that the result for each input
-@scheme[datum] is shown on the next line. The result is determined by
-evaluating the @scheme[quote]d form of the @scheme[datum] using the
-evaluator produced by @scheme[eval-expr], if provided.
+Like @racket[racketinput], except that the result for each input
+@racket[datum] is shown on the next line. The result is determined by
+evaluating the @racket[quote]d form of the @racket[datum] using the
+evaluator produced by @racket[eval-expr], if provided.
-The @scheme[eval-expr] must produce a sandbox evaluator via
-@scheme[make-evaluator] or @scheme[make-module-evaluator] with the
-@scheme[sandbox-output] and @scheme[sandbox-error-output] parameters
-set to @scheme['string]. If @scheme[eval] is not provided, an
-evaluator is created using @scheme[make-base-eval]. See also
-@scheme[make-eval-factory].
+The @racket[eval-expr] must produce a sandbox evaluator via
+@racket[make-evaluator] or @racket[make-module-evaluator] with the
+@racket[sandbox-output] and @racket[sandbox-error-output] parameters
+set to @racket['string]. If @racket[eval] is not provided, an
+evaluator is created using @racket[make-base-eval]. See also
+@racket[make-eval-factory].
-Uses of @scheme[code:comment] and @schemeidfont{code:blank} are
-stipped from each @scheme[datum] before evaluation.
+Uses of @racket[code:comment] and @racketidfont{code:blank} are
+stipped from each @racket[datum] before evaluation.
-If a @scheme[datum] has the form @scheme[(@#,indexed-scheme[eval:alts]
+If a @racket[datum] has the form @racket[(@#,indexed-racket[eval:alts]
#,(svar show-datum) #,(svar eval-datum))], then @svar[show-datum] is
typeset, while @svar[eval-datum] is evaluated.}
@@ -36,83 +36,83 @@ typeset, while @svar[eval-datum] is evaluated.}
@defform*[[(interaction-eval datum)
(interaction-eval #:eval eval-expr datum)]]{
-Like @scheme[interaction], evaluates the @scheme[quote]d form of
-@scheme[datum], but returns the empty string.}
+Like @racket[interaction], evaluates the @racket[quote]d form of
+@racket[datum], but returns the empty string.}
@defform*[[(interaction-eval-show datum)
(interaction-eval-show #:eval eval-expr datum)]]{
-Like @scheme[interaction-eval], but produces an element representing
+Like @racket[interaction-eval], but produces an element representing
the printed form of the evaluation result.}
-@defform*[[(schemeblock+eval datum ...)
- (schemeblock+eval #:eval eval-expr datum ...)]]{
+@defform*[[(racketblock+eval datum ...)
+ (racketblock+eval #:eval eval-expr datum ...)]]{
-Combines @scheme[schemeblock] and @scheme[interaction-eval].}
+Combines @racket[racketblock] and @racket[interaction-eval].}
-@defform*[[(schememod+eval name datum ...)
- (schememod+eval #:eval eval-expr name datum ...)]]{
+@defform*[[(racketmod+eval name datum ...)
+ (racketmod+eval #:eval eval-expr name datum ...)]]{
-Combines @scheme[schememod] and @scheme[interaction-eval].}
+Combines @racket[racketmod] and @racket[interaction-eval].}
@defform*[[(def+int defn-datum expr-datum ...)
(def+int #:eval eval-expr defn-datum expr-datum ...)]]{
-Like @scheme[interaction], except the @scheme[defn-datum] is
-typeset as for @scheme[schemeblock] (i.e., no prompt) and a line of
-space is inserted before the @scheme[expr-datum]s.}
+Like @racket[interaction], except the @racket[defn-datum] is
+typeset as for @racket[racketblock] (i.e., no prompt) and a line of
+space is inserted before the @racket[expr-datum]s.}
@defform*[[(defs+int (defn-datum ...) expr-datum ...)
(defs+int #:eval eval-expr (defn-datum ...) expr-datum ...)]]{
-Like @scheme[def+int], but for multiple leading definitions.}
+Like @racket[def+int], but for multiple leading definitions.}
@defform*[[(examples datum ...)
(examples #:eval eval-expr datum ...)]]{
-Like @scheme[interaction], but with an ``Examples:'' label prefixed.}
+Like @racket[interaction], but with an ``Examples:'' label prefixed.}
@defform*[[(defexamples datum ...)
(defexamples #:eval eval-expr datum ...)]]{
-Like @scheme[examples], but each definition using @scheme[define] or
-@scheme[define-struct] among the @scheme[datum]s is typeset without a
+Like @racket[examples], but each definition using @racket[define] or
+@racket[define-struct] among the @racket[datum]s is typeset without a
prompt, and with line of space after it.}
@defproc[(make-base-eval) (any/c . -> . any)]{
-Creates an evaluator using @scheme[(make-evaluator 'scheme/base)],
+Creates an evaluator using @racket[(make-evaluator 'racket/base)],
setting sandbox parameters to disable limits, set the outputs to
-@scheme['string], and not add extra security guards.}
+@racket['string], and not add extra security guards.}
@defproc[(make-base-eval-factory [mod-paths (listof module-path?)]) (-> (any/c . -> . any))]{
-Produces a function that is like @scheme[make-base-eval], except that
-each module in @scheme[mod-paths] is attached to the evaluator's
+Produces a function that is like @racket[make-base-eval], except that
+each module in @racket[mod-paths] is attached to the evaluator's
namespace. The modules are loaded and instantiated once (when the
-returned @scheme[make-base-eval]-like function is called the first
+returned @racket[make-base-eval]-like function is called the first
time) and then attached to each evaluator that is created.}
@defproc[(make-eval-factory [mod-paths (listof module-path?)]) (-> (any/c . -> . any))]{
-Like @scheme[make-base-eval-factor], but each module in @scheme[mod-paths] is
+Like @racket[make-base-eval-factor], but each module in @racket[mod-paths] is
also required into the top-level environment for each generated evaluator.}
@defproc[(close-eval [eval (any/c . -> . any)]) (one-of/c "")]{
-Shuts down an evaluator produced by @scheme[make-base-eval]. Use
-@scheme[close-eval] when garbage collection cannot otherwise reclaim
+Shuts down an evaluator produced by @racket[make-base-eval]. Use
+@racket[close-eval] when garbage collection cannot otherwise reclaim
an evaluator (e.g., because it is defined in a module body).}
@@ -122,5 +122,5 @@ an evaluator (e.g., because it is defined in a module body).}
A parameter that serves as a hook for evaluation. The evaluator to use
is supplied as the first argument to the parameter's value, and the
second argument is the form to evaluate. The last argument is
-@scheme[#t] if exceptions are being captured (to display exception
-results), @scheme[#f] otherwise.}
+@racket[#t] if exceptions are being captured (to display exception
+results), @racket[#f] otherwise.}
diff --git a/collects/scribblings/scribble/how-to-paper.scrbl b/collects/scribblings/scribble/how-to-paper.scrbl
index a4fe3391..3ee33d45 100644
--- a/collects/scribblings/scribble/how-to-paper.scrbl
+++ b/collects/scribblings/scribble/how-to-paper.scrbl
@@ -27,10 +27,10 @@ Create a file @filepath{mouse.scrbl} with this content:
glass of milk.
}|
-The first line's @scheme[#, @hash-lang[] #,
-@schememodname[scribble/base]] indicates that the file implements a
+The first line's @racket[#, @hash-lang[] #,
+@racketmodname[scribble/base]] indicates that the file implements a
Scribble document. The document starts in ``text mode,'' and the
-@litchar["@"] character escapes to operators like @scheme[title],
+@litchar["@"] character escapes to operators like @racket[title],
where the curly braces return to text mode for the arguments to the
operator. The rest is document content.
@@ -89,10 +89,10 @@ Add more text to @filepath{mouse.scrbl} so that it looks like this:
}|
Now, after the first paragraph of the paper, we have two
- sub-sections, each created by calling @scheme[section] to
+ sub-sections, each created by calling @racket[section] to
generate a sub-section declaration. The first sub-section has
two paragraphs. The second section, as initiated by the result
- of the second @scheme[section] call, has a single paragraph.
+ of the second @racket[section] call, has a single paragraph.
Run the @exec{scribble} command(s) from @secref["first-example"]
again. You may notice the curly double-quotes in the output; in PDF
@@ -104,7 +104,7 @@ for em-dashes in HTML.
@section{Splitting the Document Source}
As a document grows larger, it's better to split sections into
-separate source files. The @scheme[include-section] operation
+separate source files. The @racket[include-section] operation
incorporates a document defined by a @filepath{.scrbl} file into a
larger document.
@@ -145,8 +145,8 @@ and in @filepath{straw.scbl}, put
}|
Notice that the new files both start with @hash-lang[], like the
-original document, and the @scheme[section]s from the original
-document become @scheme[title]s in the new documents. Both
+original document, and the @racket[section]s from the original
+document become @racket[title]s in the new documents. Both
@filepath{milk.scrbl} and @filepath{straw.scrbl} are documents in
their own right with their own titles, and they can be individually
rendered using @exec{scribble}. Running @exec{scribble} on
@@ -171,7 +171,7 @@ content look right by changing the first line to
#lang scribble/sigplan
}|
-If you're instead working toward PLT Scheme library documentation,
+If you're instead working toward Racket library documentation,
try changing the first line to
@sample|{
@@ -184,11 +184,11 @@ top-level sections turned into chapters that each start on a new page.
If you have split the document into multiple files, the first line of
the main document file determines the output format.
-Using @schememodname[scribble/sigplan] or
-@schememodname[scribble/manual] does not change the rendered HTML for
-a document---aside from @schememodname[scribble/manual] adding a
+Using @racketmodname[scribble/sigplan] or
+@racketmodname[scribble/manual] does not change the rendered HTML for
+a document---aside from @racketmodname[scribble/manual] adding a
version number---but it changes the set of bindings available in the
-document body. For example, with @schememodname[scribble/sigplan], the
+document body. For example, with @racketmodname[scribble/sigplan], the
introductory text can be marked as an abstract:
@sample|{
@@ -204,16 +204,16 @@ introductory text can be marked as an abstract:
....}|
When rendered as HTML, the abstract shows up as an inset paragraph. If
-you try to use @scheme[abstract] with the
-@schememodname[scribble/base] or @schememodname[scribble/manual]
-language, then you get an error, because @scheme[abstract] is not
+you try to use @racket[abstract] with the
+@racketmodname[scribble/base] or @racketmodname[scribble/manual]
+language, then you get an error, because @racket[abstract] is not
defined.
When a document is implemented across multiple files, changing the
language of the main document can set the style for all of the parts,
but it does not introduce bindings into the other part files. For
example, if you change the language of @filepath{mouse.scrbl} to
-@schememodname[scribble/sigplan], then @scheme[abstract] becomes
+@racketmodname[scribble/sigplan], then @racket[abstract] becomes
available in @filepath{mouse.scrbl} but not in @filepath{milk.scrbl}
or @filepath{straw.scrbl}. In other words, operator names are
lexically scoped.
@@ -221,9 +221,9 @@ lexically scoped.
@; ----------------------------------------
@section{More Functions}
-The @schememodname[scribble/sigplan] and
-@schememodname[scribble/manual] languages are supersets of the
-@schememodname[scribble/base] language, which provides a collection of
+The @racketmodname[scribble/sigplan] and
+@racketmodname[scribble/manual] languages are supersets of the
+@racketmodname[scribble/base] language, which provides a collection of
basic operations. Many of the operations are style variations that you
can apply to text:
@@ -241,15 +241,15 @@ which renders as
@italic{probably} ask you for a straw.
}
-As you would expect, calls to functions like @scheme[smaller],
-@scheme[larger], and @scheme[bold] can be nested in other calls. They
-can also be nested within calls to @scheme[title] or @scheme[section]:
+As you would expect, calls to functions like @racket[smaller],
+@racket[larger], and @racket[bold] can be nested in other calls. They
+can also be nested within calls to @racket[title] or @racket[section]:
@sample|{
@section{@italic{Not} the Last Straw}
}|
-The @scheme[centered] operation centers a flow of text:
+The @racket[centered] operation centers a flow of text:
@sample|{
If a mouse eats all your cookies, put up a sign that says
@@ -273,19 +273,19 @@ which renders as
and see if anyone brings you more.
}
-The @scheme[margin-note] operation is used in a similar way, but the
+The @racket[margin-note] operation is used in a similar way, but the
rendered text is moved to the margins.
-@margin-note{If you use @scheme[margin-note], then the content shows
+@margin-note{If you use @racket[margin-note], then the content shows
up over here.}
-The @scheme[itemlist] operation creates a sequence of bulleted text,
-where the @scheme[item] operation groups text to appear in a single
-bullet. The @scheme[itemlist] operation is different from the others
+The @racket[itemlist] operation creates a sequence of bulleted text,
+where the @racket[item] operation groups text to appear in a single
+bullet. The @racket[itemlist] operation is different from the others
that we have seen before, because it only accepts values produced by
-@scheme[item] instead of arbitrary text. This difference is reflected
+@racket[item] instead of arbitrary text. This difference is reflected
in the use of @litchar{[}...@litchar{]} for the arguments to
-@scheme[itemlist] instead of @litchar["{"]...@litchar["}"]:
+@racket[itemlist] instead of @litchar["{"]...@litchar["}"]:
@sample|{
@centered{@bold{Notice to Mice}}
@@ -306,21 +306,21 @@ which renders as
}
@; ----------------------------------------
-@section{Text Mode vs. Scheme Mode for Arguments}
+@section{Text Mode vs. Racket Mode for Arguments}
When @litchar{[}...@litchar{]} surrounds the arguments of an
-operation, the argument expressions are in Scheme mode rather than
-text mode. Even in Scheme mode, @litchar["@"] can be used to apply
+operation, the argument expressions are in Racket mode rather than
+text mode. Even in Racket mode, @litchar["@"] can be used to apply
operations; once the @"@" syntax is enabled through a
-language like @schememodname[scribble/base] (as opposed to
-@schememodname[scheme]), it behaves the same in both Scheme mode and
+language like @racketmodname[scribble/base] (as opposed to
+@racketmodname[racket]), it behaves the same in both Racket mode and
text mode.
-One advantage of using Scheme mode for the arguments to
-@scheme[itemlist] is that we can pass a keyword-tagged optional
-argument to @scheme[itemlist]. In particular, if you want a list with
-numbers instead of bullets, supply the @scheme['ordered] style to
-@scheme[itemlist] using the @scheme[#:style] keyword:
+One advantage of using Racket mode for the arguments to
+@racket[itemlist] is that we can pass a keyword-tagged optional
+argument to @racket[itemlist]. In particular, if you want a list with
+numbers instead of bullets, supply the @racket['ordered] style to
+@racket[itemlist] using the @racket[#:style] keyword:
@sample|{
@itemlist[#:style 'ordered
@@ -347,15 +347,15 @@ is equivalent to
@italic["Yummy!"]
}|
-which is equivalent to the Scheme expression
+which is equivalent to the Racket expression
- @schemeblock[
+ @racketblock[
(italic "Yummy!")
]
These equivalences explain why Scribble functions are documented in
-Scheme notation. If you're reading this in HTML format, you can click
-@scheme[italic] above to access its documentation. The documentation
+Racket notation. If you're reading this in HTML format, you can click
+@racket[italic] above to access its documentation. The documentation
won't completely make sense, yet, but it will by the end of this
chapter.
@@ -364,15 +364,15 @@ to supply other optional arguments? You can use both
@litchar{[}...@litchar{]} and @litchar["{"]...@litchar["}"] for an
operation, as long as the @litchar{[}...@litchar{]} is first, and as
long as no character separate the closing @litchar{]} from the
-opening @litchar["{"]. For example, calling @scheme[italic] is the
-same as using @scheme[elem] with the @scheme['italic] style:
+opening @litchar["{"]. For example, calling @racket[italic] is the
+same as using @racket[elem] with the @racket['italic] style:
@sample|{
@elem[#:style 'italic]{Yummy!}
}|
You can also @emph{omit} both @litchar{[}...@litchar{]} and
-@litchar["{"]...@litchar["}"]. In that case, the Scheme expression
+@litchar["{"]...@litchar["}"]. In that case, the Racket expression
after @litchar["@"] is used directly instead of applied as an
operation. For example,
@@ -386,22 +386,22 @@ renders as
1 plus 2 is @(number->string (+ 1 2)).
}
-The call to @scheme[number->string] is needed because a naked number
+The call to @racket[number->string] is needed because a naked number
is not valid as document content.
@; ----------------------------------------
@section[#:tag "how-to:reader"]{@"@" Syntax Basics}
The @"@" notation provided by Scribble is just another way of
-writing Scheme expressions. Scribble documents could be constructed
-using normal Scheme notation, without using @"@" at all, but
+writing Racket expressions. Scribble documents could be constructed
+using normal Racket notation, without using @"@" at all, but
that would be inconvenient for most purposes. The @"@"
notation makes dealing with textual content much easier.
-Whether in text mode or Scheme mode, @litchar["@"] in a document
-provides an escape to Scheme mode. The basic syntax of @litchar["@"] is
+Whether in text mode or Racket mode, @litchar["@"] in a document
+provides an escape to Racket mode. The basic syntax of @litchar["@"] is
-@schemeblock[
+@racketblock[
@#,BNF-seq[@litchar["@"]
@nonterm{cmd}
@litchar{[} @kleenestar{@nonterm{datum}} @litchar{]}
@@ -421,42 +421,42 @@ one must be present. No spaces are allowed between
]
-A @nonterm{cmd} or @nonterm{datum} is normal Scheme notation, while a
+A @nonterm{cmd} or @nonterm{datum} is normal Racket notation, while a
@nonterm{text-body} is itself in text mode. A @nonterm{cmd} obviously
-must not start with @litchar{[} or @litchar["{"], even though Scheme
+must not start with @litchar{[} or @litchar["{"], even though Racket
forms could otherwise start with those characters.
-The expansion of just @litchar["@"]@nonterm{cmd} into Scheme code is
+The expansion of just @litchar["@"]@nonterm{cmd} into Racket code is
-@schemeblock[
+@racketblock[
@#,nonterm{cmd}
]
When either @litchar{[} @litchar{]} or @litchar["{"] @litchar["}"]
are used, the expansion is
-@schemeblock[
+@racketblock[
(@#,nonterm{cmd} @#,kleenestar{@nonterm{datum}} @#,kleenestar{@nonterm{parsed-body}})
]
where @kleenestar{@nonterm{parsed-body}} is the parse result of the
@nonterm{text-body}. The @kleenestar{@nonterm{parsed-body}} part often
-turns out to be a sequence of Scheme strings.
+turns out to be a sequence of Racket strings.
-In practice, the @nonterm{cmd} is normally a Scheme identifier that is
+In practice, the @nonterm{cmd} is normally a Racket identifier that is
bound to a procedure or syntactic form. If the procedure or form
expects further text to typeset, then @litchar["{"]...@litchar["}"]
supplies the text. If the form expects other data, typically
-@litchar{[}...@litchar{]} is used to surround Scheme arguments,
+@litchar{[}...@litchar{]} is used to surround Racket arguments,
instead. Even if an operation's argument is a string, if the string is
not used as content text (but instead used as, say, a hyperlink
label), then the string is typically provided through
@litchar{[}...@litchar{]} instead of @litchar["{"]...@litchar["}"].
Sometimes, both @litchar{[}...@litchar{]} and
@litchar["{"]...@litchar["}"] are used, where the former surround
-Scheme arguments that precede text to typeset. Finally, if a form is a
-purely Scheme-level form with not typeset result, such as a
-@scheme[require] to import more operations, then typically just
+Racket arguments that precede text to typeset. Finally, if a form is a
+purely Racket-level form with not typeset result, such as a
+@racket[require] to import more operations, then typically just
@litchar["@"] is used.
For example the text-mode stream
@@ -471,9 +471,9 @@ For example the text-mode stream
@figure["straw" @elem{A straw}]{@image["straw.png"]}
}|
-is equivalent to the Scheme-mode sequence
+is equivalent to the Racket-mode sequence
-@schemeblock[
+@racketblock[
(require scriblib/figure) "\n"
"\n"
(section #:tag "poetry" "Of Mice and Cookies") "\n"
@@ -485,12 +485,12 @@ is equivalent to the Scheme-mode sequence
Besides showing how different argument conventions are used for
different operations, the above example illustrates how whitespace is
-preserved in the Scheme form of a text-mode stream---including
+preserved in the Racket form of a text-mode stream---including
newlines preserved as their own strings. Notice how the second
-@scheme[section] gets two arguments for its content, since the
-argument content for @scheme[section] in the source stream includes
+@racket[section] gets two arguments for its content, since the
+argument content for @racket[section] in the source stream includes
both the use of an operator and additional text. When an operation
-like @scheme[section] or @scheme[italic] accepts content to typeset,
+like @racket[section] or @racket[italic] accepts content to typeset,
it normally accepts an arbitrary number of arguments that together
form the content.
@@ -502,21 +502,21 @@ arguments while disabling @litchar["@"] between the brackets.
@; ----------------------------------------
@section{Decoding Sequences}
-In a document that starts @scheme[#, @hash-lang[] #,
-@schememodname[scribble/base]], the top level is a text-mode stream,
+In a document that starts @racket[#, @hash-lang[] #,
+@racketmodname[scribble/base]], the top level is a text-mode stream,
just like the @nonterm{text-body} in a @litchar["@"] form. As
illustrated in the previous section, such a top-level sequence
-corresponds to a mixture of Scheme-mode strings and operation
-applications. There's an implicit operation, @scheme[decode], that
+corresponds to a mixture of Racket-mode strings and operation
+applications. There's an implicit operation, @racket[decode], that
wraps the whole document to consume this mixture of strings and other
values and turn them into a document description.
-The @scheme[decode] operation implements @defterm{flow decoding},
+The @racket[decode] operation implements @defterm{flow decoding},
which takes a document stream and breaks it up into sections and
paragraphs. Blank lines delimit paragraphs, and the results of
-operations like @scheme[title] and @scheme[section] generate ``here's
+operations like @racket[title] and @racket[section] generate ``here's
the title'' or ``a new section starts here'' declarations that are
-recognized by @scheme[decode].
+recognized by @racket[decode].
A different but related @defterm{content decoding} takes place within
a paragraph or section title. Content decoding is responsible for
@@ -524,16 +524,16 @@ converting @litchar{---} to an em-dash or for converting @litchar{"}
and @litchar{'} to suitable curly quotes.
The decoding process for document's stream is ultimately determined by
-the @hash-lang[] line that starts the document. The @schememodname[scribble/base],
-@schememodname[scribble/manual], and @schememodname[scribble/sigplan]
-languages all use the same @scheme[decode] operation. The
-@schememodname[scribble/text] language, however, acts more like a
+the @hash-lang[] line that starts the document. The @racketmodname[scribble/base],
+@racketmodname[scribble/manual], and @racketmodname[scribble/sigplan]
+languages all use the same @racket[decode] operation. The
+@racketmodname[scribble/text] language, however, acts more like a
plain-text preprocessor and it does not perform any such decoding
-rules. (For more on @schememodname[scribble/text], see
+rules. (For more on @racketmodname[scribble/text], see
@secref["preprocessor"].)
@margin-note{More precisely, languages like
- @schememodname[scribble/base] apply @scheme[decode] only after
+ @racketmodname[scribble/base] apply @racket[decode] only after
lifting out all definitions and imports from the document
stream.}
@@ -542,10 +542,10 @@ paragraphs, it applies content decoding to strings within the
paragraph. When content is wrapped with an operation, however, content
decoding does not apply automatically. An operation is responsible for
calling a content or flow decoder as it sees fit. Most operations call
-the decoder; for example, @scheme[italic], @scheme[bold],
-@scheme[smaller], etc., all decode their arguments. Similarly,
-@scheme[title] and @scheme[section] decode the given content for the
-title or section name. The @scheme[literal] and @scheme[verbatim]
+the decoder; for example, @racket[italic], @racket[bold],
+@racket[smaller], etc., all decode their arguments. Similarly,
+@racket[title] and @racket[section] decode the given content for the
+title or section name. The @racket[literal] and @racket[verbatim]
operators, however, do not decode the given strings. For example,
@sample|{
@@ -577,9 +577,9 @@ because the source is equivalent to
(verbatim (number->string (+ 1 2)))
}|
-where @scheme[(number->string (+ 1 2))] is evaluated to produce the
-argument to @scheme[verbatim]. The @litchar["|{"]...@litchar["}|"]
-style of brackets is often used with @scheme[verbatim], because
+where @racket[(number->string (+ 1 2))] is evaluated to produce the
+argument to @racket[verbatim]. The @litchar["|{"]...@litchar["}|"]
+style of brackets is often used with @racket[verbatim], because
@litchar["|{"]...@litchar["}|"] disables @"@" notation for
arguments. For example,
@@ -596,12 +596,12 @@ renders as
@; ----------------------------------------
@section[#:tag "roadmap"]{Next Steps}
-If your immediate goal is to document a PLT Scheme library or write
+If your immediate goal is to document a Racket library or write
literate programs, skip to @secref["how-to-doc"], and then go back to
@secref["reader"] and other chapters.
-If you are more interested in producing documents unrelated to PLT
-Scheme, continue with @secref["reader"] and then
+If you are more interested in producing documents unrelated to
+Racket, continue with @secref["reader"] and then
@secref["generic-prose"]. Move on to @secref["internals"] when you
need more power.
diff --git a/collects/scribblings/scribble/how-to.scrbl b/collects/scribblings/scribble/how-to.scrbl
index 16667302..5571a2d2 100644
--- a/collects/scribblings/scribble/how-to.scrbl
+++ b/collects/scribblings/scribble/how-to.scrbl
@@ -6,9 +6,9 @@
@title[#:tag "how-to-doc"]{Getting Started with Documentation}
Although the @exec{scribble} command-line utility generates output
-from a Scribble document, documentation of PLT Scheme libraries is
-normally built by @exec{setup-plt}. This chapter emphasizes the
-@exec{setup-plt} approach, which more automatically supports links
+from a Scribble document, documentation of Racket libraries is
+normally built by @exec{raco setup}. This chapter emphasizes the
+@exec{raco setup} approach, which more automatically supports links
across documents.
@margin-note{See @secref["getting-started"] for information on using the
@@ -33,36 +33,36 @@ To document a collection or @|PLaneT| package:
@title{My Library}
- Welcome to my documentation: @scheme[(list 'testing 1 2 3)].
+ Welcome to my documentation: @racket[(list 'testing 1 2 3)].
}|
The first line starts the file in ``text'' mode and selects
- the PLT Scheme manual output format.
- It also introduces bindings like @scheme[title] and
- @scheme[scheme] for writing PLT Scheme documentation.}
+ the Racket manual output format.
+ It also introduces bindings like @racket[title] and
+ @racket[racket] for writing Racket documentation.}
@item{Add the following entry to your collect or package's
@filepath{info.ss}:
- @schemeblock[
+ @racketblock[
(define scribblings '(("manual.scrbl" ())))
]
- The @scheme[()] above is a list of options. When your document
+ The @racket[()] above is a list of options. When your document
gets large enough that you want it split into multiple pages,
- add the @scheme['multi-page] option (omitting the quote, since
+ add the @racket['multi-page] option (omitting the quote, since
the whole right-hand side of the definition is already
quoted).
If you do not already have an @filepath{info.ss} module,
here's a suitable complete module:
- @schememod[
+ @racketmod[
setup/infotab
(define scribblings '(("manual.scrbl" ())))
]}
- @item{Run @exec{setup-plt} to build your documentation. For a
+ @item{Run @exec{raco setup} to build your documentation. For a
collection, optionally supply @Flag{l} followed by the
collection name to limit the build process to that
collection. For a @|PLaneT| package, optionally supply
@@ -71,64 +71,64 @@ To document a collection or @|PLaneT| package:
@item{The generated documentation is normally
@filepath{doc/manual/index.html} within the collection or
- @|PLaneT| package directory. If the collection is in PLT
- Scheme's main @filepath{collects} directory, however, then the
+ @|PLaneT| package directory. If the collection is in
+ Racket's main @filepath{collects} directory, however, then the
documentation is generated as @filepath{manual/index.html} in
the installation's main @filepath{doc} directory.}
]
@; ----------------------------------------
-@section[#:tag "scheme-hyperlinks"]{Scheme Typesetting and Hyperlinks}
+@section[#:tag "racket-hyperlinks"]{Racket Typesetting and Hyperlinks}
In the document source at the start of this chapter
-(@secref["setting-up"]), the Scheme expression
-@scheme[(#,(schemeidfont "list") 'testing 1 2 3)] is typeset properly,
-but the @schemeidfont{list} identifier is not hyperlinked to the usual
-definition. To cause @schemeidfont{list} to be hyperlinked, add a
-@scheme[require] form like this:
+(@secref["setting-up"]), the Racket expression
+@racket[(#,(racketidfont "list") 'testing 1 2 3)] is typeset properly,
+but the @racketidfont{list} identifier is not hyperlinked to the usual
+definition. To cause @racketidfont{list} to be hyperlinked, add a
+@racket[require] form like this:
@verbatim[#:indent 2]|{
- @(require (for-label scheme))
+ @(require (for-label racket))
}|
-This @scheme[require] with @scheme[for-label] declaration introduces a
-document-time binding for each export of the @schememodname[scheme]
-module. When the document is built, the @scheme[scheme] form detects
-the binding for @scheme[list], and so it generates a reference to the
-specification of @scheme[list]. The setup process detects the
+This @racket[require] with @racket[for-label] declaration introduces a
+document-time binding for each export of the @racketmodname[racket]
+module. When the document is built, the @racket[racket] form detects
+the binding for @racket[list], and so it generates a reference to the
+specification of @racket[list]. The setup process detects the
reference, and it finds the matching specification in the existing
documentation, and ultimately directs the hyperlink to that
specification.
-Hyperlinks based on @scheme[for-label] and @scheme[scheme] are the
+Hyperlinks based on @racket[for-label] and @racket[racket] are the
preferred mechanism for linking to information outside of a single
document. Such links require no information about where and how a
binding is documented elsewhere:
@verbatim[#:indent 2]|{
#lang scribble/manual
- @(require (for-label scheme))
+ @(require (for-label racket))
@title{My Library}
- See also @scheme[list].
+ See also @racket[list].
}|
-The @scheme[scheme] form typesets a Scheme expression for inline text,
+The @racket[racket] form typesets a Racket expression for inline text,
so it ignores the source formatting of the expression. The
-@scheme[schemeblock] form, in contrast, typesets inset Scheme code,
+@racket[racketblock] form, in contrast, typesets inset Racket code,
and it preserves the expression's formatting from the document source.
@verbatim[#:indent 2]|{
#lang scribble/manual
- @(require (for-label scheme))
+ @(require (for-label racket))
@title{My Library}
- Some example Scheme code:
+ Some example Racket code:
- @schemeblock[
+ @racketblock[
(define (nobody-understands-me what)
(list "When I think of all the"
what
@@ -141,22 +141,22 @@ and it preserves the expression's formatting from the document source.
@; ----------------------------------------
@section[#:tag "section-hyperlinks"]{Section Hyperlinks}
-A @scheme[section] declaration in a document can include a
-@scheme[#:tag] argument that declares a hyperlink-target tag. The
-@scheme[secref] function generates a hyperlink, using the section name
-as the text of the hyperlink. Use @scheme[seclink] to create a
+A @racket[section] declaration in a document can include a
+@racket[#:tag] argument that declares a hyperlink-target tag. The
+@racket[secref] function generates a hyperlink, using the section name
+as the text of the hyperlink. Use @racket[seclink] to create a
hyperlink with text other than the section title.
The following example illustrates section hyperlinks:
@verbatim[#:indent 2]|{
#lang scribble/manual
- @(require (for-label scheme))
+ @(require (for-label racket))
@title{My Library}
- Welcome to my documentation: @scheme[(list 'testing 1 2 3)].
+ Welcome to my documentation: @racket[(list 'testing 1 2 3)].
@table-of-contents[]
@@ -173,23 +173,23 @@ The following example illustrates section hyperlinks:
Since the page is so short, the hyperlinks in the above example are
more effective if you change the @filepath{info.ss} file to add the
- @scheme['multi-file] flag:
+ @racket['multi-file] flag:
-@schemeblock[
+@racketblock[
(define scribblings '(("manual.scrbl" (multi-page))))
]
A section can have a @techlink{tag prefix} that applies to all tags as
seen from outside the section. Such a prefix is automatically given to
-each top-level document as processed by @exec{setup-plt}. Thus,
+each top-level document as processed by @exec{raco setup}. Thus,
referencing a section tag in a different document requires using a
prefix, which is based on the target document's main source file. The
-following example links to a section in the PLT Scheme reference
+following example links to a section in the Racket reference
manual:
@verbatim[#:indent 2]|{
#lang scribble/manual
- @(require (for-label scheme))
+ @(require (for-label racket))
@(define ref-src
'(lib "scribblings/reference/reference.scrbl"))
@@ -198,41 +198,41 @@ manual:
See also @italic{@secref[#:doc ref-src]{pairs}}.
}|
-As mentioned in @secref{scheme-hyperlinks}, however, cross-document
-references based on @scheme[(require (for-label ....))] and
-@scheme[scheme] are usually better than cross-document references
-using @scheme[secref].
+As mentioned in @secref{racket-hyperlinks}, however, cross-document
+references based on @racket[(require (for-label ....))] and
+@racket[racket] are usually better than cross-document references
+using @racket[secref].
@; ----------------------------------------
-@section{Defining Scheme Bindings}
+@section{Defining Racket Bindings}
-Use @scheme[defproc] to document a procedure, @scheme[defform] to
-document a syntactic form, @scheme[defstruct] to document a structure
+Use @racket[defproc] to document a procedure, @racket[defform] to
+document a syntactic form, @racket[defstruct] to document a structure
type, etc. These forms provide consistent formatting of definitions,
-and they declare hyperlink targets for @scheme[scheme]-based
+and they declare hyperlink targets for @racket[racket]-based
hyperlinks.
-To document a @scheme[my-helper] procedure that is exported by
+To document a @racket[my-helper] procedure that is exported by
@filepath{helper.ss} in the @filepath{my-lib} collection that contains
@filepath{manual.scrbl}:
@itemize[
- @item{Use @scheme[(require (for-label "helper.ss"))] to import the
+ @item{Use @racket[(require (for-label "helper.ss"))] to import the
binding information about the bindings of @filepath{helper.ss}
for use when typesetting identifiers. A relative reference
- @scheme["helper.ss"] works since it is relative to the
+ @racket["helper.ss"] works since it is relative to the
documentation source.}
@item{Add a @tt|{@defmodule[my-lib/helper]}| declaration, which
specifies the library that is being documented within the
- section. The @scheme[defmodule] form needs an absolute module
- name @scheme[mylib/helper], instead of a relative reference
- @scheme["helper.ss"], since the module path given to
- @scheme[defmodule] appears verbatim in the generated
+ section. The @racket[defmodule] form needs an absolute module
+ name @racket[mylib/helper], instead of a relative reference
+ @racket["helper.ss"], since the module path given to
+ @racket[defmodule] appears verbatim in the generated
documentation.}
- @item{Use @scheme[defproc] to document the procedure.}
+ @item{Use @racket[defproc] to document the procedure.}
]
@@ -243,7 +243,7 @@ following:
@; planet libraries
@verbatim[#:indent 2]|{
#lang scribble/manual
- @(require (for-label scheme
+ @(require (for-label racket
"helper.ss"))
@title{My Library}
@@ -254,24 +254,24 @@ following:
(listof
(not/c (one-of/c 'cow)))]{
- Replaces each @scheme['cow] in @scheme[lst] with
- @scheme['aardvark].}
+ Replaces each @racket['cow] in @racket[lst] with
+ @racket['aardvark].}
}|
-In @scheme[defproc], a contract is specified with each argument to the
-procedure. In this example, the contract for the @scheme[_lst]
-argument is @scheme[list?], which is the contract for a list. After
+In @racket[defproc], a contract is specified with each argument to the
+procedure. In this example, the contract for the @racket[_lst]
+argument is @racket[list?], which is the contract for a list. After
the closing parenthesis that ends the argument sequence, the contract
-of the result must be given; in this case, @scheme[my-helper]
+of the result must be given; in this case, @racket[my-helper]
guarantees a result that is a list where none of the elements are
-@scheme['cow].
+@racket['cow].
Some things to notice in this example and the documentation that it
generates:
@itemize[
- @item{The @scheme[list?], @scheme[listof], @|etc| elements of
+ @item{The @racket[list?], @racket[listof], @|etc| elements of
contracts are hyperlinked to their documentation.}
@item{The result contract is formatted in the generated documentation
@@ -279,56 +279,56 @@ generates:
contracts is preserved. (In this case, putting the contract all
on one line would be better.)}
- @item{In the prose that documents @scheme[my-helper], @scheme[_lst]
+ @item{In the prose that documents @racket[my-helper], @racket[_lst]
is automatically typeset in italic, matching the typesetting in
- the blue box. The @scheme[scheme] form essentially knows that
+ the blue box. The @racket[racket] form essentially knows that
it's used in the scope of a procedure with argument
- @scheme[_lst].}
+ @racket[_lst].}
- @item{If you hover the mouse pointer over @scheme[my-helper], a popup
- reports that it is provided from @schemeidfont{my-lib/helper}.}
+ @item{If you hover the mouse pointer over @racket[my-helper], a popup
+ reports that it is provided from @racketidfont{my-lib/helper}.}
- @item{If you use @scheme[my-helper] in any documentation now, as long
- as that documentation source also has a @scheme[(require
+ @item{If you use @racket[my-helper] in any documentation now, as long
+ as that documentation source also has a @racket[(require
(for-label ....))] of @filepath{helper.ss}, then the
reference is hyperlinked to the definition above.}
]
-See @scheme[defproc*], @scheme[defform], @|etc| for more information
-on forms to document Scheme bindings.
+See @racket[defproc*], @racket[defform], @|etc| for more information
+on forms to document Racket bindings.
@; ----------------------------------------
-@section{Showing Scheme Examples}
+@section{Showing Racket Examples}
-The @scheme[examples] form from @scheme[scribble/eval]
+The @racket[examples] form from @racket[scribble/eval]
helps you generate examples in your documentation. @bold{Warning:} the
-@scheme[examples] form is especially likely to change or be replaced.
+@racket[examples] form is especially likely to change or be replaced.
-To use @scheme[examples], the procedures to document must be suitable
-for use at documentation time; in fact, @scheme[examples] uses
+To use @racket[examples], the procedures to document must be suitable
+for use at documentation time; in fact, @racket[examples] uses
bindings introduced into the document source by
-@scheme[require]. Thus, to generate examples using @scheme[my-helper]
+@racket[require]. Thus, to generate examples using @racket[my-helper]
from the previous section, @filepath{helper.ss} must be imported both
-via @scheme[require-for-label] and @scheme[require]:
+via @racket[require-for-label] and @racket[require]:
@verbatim[#:indent 2]|{
#lang scribble/manual
@(require scribble/eval ; <--- added
"helper.ss" ; <--- added
- (for-label scheme
+ (for-label racket
"helper.ss"))
@title{My Library}
- @defmodule[my-lib/helper]{The @schememodname[my-lib/helper]
+ @defmodule[my-lib/helper]{The @racketmodname[my-lib/helper]
module---now with extra cows!}
@defproc[(my-helper [lst list?])
(listof (not/c (one-of/c 'cow)))]{
- Replaces each @scheme['cow] in @scheme[lst] with
- @scheme['aardvark].
+ Replaces each @racket['cow] in @racket[lst] with
+ @racket['aardvark].
@examples[
(my-helper '())
@@ -339,14 +339,14 @@ via @scheme[require-for-label] and @scheme[require]:
@;----------------------------------------
@section{Multi-Page Sections}
-Setting the @scheme['multi-page] option (see
+Setting the @racket['multi-page] option (see
@secref["section-hyperlinks"]) causes each top-level section of a
document to be rendered as a separate HTML page.
-To push sub-sections onto separate pages, use the @scheme['toc] style
-for the enclosing section (as started by @scheme[title],
-@scheme[section], @scheme[subsection], etc.) and use
-@scheme[local-table-of-contents] to generate hyperlinks to the
+To push sub-sections onto separate pages, use the @racket['toc] style
+for the enclosing section (as started by @racket[title],
+@racket[section], @racket[subsection], etc.) and use
+@racket[local-table-of-contents] to generate hyperlinks to the
sub-sections.
Revising @filepath{cows.scrbl} from the previous section:
@@ -366,18 +366,18 @@ Revising @filepath{cows.scrbl} from the previous section:
}|
To run this example, remember to change @filepath{info.ss} to add the
-@scheme['multi-page] style. You may also want to add a call to
-@scheme[table-of-contents] in @filepath{manual.scrbl}.
+@racket['multi-page] style. You may also want to add a call to
+@racket[table-of-contents] in @filepath{manual.scrbl}.
-The difference between @scheme[table-of-contents] and
-@scheme[local-table-of-contents] is that the latter is ignored for
+The difference between @racket[table-of-contents] and
+@racket[local-table-of-contents] is that the latter is ignored for
Latex output.
-When using @scheme[local-table-of-contents], it often makes sense to
+When using @racket[local-table-of-contents], it often makes sense to
include introductory text before the call of
-@scheme[local-table-of-contents]. When the introductory text is less
+@racket[local-table-of-contents]. When the introductory text is less
important and when when local table of contents is short, putting the
-introductory text after the call of @scheme[local-table-of-contents]
+introductory text after the call of @racket[local-table-of-contents]
may be appropriate.
@;----------------------------------------
diff --git a/collects/scribblings/scribble/jfp.scrbl b/collects/scribblings/scribble/jfp.scrbl
index 15424cd4..06e89fa7 100644
--- a/collects/scribblings/scribble/jfp.scrbl
+++ b/collects/scribblings/scribble/jfp.scrbl
@@ -5,18 +5,18 @@
@(define-syntax-rule (def base-author)
(begin
(require (for-label scribble/base))
- (define base-author @scheme[author])))
+ (define base-author @racket[author])))
@(def base-author)
@title{JFP Paper Format}
-@defmodulelang[scribble/jfp]{The @schememodname[scribble/jfp]
-language is like @schememodname[scribble/manual], but configured with
+@defmodulelang[scribble/jfp]{The @racketmodname[scribble/jfp]
+language is like @racketmodname[scribble/manual], but configured with
Latex style defaults to use the @filepath{jfp.cls} class
file that is included with Scribble.}
-Latex output with @schememodname[scribble/jfp] uses a main-document
-version supplied to @scheme[title] as the short-form document name (to
+Latex output with @racketmodname[scribble/jfp] uses a main-document
+version supplied to @racket[title] as the short-form document name (to
be used in page headers).
@defproc[(abstract [pre-content pre-content?] ...) block?]{
@@ -25,19 +25,19 @@ Generates a @tech{nested flow} for a paper abstract.}
@defform[(include-abstract module-path)]{
-Similar to @scheme[include-section], but incorporates the document in the
+Similar to @racket[include-section], but incorporates the document in the
specified module as an abstract. The document must have no title or
sub-parts.}
@defproc[(author [name pre-content?] ...)
block?]{
-A replacement for @base-author from @schememodname[scribble/base].}
+A replacement for @base-author from @racketmodname[scribble/base].}
@defproc[((author/short [short-name pre-content?] ...) [long-name pre-content?] ...)
block?]{
-Like @scheme[author], but allows the short-form names (to be used in
+Like @racket[author], but allows the short-form names (to be used in
page headers) to be specified separately from the long-form name.}
@deftogether[(
@@ -46,10 +46,10 @@ page headers) to be specified separately from the long-form name.}
@defproc[(affiliation-sep) element?]
)]{
-Use @scheme[affiliation] within @scheme[author] or the long-name part
-of @scheme[author/short] to specify affiliations after all authors.
+Use @racket[affiliation] within @racket[author] or the long-name part
+of @racket[author/short] to specify affiliations after all authors.
If different authors have different affiliations, use
-@scheme[affiliation-mark] with a number after each author, and then
-use @scheme[affiliation-mark] before each different affiliation within
-a single @scheme[affiliation], using @scheme[(affiliation-sep)] to
+@racket[affiliation-mark] with a number after each author, and then
+use @racket[affiliation-mark] before each different affiliation within
+a single @racket[affiliation], using @racket[(affiliation-sep)] to
separate affiliations.}
diff --git a/collects/scribblings/scribble/layers.scrbl b/collects/scribblings/scribble/layers.scrbl
index db1aea9f..5583ef34 100644
--- a/collects/scribblings/scribble/layers.scrbl
+++ b/collects/scribblings/scribble/layers.scrbl
@@ -16,31 +16,31 @@ and instead use the document-generation structure directly.
A Scribble document normally starts
-@schememod[
+@racketmod[
scribble/manual
]
but it could also start
-@schememod[
+@racketmod[
scribble/base
]
or
-@schememod[
+@racketmod[
scribble/doc
]
The last one introduces the smallest number of typesetting bindings in
-the document body. Using @schememodname[scribble/base] after
-@hash-lang[] is the same as using @schememodname[scribble/doc] plus
-@scheme[(require scribble/base)], and using
-@schememodname[scribble/manual] after @hash-lang[] is the same as using
-@schememodname[scribble/doc] plus @scheme[(require scribble/manual)].
+the document body. Using @racketmodname[scribble/base] after
+@hash-lang[] is the same as using @racketmodname[scribble/doc] plus
+@racket[(require scribble/base)], and using
+@racketmodname[scribble/manual] after @hash-lang[] is the same as using
+@racketmodname[scribble/doc] plus @racket[(require scribble/manual)].
Besides making the file a module, each of the @hash-lang[]
-declarations selects the Scribble reader (instead of the usual Scheme
+declarations selects the Scribble reader (instead of the usual Racket
reader), and it starts the body of the file in ``text'' mode. The
reader layer mostly leaves text alone, but @litchar["@"] forms escape
to S-expression mode.
@@ -61,7 +61,7 @@ A module written as
reads as
-@schemeblock[
+@racketblock[
(module #,(nonterm "name") scribble/doc
(require scribble/manual)
"\n"
@@ -74,14 +74,14 @@ reads as
]
As shown in this example, the read result is a module whose content
-mingles text and definitions. The @schememodname[scribble/doc]
-language lifts definitions, @scheme[require]s, and @scheme[provide]s
+mingles text and definitions. The @racketmodname[scribble/doc]
+language lifts definitions, @racket[require]s, and @racket[provide]s
to the beginning of the module, while everything else is collected
-into a document bound to the provided identifier @scheme[doc]. That
+into a document bound to the provided identifier @racket[doc]. That
is, the module is transformed to something like this:
-@schemeblock[
-(module #,(nonterm "name") scheme/base
+@racketblock[
+(module #,(nonterm "name") racket/base
(require scribble/decode
scribble/manual)
(define to-be "To Be")
@@ -95,23 +95,23 @@ is, the module is transformed to something like this:
(provide doc))
]
-The @scheme[decode] function produces a @scheme[part] structure
-instance that represents the document. To build the @scheme[part]
-instance, it inspects its arguments to find a @scheme[title-decl]
-value created by @scheme[title] to name the part, @scheme[part-start]
-values created by @scheme[section] to designate sub-parts, etc.
+The @racket[decode] function produces a @racket[part] structure
+instance that represents the document. To build the @racket[part]
+instance, it inspects its arguments to find a @racket[title-decl]
+value created by @racket[title] to name the part, @racket[part-start]
+values created by @racket[section] to designate sub-parts, etc.
-A @scheme[part] is the input to a rendering back-end, such as the HTML
+A @racket[part] is the input to a rendering back-end, such as the HTML
renderer. All renderers recognize a fixed structure hierarchy: the
content of a part is a @defterm{flow}, which is a sequence of
@defterm{flow elements}, such as paragraphs and tables; a table, in
turn, consists of a list of list of flows; a paragraph is a list of
-@defterm{elements}, which can be instances of the @scheme[element]
+@defterm{elements}, which can be instances of the @racket[element]
structure type, plain strings, or certain special symbols.
-The value bound to @scheme[doc] in the example above is something like
+The value bound to @racket[doc] in the example above is something like
-@schemeblock[
+@racketblock[
(make-part ....
(list "To Be" " or Not " "To Be") (code:comment "title")
....
@@ -125,38 +125,38 @@ The value bound to @scheme[doc] in the example above is something like
]
Notice that the @litchar{'} in the input's @litchar{'tis} has turned
-into @scheme['rsquo] (rendered as a curly apostrophe). The conversion to use
-@scheme['rsquo] was performed by @scheme[decode] via
-@scheme[decode-flow] via @scheme[decode-paragraph] via
-@scheme[decode-content] via @scheme[decode-string].
+into @racket['rsquo] (rendered as a curly apostrophe). The conversion to use
+@racket['rsquo] was performed by @racket[decode] via
+@racket[decode-flow] via @racket[decode-paragraph] via
+@racket[decode-content] via @racket[decode-string].
-In contrast, @scheme[(make-element 'bold (list "That"))] was produced
-by the @scheme[bold] function. The @scheme[decode] operation is a
-function, not a syntactic form, and so @scheme[bold] has control over
-its argument before @scheme[decode] sees the result. Also, decoding
+In contrast, @racket[(make-element 'bold (list "That"))] was produced
+by the @racket[bold] function. The @racket[decode] operation is a
+function, not a syntactic form, and so @racket[bold] has control over
+its argument before @racket[decode] sees the result. Also, decoding
traverses only immediate string arguments.
-As it turns out, @scheme[bold] also decodes its argument, because the
-@scheme[bold] function is implemented as
+As it turns out, @racket[bold] also decodes its argument, because the
+@racket[bold] function is implemented as
-@schemeblock[
+@racketblock[
(define (bold . strs)
(make-element 'bold (decode-content strs)))
]
-The @scheme[verbatim] function, however, does not decode its content,
+The @racket[verbatim] function, however, does not decode its content,
and instead typesets its text arguments directly.
A document module can construct elements directly using
-@scheme[make-element], but normally functions like @scheme[bold] and
-@scheme[verbatim] are used to construct them. In particular, the
-@schememodname[scribble/manual] library provides many functions and
+@racket[make-element], but normally functions like @racket[bold] and
+@racket[verbatim] are used to construct them. In particular, the
+@racketmodname[scribble/manual] library provides many functions and
forms to typeset elements and flow elements.
-The @scheme[part] structure hierarchy includes built-in element types
+The @racket[part] structure hierarchy includes built-in element types
for setting hyperlink targets and references. Again, this machinery is
normally packaged into higher-level functions and forms, such as
-@scheme[secref], @scheme[defproc], and @scheme[scheme].
+@racket[secref], @racket[defproc], and @racket[racket].
@; ----------------------------------------------------------------------
@@ -166,76 +166,76 @@ Working roughly from the bottom up, the Scribble layers are:
@itemize[
- @item{@schememodname[scribble/reader]: A reader that extends the
- syntax of Scheme with @"@"-forms for conveniently embedding a
+ @item{@racketmodname[scribble/reader]: A reader that extends the
+ syntax of Racket with @"@"-forms for conveniently embedding a
mixin of text and escapes. See @secref["reader"].}
- @item{@schememodname[scribble/core]: A set of document datatypes
+ @item{@racketmodname[scribble/core]: A set of document datatypes
and utilities that define the basic layout and processing of a
- document. For example, the @scheme[part] datatype is defined in
+ document. For example, the @racket[part] datatype is defined in
this layer. See @secref["core"].}
- @item{@schememodname[scribble/base-render] with
- @schememodname[scribble/html-render],
- @schememodname[scribble/latex-render], or
- @schememodname[scribble/text-render]: A base renderer and
+ @item{@racketmodname[scribble/base-render] with
+ @racketmodname[scribble/html-render],
+ @racketmodname[scribble/latex-render], or
+ @racketmodname[scribble/text-render]: A base renderer and
mixins that generate documents in various formats from
- instances of the @schememodname[scribble/struct] datatypes. See
+ instances of the @racketmodname[scribble/struct] datatypes. See
@secref["renderer"].}
- @item{@schememodname[scribble/decode]: Processes a stream of text,
+ @item{@racketmodname[scribble/decode]: Processes a stream of text,
section-start markers, etc. to produce instances of the
- @schememodname[scribble/core] datatypes. See
+ @racketmodname[scribble/core] datatypes. See
@secref["decode"].}
- @item{@schememodname[scribble/doclang]: A language to be used for the
+ @item{@racketmodname[scribble/doclang]: A language to be used for the
initial import of a module; processes the module top level
- through @schememodname[scribble/decode], and otherwise provides
- all of @schememodname[scheme/base]. See @secref["doclang"].}
+ through @racketmodname[scribble/decode], and otherwise provides
+ all of @racketmodname[racket/base]. See @secref["doclang"].}
- @item{@schememodname[scribble/doc]: A language that combines
- @schememodname[scribble/reader] with
- @schememodname[scribble/doclang]. See @secref["docreader"].}
+ @item{@racketmodname[scribble/doc]: A language that combines
+ @racketmodname[scribble/reader] with
+ @racketmodname[scribble/doclang]. See @secref["docreader"].}
- @item{@schememodname[scribble/base]: A library of basic document
- operators---such as @scheme[title], @scheme[section], and
- @scheme[secref]---for use with @schememodname[scribble/decode]
+ @item{@racketmodname[scribble/base]: A library of basic document
+ operators---such as @racket[title], @racket[section], and
+ @racket[secref]---for use with @racketmodname[scribble/decode]
and a renderer. This library name also can be used as a
- language, where it combines @schememodname[scribble/doc] with
- the exports of @schememodname[scribble/base]. See
+ language, where it combines @racketmodname[scribble/doc] with
+ the exports of @racketmodname[scribble/base]. See
@secref["base"].}
- @item{@schememodname[scribble/scheme]: A library of functions for
- typesetting Scheme code. See @secref["scheme"]. These functions
+ @item{@racketmodname[scribble/racket]: A library of functions for
+ typesetting Racket code. See @secref["scheme"]. These functions
are not normally used directly, but instead used through
- @schememodname[scribble/manual].}
+ @racketmodname[scribble/manual].}
- @item{@schememodname[scribble/manual]: A library of functions for
- writing PLT Scheme documentation; re-exports
- @schememodname[scribble/base]. Also, the
- @schememodname[scribble/manual-struct] library provides types
+ @item{@racketmodname[scribble/manual]: A library of functions for
+ writing Racket documentation; re-exports
+ @racketmodname[scribble/base]. Also, the
+ @racketmodname[scribble/manual-struct] library provides types
for index-entry descriptions created by functions in
- @schememodname[scribble/manual]. See @secref["manual"].}
+ @racketmodname[scribble/manual]. See @secref["manual"].}
- @item{@schememodname[scribble/eval]: A library of functions for
+ @item{@racketmodname[scribble/eval]: A library of functions for
evaluating code at document-build time, especially for showing
examples. See @secref["eval"].}
- @item{@schememodname[scribble/bnf]: A library of support functions
+ @item{@racketmodname[scribble/bnf]: A library of support functions
for writing grammars. See @secref["bnf"].}
- @item{@schememodname[scribble/xref]: A library of support functions
+ @item{@racketmodname[scribble/xref]: A library of support functions
for using cross-reference information, typically after a
document is rendered (e.g., to search). See @secref["xref"].}
- @item{@schememodname[scribble/text]: A language that uses
- @schememodname[scribble/reader] preprocessing text files.}
+ @item{@racketmodname[scribble/text]: A language that uses
+ @racketmodname[scribble/reader] preprocessing text files.}
]
The @exec{scribble} command-line utility generates output with a
specified renderer. More specifically, the executable installs a
renderer, loads the modules specified on the command line, extracts
-the @scheme[doc] export of each module (which must be an instance of
-@scheme[part]), and renders each---potentially with links that span
+the @racket[doc] export of each module (which must be an instance of
+@racket[part]), and renders each---potentially with links that span
documents.
diff --git a/collects/scribblings/scribble/lp.scrbl b/collects/scribblings/scribble/lp.scrbl
index 2814d6ad..a876995b 100644
--- a/collects/scribblings/scribble/lp.scrbl
+++ b/collects/scribblings/scribble/lp.scrbl
@@ -3,7 +3,7 @@
scribble/core
scribble/html-properties
scribble/latex-properties
- scheme/runtime-path
+ racket/runtime-path
(prefix-in lp-ex: "lp-ex-doc.scrbl")
"utils.ss"
(for-label scribble/lp-include scribble/lp))
@@ -14,17 +14,17 @@
(make-tex-addition "lp.tex")))
]{Literate Programming}
-Programs written using @schememodname[scribble/lp] are simultaneously
+Programs written using @racketmodname[scribble/lp] are simultaneously
two things: a program and a document describing the program.
-Programs in @schememodname[scribble/lp] are viewed in two different
+Programs in @racketmodname[scribble/lp] are viewed in two different
ways, either by running the program directly or by including it with
-@scheme[lp-include]. When running the program, all of the
-@scheme[chunk] expressions are collected and stitched together into a
+@racket[lp-include]. When running the program, all of the
+@racket[chunk] expressions are collected and stitched together into a
program, and the rest of the module is discarded. When using
-@scheme[lp-include], the entire contents of the module are preserved
+@racket[lp-include], the entire contents of the module are preserved
and are treated like an ordinary Scribble document, where
-@scheme[chunk]s are typeset in a manner similar to @scheme[codeblock].
+@racket[chunk]s are typeset in a manner similar to @racket[codeblock].
@(define-runtime-path lp-ex "lp-ex.rkt")
@@ -44,31 +44,31 @@ For example, consider this program:
[else
(list* line "\n" (loop))])))))))
-When this file is @scheme[require]d in the normal manner, it defines a
-function @scheme[f] that squares its argument, and the documentation
-is ignored. When it is included with @scheme[lp-include], it looks
+When this file is @racket[require]d in the normal manner, it defines a
+function @racket[f] that squares its argument, and the documentation
+is ignored. When it is included with @racket[lp-include], it looks
like this:
@(make-nested-flow
(make-style "LPBoxed" null)
(part-blocks lp-ex:doc))
-@section{@schememodname[scribble/lp] Language}
+@section{@racketmodname[scribble/lp] Language}
-@defmodulelang[scribble/lp]{The @schememodname[scribble/lp] language
+@defmodulelang[scribble/lp]{The @racketmodname[scribble/lp] language
provides core support for literate programming.}
@defform[(chunk id form ...)]{
- Introduces a chunk, binding @scheme[id] for use in other
- chunks. Normally, @scheme[id] starts with @litchar{<} and ends with
+ Introduces a chunk, binding @racket[id] for use in other
+ chunks. Normally, @racket[id] starts with @litchar{<} and ends with
@litchar{>}.
When running a scribble program only the code inside the
chunks is run; the rest is ignored.
- If @scheme[id] is @schemeidfont{<*>}, then this chunk is
- used as the main chunk in the file. If @schemeidfont{<*>}
+ If @racket[id] is @racketidfont{<*>}, then this chunk is
+ used as the main chunk in the file. If @racketidfont{<*>}
is never used, then the first chunk in the file is treated
as the main chunk. If some chunk is not referenced from
the main chunk (possibly indirectly via other chunks that
@@ -77,15 +77,15 @@ provides core support for literate programming.}
}
-@section{@schememodname[scribble/lp-include] Module}
+@section{@racketmodname[scribble/lp-include] Module}
@defmodule[scribble/lp-include]{The
-@schememodname[scribble/lp-include] library is normally used within a
+@racketmodname[scribble/lp-include] library is normally used within a
Scribble document---that is, a module that starts with something like
-@scheme[#, @hash-lang[] scribble/base] or @scheme[#, @hash-lang[]
-scribble/manual], instead of @scheme[#, @hash-lang[] scheme].}
+@racket[#, @hash-lang[] scribble/base] or @racket[#, @hash-lang[]
+scribble/manual], instead of @racket[#, @hash-lang[] racket].}
@defform[(lp-include filename)]{
-Includes the source of @scheme[filename] as the typeset version of the literate
+Includes the source of @racket[filename] as the typeset version of the literate
program.
}
diff --git a/collects/scribblings/scribble/manual-stub.scrbl b/collects/scribblings/scribble/manual-stub.scrbl
index 68cbb8b1..b373d528 100644
--- a/collects/scribblings/scribble/manual-stub.scrbl
+++ b/collects/scribblings/scribble/manual-stub.scrbl
@@ -2,7 +2,7 @@
@(require "utils.ss"
(for-label scribble/sigplan))
-@title{PLT Scheme Manual Format}
+@title{Racket Manual Format}
The @schememodname[scribble/manual] language is a major component of
Scribble, and it is documented in its own chapter:
diff --git a/collects/scribblings/scribble/manual.scrbl b/collects/scribblings/scribble/manual.scrbl
index a0552269..773fd9f7 100644
--- a/collects/scribblings/scribble/manual.scrbl
+++ b/collects/scribblings/scribble/manual.scrbl
@@ -1,255 +1,285 @@
#lang scribble/doc
@(require scribble/manual
"utils.ss"
- (for-syntax scheme/base)
+ (for-syntax racket/base)
(for-label scribble/manual-struct))
-@(define lit-ellipses (scheme ...))
-@(define lit-ellipses+ (scheme ...+))
+@(define lit-ellipses (racket ...))
+@(define lit-ellipses+ (racket ...+))
@title[#:tag "manual" #:style 'toc]{Manual Forms}
-@defmodulelang[scribble/manual]{The @schememodname[scribble/manual]
-language provides all of @schememodname[scribble/base] plus many
-additional functions that are specific to writing PLT Scheme
+@defmodulelang[scribble/manual]{The @racketmodname[scribble/manual]
+language provides all of @racketmodname[scribble/base] plus many
+additional functions that are specific to writing Racket
documentation.
-The @schememodname[scribble/manual] name can also be used as a library
-with @scheme[require], in which case it provides all of the same
+The @racketmodname[scribble/manual] name can also be used as a library
+with @racket[require], in which case it provides all of the same
bindings, but without setting the reader or setting the default
-rendering format to the PLT Scheme manual format.}
+rendering format to the Racket manual format.}
-With @hash-lang[], @schememodname[scribble/manual] associates a
-@scheme[latex-defaults] @tech{style property} with its @scheme[doc]
-export to select the default PLT Scheme manual style for Latex
-rendering---unless a style is supplied to @scheme[title] that already
-includes a @scheme[latex-defaults] @tech{style property}.
+With @hash-lang[], @racketmodname[scribble/manual] associates a
+@racket[latex-defaults] @tech{style property} with its @racket[doc]
+export to select the default Racket manual style for Latex
+rendering---unless a style is supplied to @racket[title] that already
+includes a @racket[latex-defaults] @tech{style property}.
@local-table-of-contents[]
@; ------------------------------------------------------------------------
@section[#:tag "scribble:manual:code"]{Typesetting Code}
-@defform[(schemeblock datum ...)]{
+@defform[(racketblock datum ...)]{
-Typesets the @scheme[datum] sequence as a table of Scheme code inset
-by two spaces. The source locations of the @scheme[datum]s determine
+Typesets the @racket[datum] sequence as a table of Racket code inset
+by two spaces. The source locations of the @racket[datum]s determine
the generated layout. For example,
-@schemeblock[
-(schemeblock
+@racketblock[
+(racketblock
(define (loop x)
(loop (not x))))
]
produces the output
-@schemeblock[
+@racketblock[
(define (loop x)
(loop (not x)))
]
-with the @scheme[(loop (not x))] indented under @scheme[define],
-because that's the way it is idented the use of @scheme[schemeblock].
+with the @racket[(loop (not x))] indented under @racket[define],
+because that's the way it is idented the use of @racket[racketblock].
-Furthermore, @scheme[define] is typeset as a keyword (bold and black)
-and as a hyperlink to @scheme[define]'s definition in the reference
+Furthermore, @racket[define] is typeset as a keyword (bold and black)
+and as a hyperlink to @racket[define]'s definition in the reference
manual, because this document was built using a for-label binding of
-@scheme[define] (in the source) that matches a definition in the
-reference manual. Similarly, @scheme[not] is a hyperlink to the its
+@racket[define] (in the source) that matches a definition in the
+reference manual. Similarly, @racket[not] is a hyperlink to the its
definition in the reference manual.
-Use @scheme[unsyntax] to escape back to an expression that produces an
-@scheme[element]. For example,
+Use @racket[unsyntax] to escape back to an expression that produces an
+@racket[element]. For example,
@let[([unsyntax #f])
-(schemeblock
- (schemeblock
- (+ 1 (unsyntax (elem (scheme x) (subscript "2"))))))
+(racketblock
+ (racketblock
+ (+ 1 (unsyntax (elem (racket x) (subscript "2"))))))
]
produces
-@schemeblock[
-(+ 1 (unsyntax (elem (scheme x) (subscript "2"))))
+@racketblock[
+(+ 1 (unsyntax (elem (racket x) (subscript "2"))))
]
-The @scheme[unsyntax] form is regonized via
-@scheme[free-identifier=?], so if you want to typeset code that
-includes @scheme[unsyntax], you can simply hide the usual binding:
+The @racket[unsyntax] form is regonized via
+@racket[free-identifier=?], so if you want to typeset code that
+includes @racket[unsyntax], you can simply hide the usual binding:
-@SCHEMEBLOCK[
-(schemeblock
- (let ([(UNSYNTAX (scheme unsyntax)) #f])
- (schemeblock
+@RACKETBLOCK[
+(racketblock
+ (let ([(UNSYNTAX (racket unsyntax)) #f])
+ (racketblock
(syntax (+ 1 (unsyntax x))))))
]
-Or use @scheme[SCHEMEBLOCK], whose escape form is @scheme[UNSYNTAX]
-instead of @scheme[unsyntax].
+Or use @racket[RACKETBLOCK], whose escape form is @racket[UNSYNTAX]
+instead of @racket[unsyntax].
A few other escapes are recognized symbolically:
@itemize[
- @item{@scheme[(#,(scheme code:line) _datum ...)] typesets as the
- sequence of @scheme[_datum]s (i.e., without the
- @scheme[code:line] wrapper).}
+ @item{@racket[(#,(indexed-racket code:line) _datum ...)] typesets as the
+ sequence of @racket[_datum]s (i.e., without the
+ @racket[code:line] wrapper).}
- @item{@scheme[(#,(scheme code:comment) _datum)] typesets like
- @scheme[_datum], but colored as a comment and prefixed with a
- semi-colon. A typical @scheme[_datum] escapes from
- Scheme-typesetting mode using @scheme[unsyntax] and
- produces a paragraph using @scheme[t]:
+ @item{@racket[(#,(indexed-racket code:comment) _datum)] typesets like
+ @racket[_datum], but colored as a comment and prefixed with a
+ semi-colon. A typical @racket[_datum] escapes from
+ Racket-typesetting mode using @racket[unsyntax] and
+ produces a paragraph using @racket[t]:
@verbatim[#:indent 2]|{
(code:comment @#,t{this is a comment})
}|
(Note that @litchar|{@#,foo{...}}| reads as
- @SCHEME[(unsyntax (foo "..."))].)
+ @RACKET[(unsyntax (foo "..."))].)
}
- @item{@schemeidfont{code:blank} typesets as a blank space.}
+ @item{@indexed-racket[code:blank] typesets as a blank space.}
- @item{@scheme[(#,(scheme code:hilite) _datum)] typesets like
- @scheme[_datum], but with a background highlight.}
+ @item{@racket[(#,(indexed-racket code:hilite) _datum)] typesets like
+ @racket[_datum], but with a background highlight.}
- @item{@scheme[(#,(scheme code:quote) _datum)] typesets like
- @scheme[(@#,schemeidfont{quote} _datum)], but without rendering the
- @schemeidfont{quote} as @litchar{'}.}
+ @item{@racket[(#,(indexed-racket code:quote) _datum)] typesets like
+ @racket[(@#,racketidfont{quote} _datum)], but without rendering the
+ @racketidfont{quote} as @litchar{'}.}
- @item{@schemeidfont{_}@scheme[_id] typesets as @scheme[id], but
- colored as a variable (like @scheme[schemevarfont]); this
- escape applies only if @schemeidfont{_}@scheme[_id] has no
+ @item{@racketidfont{_}@racket[_id] typesets as @racket[id], but
+ colored as a variable (like @racket[racketvarfont]); this
+ escape applies only if @racketidfont{_}@racket[_id] has no
for-label binding and is not specifically colored as a subform
- non-terminal via @scheme[defform], a variable via
- @scheme[defproc], etc.}
+ non-terminal via @racket[defform], a variable via
+ @racket[defproc], etc.}
]
-See also @schememodname[scribble/comment-reader].
+See also @racketmodname[scribble/comment-reader].
}
-@defform[(SCHEMEBLOCK datum ...)]{Like @scheme[schemeblock], but with
-the expression escape @scheme[UNSYNTAX] instead of @scheme[unsyntax].}
+@defform[(RACKETBLOCK datum ...)]{Like @racket[racketblock], but with
+the expression escape @racket[UNSYNTAX] instead of @racket[unsyntax].}
-@defform[(schemeblock0 datum ...)]{Like @scheme[schemeblock], but
+@defform[(racketblock0 datum ...)]{Like @racket[racketblock], but
without insetting the code.}
-@defform[(SCHEMEBLOCK0 datum ...)]{Like @scheme[SCHEMEBLOCK], but
+@defform[(RACKETBLOCK0 datum ...)]{Like @racket[RACKETBLOCK], but
without insetting the code.}
-@defform[(schemeinput datum ...)]{Like @scheme[schemeblock], but the
-@scheme[datum] are typeset after a prompt representing a REPL.}
+@defform[(racketinput datum ...)]{Like @racket[racketblock], but the
+@racket[datum] are typeset after a prompt representing a REPL.}
-@defform[(schememod lang datum ...)]{Like @scheme[schemeblock], but
-the @scheme[datum] are typeset inside a @schememodfont{#lang}-form
-module whose language is @scheme[lang]. The source location of
-@scheme[lang] (relative to the body @scheme[datum]s) determines the
-relative positioning of the @schememodfont{#lang} line in the typeset
+@defform[(racketmod lang datum ...)]{Like @racket[racketblock], but
+the @racket[datum] are typeset inside a @racketmodfont{#lang}-form
+module whose language is @racket[lang]. The source location of
+@racket[lang] (relative to the body @racket[datum]s) determines the
+relative positioning of the @racketmodfont{#lang} line in the typeset
output.}
-@defform[(scheme datum ...)]{Like @scheme[schemeblock], but typeset on
+@defform[(racket datum ...)]{Like @racket[racketblock], but typeset on
a single line and wrapped with its enclosing paragraph, independent of
-the formatting of @scheme[datum].}
+the formatting of @racket[datum].}
-@defform[(SCHEME datum ...)]{Like @scheme[scheme], but with the
-@scheme[UNSYNTAX] escape like @scheme[schemeblock].}
+@defform[(RACKET datum ...)]{Like @racket[racket], but with the
+@racket[UNSYNTAX] escape like @racket[racketblock].}
-@defform[(schemeresult datum ...)]{Like @scheme[scheme], but typeset
+@defform[(racketresult datum ...)]{Like @racket[racket], but typeset
as a REPL value (i.e., a single color with no hyperlinks).}
-@defform[(schemeid datum ...)]{Like @scheme[scheme], but typeset
+@defform[(racketid datum ...)]{Like @racket[racket], but typeset
as an unbound identifier (i.e., no coloring or hyperlinks).}
-@defform*[((schememodname datum)
- (schememodname ((unsyntax (scheme unsyntax)) expr)))]{
-Like @scheme[scheme], but typeset as a module path. If @scheme[datum]
-is an identifier or @scheme[expr] produces a symbol, then it is
+@defform*[((racketmodname datum)
+ (racketmodname ((unsyntax (racket unsyntax)) expr)))]{
+Like @racket[racket], but typeset as a module path. If @racket[datum]
+is an identifier or @racket[expr] produces a symbol, then it is
hyperlinked to the module path's definition as created by
-@scheme[defmodule].}
+@racket[defmodule].}
-@defform[(schememodlink datum pre-content-expr ...)]{
-Like @scheme[schememod], but separating the module path to link
-from the content to be linked. The @scheme[datum] module path is always
+@defform[(racketmodlink datum pre-content-expr ...)]{
+Like @racket[racketmod], but separating the module path to link
+from the content to be linked. The @racket[datum] module path is always
linked, even if it is not an identifier.}
-@defproc[(litchar [str string?] ...) element?]{Typesets @scheme[str]s as a
+@defproc[(litchar [str string?] ...) element?]{Typesets @racket[str]s as a
representation of literal text. Use this when you have to talk about
the individual characters in a stream of text, as as when documenting
a reader extension.}
-@defproc[(schemefont [pre-content pre-content?] ...) element?]{Typesets
-@tech{decode}d @scheme[pre-content] as uncolored, unhyperlinked
-Scheme. This procedure is useful for typesetting things like
-@schemefont{#lang}, which are not @scheme[read]able by themselves.}
+@defproc[(racketfont [pre-content pre-content?] ...) element?]{Typesets
+@tech{decode}d @racket[pre-content] as uncolored, unhyperlinked
+Racket. This procedure is useful for typesetting things like
+@racketfont{#lang}, which are not @racket[read]able by themselves.}
-@defproc[(schemevalfont [pre-content pre-content?] ...) element?]{Like
-@scheme[schemefont], but colored as a value.}
+@defproc[(racketvalfont [pre-content pre-content?] ...) element?]{Like
+@racket[racketfont], but colored as a value.}
-@defproc[(schemeresultfont [pre-content pre-content?] ...) element?]{Like
-@scheme[schemefont], but colored as a REPL result.}
+@defproc[(racketresultfont [pre-content pre-content?] ...) element?]{Like
+@racket[racketfont], but colored as a REPL result.}
-@defproc[(schemeidfont [pre-content pre-content?] ...) element?]{Like
-@scheme[schemefont], but colored as an identifier.}
+@defproc[(racketidfont [pre-content pre-content?] ...) element?]{Like
+@racket[racketfont], but colored as an identifier.}
-@defproc[(schemevarfont [pre-content pre-content?] ...) element?]{Like
-@scheme[schemefont], but colored as a variable (i.e., an argument or
+@defproc[(racketvarfont [pre-content pre-content?] ...) element?]{Like
+@racket[racketfont], but colored as a variable (i.e., an argument or
sub-form in a procedure being documented).}
-@defproc[(schemekeywordfont [pre-content pre-content?] ...) element?]{Like
-@scheme[schemefont], but colored as a syntactic form name.}
+@defproc[(racketkeywordfont [pre-content pre-content?] ...) element?]{Like
+@racket[racketfont], but colored as a syntactic form name.}
-@defproc[(schemeparenfont [pre-content pre-content?] ...) element?]{Like
-@scheme[schemefont], but colored like parentheses.}
+@defproc[(racketparenfont [pre-content pre-content?] ...) element?]{Like
+@racket[racketfont], but colored like parentheses.}
-@defproc[(schememetafont [pre-content pre-content?] ...) element?]{Like
-@scheme[schemefont], but colored as meta-syntax, such as backquote or
+@defproc[(racketmetafont [pre-content pre-content?] ...) element?]{Like
+@racket[racketfont], but colored as meta-syntax, such as backquote or
unquote.}
-@defproc[(schemeerror [pre-content pre-content?] ...) element?]{Like
-@scheme[schemefont], but colored as error-message text.}
+@defproc[(racketerror [pre-content pre-content?] ...) element?]{Like
+@racket[racketfont], but colored as error-message text.}
-@defproc[(schememodfont [pre-content pre-content?] ...) element?]{Like
-@scheme[schemefont], but colored as module name.}
+@defproc[(racketmodfont [pre-content pre-content?] ...) element?]{Like
+@racket[racketfont], but colored as module name.}
-@defproc[(schemeoutput [pre-content pre-content?] ...) element?]{Like
-@scheme[schemefont], but colored as output.}
+@defproc[(racketoutput [pre-content pre-content?] ...) element?]{Like
+@racket[racketfont], but colored as output.}
@defproc[(procedure [pre-content pre-content?] ...) element?]{Typesets
-@tech{decode}d @scheme[pre-content] as a procedure name in a REPL
+@tech{decode}d @racket[pre-content] as a procedure name in a REPL
result (e.g., in typewriter font with a @litchar{# |