[NTG-context] columnset issues
Henning Hraban Ramm
texml at fiee.net
Mon Jan 27 23:22:49 CET 2020
> Am 2020-01-27 um 20:28 schrieb Wolfgang Schuster <wolfgang.schuster.lists at gmail.com>:
>
> Henning Hraban Ramm schrieb am 27.01.2020 um 10:31:
>>> Am 2020-01-26 um 13:07 schrieb Henning Hraban Ramm <texml at fiee.net>:
>>>
>>> I thought I’d try columnset areas for the placement of ads:
>> This MWE shows better what’s going on:
>> The "area" space is reserved as requested, but its contents get placed elsewhere.
>>
>>
>> \usemodule[visual]
>> \useMPlibrary[dum]
>> \definecolor[fakerulecolor][gray]
>> \setuplayout[
>> grid=yes,
>> ]
>> \showframe[text]
>> \showgrid
>>
>> \definecolumnset[Two][
>> n=2,
>> page=no,
>> ]
>> %\definecolumnsetspan[TwoSpan][n=2]
>> \definecolumnsetarea[AdSpace][
>> x=1,y=21,
>> nx=1,ny=21,
>> state=stop,
>> frame=on,
>> framecolor=magenta,
>> ]
>>
>>
>> \starttext
>> \startcolumnset[Two]
>>
>> \dorecurse{10}{\fakewords{100}{120}\par}
>>
>> \setupcolumnsetarea[AdSpace][state=start]
>> \setupcolumnsetareatext[AdSpace]{\externalfigure[MyAd][width=\textwidth,height=0.45\textheight]}
>
> You need brackets for both argument, i.e. \setupcolumnsetareatext[...][...] but even then your example only works when I place the areatext before \startcolumnset.
Ah, thank you!
But even if I put the commands before \startcolumnset, the "AdSpace" appears on the second page. While this was the intention of the example, it seems like I can’t control on which page my ads/images appear.
In my actual project, all the defined columnsetareas show up on the second page (where the first columnset starts), even though all have state=stop, and never show up again where I set state=start.
I wanted to use it like
\define[2]\Anzeige{%
\setupcolumnsetareatext[ad#1][{\externalfigure[#2][width=\overlaywidth]}]
\setupcolumnsetarea[ad#1][state=start]
}
I also tried to just reserve the space with columnsetareas and place the ads with \setlayer; that would work if I could control the placement of the areas...
Since I must complete this project within this week, I already started from scratch in my layout program (switched from my old InDesign to Affinity Publisher – much cheaper but even less fun). Seems like I overestimated ConTeXt’s (and my) readiness for this kind of layout. A pity.
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