{"size": 1175, "ext": "scrbl", "max_stars_repo_path": "scribble-doc/scriblib/scribblings/book-index.scrbl", "max_stars_repo_name": "cwebber/scribble", "max_stars_repo_stars_event_min_datetime": "2015-01-11T18:19:42.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T08:45:52.000Z", "max_issues_repo_path": "scribble-doc/scriblib/scribblings/book-index.scrbl", "max_issues_repo_name": "cwebber/scribble", "max_issues_repo_issues_event_min_datetime": "2015-03-24T20:53:21.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-20T22:51:57.000Z", "max_forks_repo_path": "scribble-doc/scriblib/scribblings/book-index.scrbl", "max_forks_repo_name": "cwebber/scribble", "max_forks_repo_forks_event_min_datetime": "2015-03-09T12:23:06.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-07T15:00:13.000Z"}
{"max_stars_count": 161, "max_issues_count": 260, "max_forks_count": 103, "avg_line_length": 32.6388888889, "max_line_length": 70, "alphanum_fraction": 0.7429787234}
#lang scribble/manual
@(require (for-label scribble/core
                     racket/base
                     scriblib/book-index))

@title[#:tag "book-index"]{Book-Style Indexing}

@defmodule[scriblib/book-index]{Provides a list of style properties to
attach to a Scribble document that contains an index part, making the
index more suitable for a traditional rendering on paper. The style
properties cause index entries to be merged when they have the same
content, with (potentially) multiple page numbers attached to the
merged entry.}

@defthing[book-index-style-properties list?]{

Combine these style properties with others for the style of a part
(typically specified in @racket[title]) for a document that contains
an index. The style properties enable index merging and select an
implementation based on the @tt{cleveref} Latex package.

Example:

@codeblock[#:keep-lang-line? #t]|{
#lang scribble/base
@(require scriblib/book-index
          (only-in scribble/core make-style))

@title[#:style (make-style #f book-index-style-properties)]{Demo}

This paragraph is about @as-index{examples}.

This paragraph is about @as-index{examples}, too.

@index-section[]}|}
