[NTG-context] columnset issues

Henning Hraban Ramm texml at fiee.net
Sun Jan 26 13:07:59 CET 2020


Another set of columnset issues: columnset areas

(1)
In the columnsets manual, there’s a type key or a second optional parameter to \definecolumnsetarea that’s actually missing (commented code in page-cst.mkiv).

The manual doesn’t explain the setup keys; I assume x/nx is in columns, y/ny is in lines, while x/y is the start and nx/ny the size.

(2)
Since float placement doesn’t work like I need it (must make another MWE to better nail it), I thought I’d try columnset areas for the placement of ads:


\usemodule[visual]
\useMPlibrary[dum]
\definecolor[fakerulecolor][gray]
\setuplayout[
  grid=yes,
]
\showframe[text]
\showgrid

\definecolumnset[Two][
  n=2,
  page=no,
]

\definecolumnsetarea[AdSpace][
  x=1,y=20,
  nx=1,ny=20,
  state=stop
]


\starttext
\startcolumnset[Two]

\fakewords{20}{30}

\setupcolumnsetareatext[AdSpace]{\externalfigure[MyAd][width=\textwidth,height=0.45\textheight]}
\setupcolumnsetarea[AdSpace][state=start]

\fakewords{200}{200}

\stopcolumnset

\stoptext


The "AdSpace" should cover the lower left quarter of the page, y=20 should start it in line 20, and ny=20 should make it 20 lines high, right?

But "MyAd" appears always at the place where I put \setupcolumnsetareatext.

Is this an error on my side, or is the code just incomplete/buggy/not ready?



Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD



More information about the ntg-context mailing list