summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/pagecolumns/pagecolumns-007.tex
blob: aefa62588d3285cfb431a27bbc0835fa88ba5ae7 (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
% content=tex
%
% copyright=pragma-ade readme=readme.pdf licence=cc-by-nc-sa

\environment pagecolumns-000

\definepagecolumns[example][n=2,distance=\emwidth]

\setupbackgrounds[text][background=color,backgroundcolor=color-1]

\useMPlibrary[dum]

\starttext

\startbuffer[small]
    \framed
      [width=3cm,
       height=2cm,
       frame=off,
       background=color,
       backgroundcolor=color-2]
      {Small}
\stopbuffer

\startbuffer[large]
    \framed
      [width=12cm,
       height=6cm,
       frame=off,
       background=color,
       backgroundcolor=color-2]
      {Large}
\stopbuffer

\startpagecolumns[example]
    \samplefile{tufte}\par
    \startplacefigure[location=here,title=Test]
        \getbuffer[small]
    \stopplacefigure
    \startplacefigure[location=here,title=Test]
        \getbuffer[small]
    \stopplacefigure
    \samplefile{tufte}\par
\stoppagecolumns

\startpagecolumns[example]
    \samplefile{tufte}\par
    \startplacefigure[location=here,title=Test]
        \getbuffer[small]
    \stopplacefigure
    \startplacefigure[location=here,title=Test]
        \getbuffer[large]
    \stopplacefigure
    \samplefile{tufte}\par
\stoppagecolumns

\startpagecolumns[example]
    \samplefile{tufte}\par
    \startplacefigure[location=here,title=Test]
        \getbuffer[large]
    \stopplacefigure
    \startplacefigure[location=here,title=Test]
        \getbuffer[large]
    \stopplacefigure
    \samplefile{tufte}\par
\stoppagecolumns

\stoptext