summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/notnow/notnow.tex
blob: e1768db41a22249e636ea9875f88bd215d7563cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
% language=uk

\usemodule[typesetting]

\defineexternalfigure
  [typesetting]
  [frame=on,
   framecolor=darkblue,
   rulethickness=1pt]

\setupcombination
  [twopages]
  [style=bold,
   color=darkblue]

\setupbodyfont
  [ebgaramond,14.4pt]

\setuphead
  [chapter]
  [style=\bfc,
   header=empty,
   color=darkblue]

\setuplist
  [chapter]
  [alternative=c,
   width=1.5em]

\setuplayout
 [width=middle,
  height=middle,
  topspace=15mm,
  backspace=15mm,
  header=15mm,
  footer=0mm]

\setupwhitespace
  [big]

\setuptype
  [color=darkblue]

\setuptyping
  [color=darkblue]

\setuppagenumbering
  [alternative=doublesided]

% \showframe

\startdocument[author=Hans Hagen]

\definefont[NotNow][Serif*default @ 18pt]%
\definefont[NotNot][Serif*default @  2.5pt]%

\startpagemakeup[pagestate=stop]
    \scale[width=\paperwidth,height=\paperheight] \bgroup
        \bTABLE[strut=no,height=29.7pt,width=21pt,align={lohi,middle},foregroundcolor=white,framecolor=white,background=color]
            \bTR
                \bTD[backgroundcolor=darkblue] \NotNow W \eTD
                \bTD[backgroundcolor=darkgray] \NotNow H \eTD
                \bTD[backgroundcolor=darkblue] \NotNow Y \eTD
            \eTR
            \bTR
                \bTD[backgroundcolor=darkgray] \NotNow N \eTD
                \bTD[backgroundcolor=darkblue] \NotNow O \eTD
                \bTD[backgroundcolor=darkgray] \NotNow T \eTD
            \eTR
            \bTR
                \bTD[backgroundcolor=darkblue] \NotNow N \eTD
                \bTD[backgroundcolor=darkgray] \NotNow O \eTD
                \bTD[backgroundcolor=darkblue] \NotNow W \eTD
            \eTR
        \eTABLE
    \egroup
\stoppagemakeup

\starttitle[title=Contents]

    \placelist[chapter]

\stoptitle

\startchapter[title=Introduction]

You can do a lot in \CONTEXT\ but for sure there are limitations too. There are
quite some sub|-|mechanisms and sometimes there are more solutions for one
problem. For instance, we have several table mechanisms and several
multi|-|column mechanisms. In this document we will collect information about
what doesn't work (well) and if possible indicate why. Feel free to submit more
items. We will also discuss features that do work in most cases but are somewhat
unreliable.

Does that mean that we cannot make everything work? No, sometimes demands are too
conflicting. Yes, we can implement more, but it simply doesn't pay off to spend
time on writing code that is used seldom. Keep in mind that much of \CONTEXT\ is
written in spare time without any compensation. Publishers have demands but
seldom are willing to pay for it. Users have demands and no means to pay for it.
On the other hand, user demands often have challenging properties that trigger
development. Sometimes a project has as side effect that some mechanism become
better.

The good news that one can often work around it. Not all typesetting has to be
fully automatic. And there are always reasonable typographic alternatives. The
examples shown here can be run on your machine.

\stopchapter

\startchapter[title=Columns and notes]

Because \TEX\ doesn't really support columns we need to cook up some magic to
achieve them. Especially a mix between single and multi|-|columns is sort of
tricky. Because notes are inserts and inserts play a role in determining the
optimal breakpoints they can interfere badly, depending on the mechanism used. In
\CONTEXT\ we use mixed columns for multi|-|column itemizations and as these can
have footnotes you can end up in troubles.

\typefile{notnow-columns-and-notes.tex}

In such case the notes are postponed and flushed {\em after} the itemized list so
they can end up on a next page. If this happens depends on how much room there is
on the page. Solutions are possible (and the old \MKII\ column handler might
behave better in some cases) but it's not worth the trouble to complicate the
already complex code more than needed. Also, it will never be perfect anyway.

\FirstPages{notnow-columns-and-notes}

\stopchapter

\startpagemakeup[pagestate=stop,page=left,doublesided=no]
    \scale[width=\paperwidth,height=\paperheight] \bgroup
        \bTABLE[strut=no,height=29.7pt,width=21pt,align={lohi,middle},foregroundcolor=white,framecolor=white,background=color]
            \bTR
                \bTD[backgroundcolor=darkblue] \eTD
                \bTD[backgroundcolor=darkgray] \eTD
                \bTD[backgroundcolor=darkblue] \eTD
            \eTR
            \bTR
                \bTD[backgroundcolor=darkgray] \eTD
                \bTD[backgroundcolor=darkblue] \eTD
                \bTD[backgroundcolor=darkgray] \eTD
            \eTR
            \bTR
                \bTD[backgroundcolor=darkblue] \eTD
                \bTD[backgroundcolor=darkgray] \eTD
                \bTD[backgroundcolor=darkblue,foregroundstyle=\NotNot]
                    Hans Hagen \vfilll PRAGMA ADE \vfilll Hasselt NL
                \eTD
            \eTR
        \eTABLE
    \egroup
\stoppagemakeup

\startchapter[title=Sidefloats]

Support for side floats is non|-|trivial and no solution will serve all intended
usage. Over the years we have improved on border cases but it is still not
perfect. For that reason the implementation is (apart from solving bugs, mostly) frozen.
Here is an example of a use case that we ran into. We manipulate the spacing with
an offset parameter.

\typefile{notnow-sidefloats.tex}

You can best play with these parameters and see what they do. If you use this
mechanism in a long term project, use a frozen instance of \CONTEXT !

\TwoPages{notnow-sidefloats}

The second pages has preceding and trailing whitespace outside the sidefloat
flow.

\stopchapter

\stopdocument