notnow.tex /size: 5725 b    last modification: 2021-10-28 13:50
1% language=us runpath=texruns:manuals/notnow
2
3\usemodule[typesetting]
4
5\defineexternalfigure
6  [typesetting]
7  [frame=on,
8   framecolor=darkblue,
9   rulethickness=1pt]
10
11\setupcombination
12  [twopages]
13  [style=bold,
14   color=darkblue]
15
16\setupbodyfont
17  [ebgaramond,14.4pt]
18
19\setuphead
20  [chapter]
21  [style=\bfc,
22   header=empty,
23   color=darkblue]
24
25\setuplist
26  [chapter]
27  [alternative=c,
28   width=1.5em]
29
30\setuplayout
31 [width=middle,
32  height=middle,
33  topspace=15mm,
34  backspace=15mm,
35  header=15mm,
36  footer=0mm]
37
38\setupwhitespace
39  [big]
40
41\setuptype
42  [color=darkblue]
43
44\setuptyping
45  [color=darkblue]
46
47\setuppagenumbering
48  [alternative=doublesided]
49
50% \showframe
51
52\startdocument[author=Hans Hagen]
53
54\definefont[NotNow][Serif*default @ 18pt]%
55\definefont[NotNot][Serif*default @  2.5pt]%
56
57\startpagemakeup[pagestate=stop]
58    \scale[width=\paperwidth,height=\paperheight] \bgroup
59        \bTABLE[strut=no,height=29.7pt,width=21pt,align={lohi,middle},foregroundcolor=white,framecolor=white,background=color]
60            \bTR
61                \bTD[backgroundcolor=darkblue] \NotNow W \eTD
62                \bTD[backgroundcolor=darkgray] \NotNow H \eTD
63                \bTD[backgroundcolor=darkblue] \NotNow Y \eTD
64            \eTR
65            \bTR
66                \bTD[backgroundcolor=darkgray] \NotNow N \eTD
67                \bTD[backgroundcolor=darkblue] \NotNow O \eTD
68                \bTD[backgroundcolor=darkgray] \NotNow T \eTD
69            \eTR
70            \bTR
71                \bTD[backgroundcolor=darkblue] \NotNow N \eTD
72                \bTD[backgroundcolor=darkgray] \NotNow O \eTD
73                \bTD[backgroundcolor=darkblue] \NotNow W \eTD
74            \eTR
75        \eTABLE
76    \egroup
77\stoppagemakeup
78
79\starttitle[title=Contents]
80
81    \placelist[chapter]
82
83\stoptitle
84
85\startchapter[title=Introduction]
86
87You can do a lot in \CONTEXT\ but for sure there are limitations too. There are
88quite some sub|-|mechanisms and sometimes there are more solutions for one
89problem. For instance, we have several table mechanisms and several
90multi|-|column mechanisms. In this document we will collect information about
91what doesn't work (well) and if possible indicate why. Feel free to submit more
92items. We will also discuss features that do work in most cases but are somewhat
93unreliable.
94
95Does that mean that we cannot make everything work? No, sometimes demands are too
96conflicting. Yes, we can implement more, but it simply doesn't pay off to spend
97time on writing code that is used seldom. Keep in mind that much of \CONTEXT\ is
98written in spare time without any compensation. Publishers have demands but
99seldom are willing to pay for it. Users have demands and no means to pay for it.
100On the other hand, user demands often have challenging properties that trigger
101development. Sometimes a project has as side effect that some mechanism become
102better.
103
104The good news that one can often work around it. Not all typesetting has to be
105fully automatic. And there are always reasonable typographic alternatives. The
106examples shown here can be run on your machine.
107
108\stopchapter
109
110\startchapter[title=Columns and notes]
111
112Because \TEX\ doesn't really support columns we need to cook up some magic to
113achieve them. Especially a mix between single and multi|-|columns is sort of
114tricky. Because notes are inserts and inserts play a role in determining the
115optimal breakpoints they can interfere badly, depending on the mechanism used. In
116\CONTEXT\ we use mixed columns for multi|-|column itemizations and as these can
117have footnotes you can end up in troubles.
118
119\typefile{notnow-columns-and-notes.tex}
120
121In such case the notes are postponed and flushed {\em after} the itemized list so
122they can end up on a next page. If this happens depends on how much room there is
123on the page. Solutions are possible (and the old \MKII\ column handler might
124behave better in some cases) but it's not worth the trouble to complicate the
125already complex code more than needed. Also, it will never be perfect anyway.
126
127\FirstPages{notnow-columns-and-notes}
128
129\stopchapter
130
131\startchapter[title=Sidefloats]
132
133Support for side floats is non|-|trivial and no solution will serve all intended
134usage. Over the years we have improved on border cases but it is still not
135perfect. For that reason the implementation is (apart from solving bugs, mostly) frozen.
136Here is an example of a use case that we ran into. We manipulate the spacing with
137an offset parameter.
138
139\typefile{notnow-sidefloats.tex}
140
141You can best play with these parameters and see what they do. If you use this
142mechanism in a long term project, use a frozen instance of \CONTEXT !
143
144\TwoPages{notnow-sidefloats}
145
146The second pages has preceding and trailing whitespace outside the sidefloat
147flow.
148
149\stopchapter
150
151\startpagemakeup[pagestate=stop,page=left,doublesided=no]
152    \scale[width=\paperwidth,height=\paperheight] \bgroup
153        \bTABLE[strut=no,height=29.7pt,width=21pt,align={lohi,middle},foregroundcolor=white,framecolor=white,background=color]
154            \bTR
155                \bTD[backgroundcolor=darkblue] \eTD
156                \bTD[backgroundcolor=darkgray] \eTD
157                \bTD[backgroundcolor=darkblue] \eTD
158            \eTR
159            \bTR
160                \bTD[backgroundcolor=darkgray] \eTD
161                \bTD[backgroundcolor=darkblue] \eTD
162                \bTD[backgroundcolor=darkgray] \eTD
163            \eTR
164            \bTR
165                \bTD[backgroundcolor=darkblue] \eTD
166                \bTD[backgroundcolor=darkgray] \eTD
167                \bTD[backgroundcolor=darkblue,foregroundstyle=\NotNot]
168                    Hans Hagen \vfilll PRAGMA ADE \vfilll Hasselt NL
169                \eTD
170            \eTR
171        \eTABLE
172    \egroup
173\stoppagemakeup
174
175\stopdocument
176