ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* marking in columnset
@ 2005-11-24 12:10 Vit Zyka
  2005-11-24 15:17 ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Vit Zyka @ 2005-11-24 12:10 UTC (permalink / raw)


Dear ConTeXters,

several kind of marking variants (first, last, both, ...) works 
perfectly in standard one-column layout:

----------------------------------------------------
\definemarking[M]

\startsetups S
   default=(\getmarking[M])~
   first=(\getmarking[M][first])~
   last=(\getmarking[M][last])~
   previous=(\getmarking[M][previous])~
   both=(\getmarking[M][both])~
   all=(\getmarking[M][all])~
   current=(\getmarking[M][current])
\stopsetups

\setupheadertexts[text]
   [\setups{S}][]
   [\setups{S}][]
\setuppagenumbering[location=footer]

\starttext

\startbuffer
   \section{Knuth}
   \marking[M]{k1}\marking[M]{k2}
   \input knuth
   \section{Zapf}
   \marking[M]{z}
   \input zapf
\stopbuffer

\dorecurse{10}{\getbuffer}

\stoptext
-------------------------------------------------------

If I try the same example in columnset layout, only last variant works 
as expected:
-------------------------------------------------------
\definemarking[M]

\startsetups S
   default=(\getmarking[M])~
   first=(\getmarking[M][first])~
   last=(\getmarking[M][last])~
   previous=(\getmarking[M][previous])~
   both=(\getmarking[M][both])~
   all=(\getmarking[M][all])~
   current=(\getmarking[M][current])
\stopsetups

\setupheadertexts[text]
   [\setups{S}][]
   [\setups{S}][]
\setuppagenumbering[location=none]

\definecolumnset[C][n=3]

\starttext

\startbuffer
   \section{Knuth}
   \marking[M]{k1}\marking[M]{k2}
   \input knuth
   \section{Zapf}
   \marking[M]{z}
   \input zapf
\stopbuffer

\startcolumnset[C]
\dorecurse{10}{\getbuffer}
\stopcolumnset

\stoptext
---------------------------------------------------------------

(Focus on page 1 and 4)

Is there any idea how to fix this?
Vit

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: marking in columnset
  2005-11-24 12:10 marking in columnset Vit Zyka
@ 2005-11-24 15:17 ` Hans Hagen
  2005-11-24 16:38   ` Vit Zyka
  0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2005-11-24 15:17 UTC (permalink / raw)


Vit Zyka wrote:

> (Focus on page 1 and 4)
>
> Is there any idea how to fix this?

afaiks, what you get is the markings of the last column

so, it looks like i have to fix something

Hans

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: marking in columnset
  2005-11-24 15:17 ` Hans Hagen
@ 2005-11-24 16:38   ` Vit Zyka
  2005-11-24 16:54     ` Hans Hagen
  2005-11-24 17:55     ` Hans Hagen
  0 siblings, 2 replies; 10+ messages in thread
From: Vit Zyka @ 2005-11-24 16:38 UTC (permalink / raw)


Hans Hagen wrote:
> Vit Zyka wrote:
> 
>> (Focus on page 1 and 4)
>>
>> Is there any idea how to fix this?
> 
> 
> afaiks, what you get is the markings of the last column
> 
> so, it looks like i have to fix something
> 
> Hans

Yes, you are right. I check it on a real doc. And if no mark sign is in 
the last col, then marks from previous col(s) is taken.

It would be a great news if you succeed to fix it. I cross my fingers.
Vit

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: marking in columnset
  2005-11-24 16:38   ` Vit Zyka
@ 2005-11-24 16:54     ` Hans Hagen
  2005-11-24 17:45       ` Vit Zyka
  2005-11-24 17:55     ` Hans Hagen
  1 sibling, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2005-11-24 16:54 UTC (permalink / raw)


Vit Zyka wrote:

> It would be a great news if you succeed to fix it. I cross my fingers.

well, it's actually relatively easy to make that (works on my machine 
now) but as always .. how to interface best -)

and ... of course it takes some time to find all points where 
synchronization has to take place

Hans

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: marking in columnset
  2005-11-24 16:54     ` Hans Hagen
@ 2005-11-24 17:45       ` Vit Zyka
  2005-11-24 20:56         ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Vit Zyka @ 2005-11-24 17:45 UTC (permalink / raw)


Hans Hagen wrote:
> Vit Zyka wrote:
> 
>> It would be a great news if you succeed to fix it. I cross my fingers.
> 
> 
> well, it's actually relatively easy to make that (works on my machine 
> now) but as always .. how to interface best -)
> 
> and ... of course it takes some time to find all points where 
> synchronization has to take place
> 
> Hans

Understand. I appreciate if upgrading the whole context distro will not 
be needed. I am afraid of something works differently - and there is no 
time to fix it. So some patches/file exchanges are feasible?

Vit

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: marking in columnset
  2005-11-24 16:38   ` Vit Zyka
  2005-11-24 16:54     ` Hans Hagen
@ 2005-11-24 17:55     ` Hans Hagen
  2005-11-24 23:09       ` Vit Zyka
  1 sibling, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2005-11-24 17:55 UTC (permalink / raw)


Vit Zyka wrote:

> It would be a great news if you succeed to fix it. I cross my fingers.

ok, you can uncross them; see separate mail

Hans

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: marking in columnset
  2005-11-24 17:45       ` Vit Zyka
@ 2005-11-24 20:56         ` Hans Hagen
  2005-11-24 23:03           ` Vit Zyka
  0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2005-11-24 20:56 UTC (permalink / raw)


Vit Zyka wrote:

> Hans Hagen wrote:
>
>> Vit Zyka wrote:
>>
>>> It would be a great news if you succeed to fix it. I cross my fingers.
>>
>>
>>
>> well, it's actually relatively easy to make that (works on my machine 
>> now) but as always .. how to interface best -)
>>
>> and ... of course it takes some time to find all points where 
>> synchronization has to take place
>>
>> Hans
>
>
> Understand. I appreciate if upgrading the whole context distro will 
> not be needed. I am afraid of something works differently - and there 
> is no time to fix it. So some patches/file exchanges are feasible?
>
actually, the patch i sent you off-list is not that dangerous because

(1) it is written on top of the untouched low level mark handler
(2) it leaves the normal marks untouched

so it will end up in the distribution if you find no flaws

as usual the problem is in documenting it (i.e. when adding new things 
for you others may complain that the manual is way behind -)

Hans

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: marking in columnset
  2005-11-24 20:56         ` Hans Hagen
@ 2005-11-24 23:03           ` Vit Zyka
  0 siblings, 0 replies; 10+ messages in thread
From: Vit Zyka @ 2005-11-24 23:03 UTC (permalink / raw)


Hans Hagen wrote:
> Vit Zyka wrote:
> 
>> Hans Hagen wrote:
>>
>>> Vit Zyka wrote:
>>>
>>>> It would be a great news if you succeed to fix it. I cross my fingers.
>>>
>>>
>>>
>>>
>>> well, it's actually relatively easy to make that (works on my machine 
>>> now) but as always .. how to interface best -)
>>>
>>> and ... of course it takes some time to find all points where 
>>> synchronization has to take place
>>>
>>> Hans
>>
>>
>>
>> Understand. I appreciate if upgrading the whole context distro will 
>> not be needed. I am afraid of something works differently - and there 
>> is no time to fix it. So some patches/file exchanges are feasible?
>>
> actually, the patch i sent you off-list is not that dangerous because
> 
> (1) it is written on top of the untouched low level mark handler
> (2) it leaves the normal marks untouched

not at all: \getmarking[A][all] does not swallow [A]

> so it will end up in the distribution if you find no flaws
> 
> as usual the problem is in documenting it (i.e. when adding new things 
> for you others may complain that the manual is way behind -)

What does it mean   \global\mofcolumns\plusone
inside of setups in your test example? Is it really needed?

I put the info to tex-show (getmarking). I reminds me there are many 
items missing in the tex-show, the list is on the wiky - columnsets are 
among them.

vit

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: marking in columnset
  2005-11-24 17:55     ` Hans Hagen
@ 2005-11-24 23:09       ` Vit Zyka
  2005-11-24 23:18         ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Vit Zyka @ 2005-11-24 23:09 UTC (permalink / raw)


Hans Hagen wrote:
> Vit Zyka wrote:
> 
>> It would be a great news if you succeed to fix it. I cross my fingers.
> 
> 
> ok, you can uncross them; see separate mail
> 
> Hans

All right, I read this parallel message just now... Perhaps due to I was 
working with crossing fingers all the time ;-)
vit

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: marking in columnset
  2005-11-24 23:09       ` Vit Zyka
@ 2005-11-24 23:18         ` Hans Hagen
  0 siblings, 0 replies; 10+ messages in thread
From: Hans Hagen @ 2005-11-24 23:18 UTC (permalink / raw)


Vit Zyka wrote:

> Hans Hagen wrote:
>
>> Vit Zyka wrote:
>>
>>> It would be a great news if you succeed to fix it. I cross my fingers.
>>
>>
>>
>> ok, you can uncross them; see separate mail
>>
>> Hans
>
>
> All right, I read this parallel message just now... Perhaps due to I 
> was working with crossing fingers all the time ;-)

well, keep 'm crossed because i'm shutting down now -) remind me to fix 
this (or add an item to the collector)

Hans

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-11-24 23:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-24 12:10 marking in columnset Vit Zyka
2005-11-24 15:17 ` Hans Hagen
2005-11-24 16:38   ` Vit Zyka
2005-11-24 16:54     ` Hans Hagen
2005-11-24 17:45       ` Vit Zyka
2005-11-24 20:56         ` Hans Hagen
2005-11-24 23:03           ` Vit Zyka
2005-11-24 17:55     ` Hans Hagen
2005-11-24 23:09       ` Vit Zyka
2005-11-24 23:18         ` Hans Hagen

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).