summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/context/manuals/reference/en/columns/cols-000.tex
blob: 19268fb0b578c53250d635c414f0440434a83f01 (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
% content=tex
%
% copyright=pragma-ade readme=readme.pdf licence=cc-by-nc-sa

\startenvironment cols-000

\dontcomplain

\usemodule[visual]

\useMPlibrary[dum]

\usetypescript
  [palatino]
  [\defaultencoding]

\setupbodyfont
  [palatino]

\setupcolors
  [state=start]

\setuplayout
  [grid=yes]

\setuplayout
  [middle]

\setupsystem
  [random=1234]

\setuppagenumbering
  [alternative=doublesided,
   location=]

\setupheadertexts
  [pagenumber][right]
  [left][pagenumber]

\setupfootertexts
  [\tttf\inputfilename]

\setuptolerance
  [verytolerant,stretch]

% todo: flatten

\startuniqueMPgraphic{frame}
  fill OverlayBox withcolor transparent(1,.25,red) ;
  fill OverlayBox withcolor transparent(1,.25,blue);
\stopuniqueMPgraphic

\startuniqueMPgraphic{contrast}
  fill OverlayBox withcolor white ;
  fill OverlayBox withcolor transparent(1,.25,red) ;
  fill OverlayBox withcolor transparent(1,.25,yellow) ;
\stopuniqueMPgraphic

\defineoverlay[frame]   [\useMPgraphic{frame}]
\defineoverlay[contrast][\useMPgraphic{contrast}]

\definecolor[red]  [r=.75,g=.5,b=.5]
\definecolor[green][r=.5,g=.75,b=.5]
\definecolor[blue] [r=.5,g=.5,b=.75]

\stopenvironment