ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: columnset issues
Date: Mon, 27 Jan 2020 23:22:49 +0100	[thread overview]
Message-ID: <B65C089D-09C5-4D74-B1A3-9DC418FE544B@fiee.net> (raw)
In-Reply-To: <9466830e-ba0e-63e8-15b0-e9e747ff1e26@gmail.com>


> Am 2020-01-27 um 20:28 schrieb Wolfgang Schuster <wolfgang.schuster.lists@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@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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2020-01-27 22:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-19 22:38 Henning Hraban Ramm
2020-01-19 22:40 ` Henning Hraban Ramm
2020-01-20  6:54 ` another columnset issue (solved) Henning Hraban Ramm
2020-01-26 12:07 ` columnset issues Henning Hraban Ramm
2020-01-27  9:31   ` Henning Hraban Ramm
2020-01-27 19:28     ` Wolfgang Schuster
2020-01-27 22:22       ` Henning Hraban Ramm [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B65C089D-09C5-4D74-B1A3-9DC418FE544B@fiee.net \
    --to=texml@fiee.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).