interaction-structure.tex /size: 2610 b    last modification: 2023-12-21 09:43
1% language=us
2
3\environment interaction-style
4
5\startcomponent interaction-structure
6
7\startchapter[title=Structure]
8
9There is a lot of structure in \CONTEXT:
10
11\startitemize[packed]
12\startitem document structure: projects, products, components, environments \stopitem
13\startitem sectioning, with or without numbers (visible), support for lists and userdata \stopitem
14\startitem lists, most often related to sections, but there are more \stopitem
15\startitem registers \stopitem
16\startitem itemized lists \stopitem
17\startitem images, \METAPOST\ graphics, different types of tables \stopitem
18\startitem typographical objects: constructions, descriptions and enumerations \stopitem
19\startitem notes, like footnotes, endnotes, linenotes \stopitem
20\startitem marginal notes \stopitem
21\startitem formulas (and subformulas) \stopitem
22\startitem text areas, layers, overlays \stopitem
23\startitem graphic placement with captions and references \stopitem
24\startitem cross references to most structural components \stopitem
25\startitem bibliographic databases and citations \stopitem
26\blank
27\startitem \unknown\ and more \unknown \stopitem
28\stopitemize
29
30Most of them in some way carry information about their location in the document
31and on the page, and sometimes their exact position. This also means that we can
32use that information for annotations. But most users will use the standard
33functionality.
34
35\starttyping
36\startsection[title=Whatever]
37    ...
38\stopsection
39\stoptyping
40
41In addition to typesetting this will add the title to a list. In order to do that
42some anchor has to be placed in the text, because we need to register the exact
43location in order to get the right pagenumber after \TEX\ has broken the flow into
44pages.
45
46\starttyping
47\placelist[section][criterium=text]
48\stoptyping
49
50This will place a list of all sections. If you want the whole entry to be a
51clickable areas, you can say:
52
53\starttyping
54\placelist[section][interaction=all]
55\stoptyping
56
57Otherwise only clicking on the title will bring you to the spot. If you also say:
58
59\starttyping
60\setuphead[interaction=list]
61\stoptyping
62
63Clicking on the head will bring you back to the table of contents. There are
64special list rendering alternatives for interactive documents (\typ
65{alternative=e} onwards). You can use the \type {list} and \type {bookmark}
66parameters to a section head to deviate from the given \type {title}.
67
68Many commands accept a \type {reference} as optional argument and when you use
69an alternative with key|/|values a \type {reference} key will do the job.
70
71{\em What should go into this chapter.}
72
73\stopchapter
74
75\stopcomponent
76
77