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

\environment pagecolumns-000

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

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

\starttext

\startpagecolumns[example]

\dorecurse {7} {
  \startplacefigure[location={here,none}]
    \framed
      [width=\columnwidth,
       height=1cm,
       frame=off,
       background=color,
       backgroundcolor=color-2]
      {Here: A.#1}
  \stopplacefigure
  \samplefile{tufte}
  \startplacefigure[location={here,none}]
    \framed
      [width=\columnwidth,
       height=1cm,
       frame=off,
       background=color,
       backgroundcolor=color-2]
      {Here: B.#1}
  \stopplacefigure
  \samplefile{tufte}
  \startplacefigure[location={here,none}]
    \framed
      [width=\textwidth,
       height=1cm,
       frame=off,
       background=color,
       backgroundcolor=color-2]
      {Here: C.#1}
  \stopplacefigure
  \startplacefigure[location={here,none}]
    \framed
      [width=\measure{twocolumns},
       height=1cm,
       frame=off,
       background=color,
       backgroundcolor=color-2]
      {Here: D.#1}
  \stopplacefigure
  \samplefile{tufte}
  \startplacefigure[location={force,none}]
    \framed
      [width=\columnwidth,
       height=1cm,
       frame=off,
       background=color,
       backgroundcolor=color-2]
      {Force: E.#1}
  \stopplacefigure
}

\dorecurse {7} {
  \samplefile{tufte}
  \par
}

\stoppagecolumns

\stoptext