ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* interaction colors and page break
@ 2011-10-06 14:08 Stefan Müller
  2011-10-06 14:19 ` luigi scarso
  2011-10-07 11:53 ` luigi scarso
  0 siblings, 2 replies; 10+ messages in thread
From: Stefan Müller @ 2011-10-06 14:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I think I found a small bug.  The interaction colors interact strangely 
with page breaks in certain cases.  See the following example.  I'm 
using ConTeXt 201110003 12:59 MkIV.

################################
\setupinteraction[state=start]
\setupitemize[each][n, packed]
\defineenumeration[myenum][text=Enumeration, location=top]

\starttext
\dorecurse{9}{\input ward \par}

\startmyenum[enum]
\startitemize
	\item Go to step \in[step].
	\item[step] Step.
\stopitemize
\stopmyenum

Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be 
red, should they? They are on the new page.
\stoptext
################################

Best regards,
Stefan.
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: interaction colors and page break
  2011-10-06 14:08 interaction colors and page break Stefan Müller
@ 2011-10-06 14:19 ` luigi scarso
  2011-10-06 14:31   ` Stefan Müller
  2011-10-06 14:55   ` Stefan Müller
  2011-10-07 11:53 ` luigi scarso
  1 sibling, 2 replies; 10+ messages in thread
From: luigi scarso @ 2011-10-06 14:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Oct 6, 2011 at 4:08 PM, Stefan Müller <warrence.stm@gmx.de> wrote:
> Hi,
>
> I think I found a small bug.  The interaction colors interact strangely with
> page breaks in certain cases.  See the following example.  I'm using ConTeXt
> 201110003 12:59 MkIV.
>
> ################################
> \setupinteraction[state=start]
> \setupitemize[each][n, packed]
> \defineenumeration[myenum][text=Enumeration, location=top]
>
> \starttext
> \dorecurse{9}{\input ward \par}
>
> \startmyenum[enum]
> \startitemize
>        \item Go to step \in[step].
>        \item[step] Step.
> \stopitemize
> \stopmyenum
>
> Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be red,
> should they? They are on the new page.
> \stoptext
> ################################

true; just put \page and colors are green

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setupinteraction[state=start]
\setupitemize[each][n, packed]
\defineenumeration[myenum][text=Enumeration, location=top]

\starttext
\dorecurse{9}{\input ward \par}

\startmyenum[enum]
\startitemize
       \item Go to step \in[step].
       \item[step] Step.
\stopitemize
\stopmyenum
\page
Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be
red, should they? They are on the new page.
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
maybe a problem with the MVL

-- 
luigi
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: interaction colors and page break
  2011-10-06 14:19 ` luigi scarso
@ 2011-10-06 14:31   ` Stefan Müller
  2011-10-06 14:44     ` luigi scarso
  2011-10-06 14:55   ` Stefan Müller
  1 sibling, 1 reply; 10+ messages in thread
From: Stefan Müller @ 2011-10-06 14:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users



On 06.10.2011 16:19, luigi scarso wrote:
> On Thu, Oct 6, 2011 at 4:08 PM, Stefan Müller<warrence.stm@gmx.de>  wrote:
>> Hi,
>>
>> I think I found a small bug.  The interaction colors interact strangely with
>> page breaks in certain cases.  See the following example.  I'm using ConTeXt
>> 201110003 12:59 MkIV.
>>
>> [...]
>
> true; just put \page and colors are green

Currently I'm using the colors only while working on my document, I'll 
turn them off for printing.  So that's not really an issue for me. 
Putting \page doesn't really help.  In my actual project file there are 
two more items in the itemize and the page break is between item 2 and 3.

Kind regards,
Stefan.

> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> \setupinteraction[state=start]
> \setupitemize[each][n, packed]
> \defineenumeration[myenum][text=Enumeration, location=top]
>
> \starttext
> \dorecurse{9}{\input ward \par}
>
> \startmyenum[enum]
> \startitemize
>         \item Go to step \in[step].
>         \item[step] Step.
> \stopitemize
> \stopmyenum
> \page
> Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be
> red, should they? They are on the new page.
> \stoptext
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> maybe a problem with the MVL
>
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: interaction colors and page break
  2011-10-06 14:31   ` Stefan Müller
@ 2011-10-06 14:44     ` luigi scarso
  2011-10-06 14:49       ` Stefan Müller
  0 siblings, 1 reply; 10+ messages in thread
From: luigi scarso @ 2011-10-06 14:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Oct 6, 2011 at 4:31 PM, Stefan Müller <warrence.stm@gmx.de> wrote:
>
>
> On 06.10.2011 16:19, luigi scarso wrote:
>>
>> On Thu, Oct 6, 2011 at 4:08 PM, Stefan Müller<warrence.stm@gmx.de>  wrote:
>>>
>>> Hi,
>>>
>>> I think I found a small bug.  The interaction colors interact strangely
>>> with
>>> page breaks in certain cases.  See the following example.  I'm using
>>> ConTeXt
>>> 201110003 12:59 MkIV.
>>>
>>> [...]
>>
>> true; just put \page and colors are green
>
> Currently I'm using the colours only while working on my document, I'll turn
> them off for printing.  So that's not really an issue for me. Putting \page
> doesn't really help.  In my actual project file there are two more items in
> the itemize and the page break is between item 2 and 3.
\page was only a way to show that yes, the colours should be green and
 no a way to patch.


-- 
luigi
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: interaction colors and page break
  2011-10-06 14:44     ` luigi scarso
@ 2011-10-06 14:49       ` Stefan Müller
  0 siblings, 0 replies; 10+ messages in thread
From: Stefan Müller @ 2011-10-06 14:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users



On 06.10.2011 16:44, luigi scarso wrote:
> On Thu, Oct 6, 2011 at 4:31 PM, Stefan Müller<warrence.stm@gmx.de>  wrote:
>>
>>
>> On 06.10.2011 16:19, luigi scarso wrote:
>>>
>>> On Thu, Oct 6, 2011 at 4:08 PM, Stefan Müller<warrence.stm@gmx.de>    wrote:
>>>>
>>>> Hi,
>>>>
>>>> I think I found a small bug.  The interaction colors interact strangely
>>>> with
>>>> page breaks in certain cases.  See the following example.  I'm using
>>>> ConTeXt
>>>> 201110003 12:59 MkIV.
>>>>
>>>> [...]
>>>
>>> true; just put \page and colors are green
>>
>> Currently I'm using the colours only while working on my document, I'll turn
>> them off for printing.  So that's not really an issue for me. Putting \page
>> doesn't really help.  In my actual project file there are two more items in
>> the itemize and the page break is between item 2 and 3.
> \page was only a way to show that yes, the colours should be green and
>   no a way to patch.

Oh yes, of course.  Sorry, I misunderstood.

Stefan.
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: interaction colors and page break
  2011-10-06 14:19 ` luigi scarso
  2011-10-06 14:31   ` Stefan Müller
@ 2011-10-06 14:55   ` Stefan Müller
  2011-10-06 15:42     ` Christian
  1 sibling, 1 reply; 10+ messages in thread
From: Stefan Müller @ 2011-10-06 14:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Sorry, I forgot to mention (and maybe it's obvious) that the problem 
only seems to appear in the paragraph directly after the enumeration, so 
the colors are correct in last paragraph in:

################################
\setupinteraction[state=start]
\setupitemize[each][n, packed]
\defineenumeration[myenum][text=Enumeration, location=top]

\starttext
\dorecurse{9}{\input ward \par}

\startmyenum[enum]
\startitemize
	\item Go to step \in[step].
	\item[step] Step.
\stopitemize
\stopmyenum

Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be 
red, should they? They are on the new page.

Step \in[step] of \in{Enumeration}[enum]. These numbers are green, as 
expected.
\stoptext
################################

Stefan.
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: interaction colors and page break
  2011-10-06 14:55   ` Stefan Müller
@ 2011-10-06 15:42     ` Christian
  2011-10-06 15:53       ` luigi scarso
  0 siblings, 1 reply; 10+ messages in thread
From: Christian @ 2011-10-06 15:42 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

The same thing happens here when referring to a figure using
\setupinteraction[state=start, focus=standard, style=,color=]
and
\definereferenceformat[infig][left={(Abb. },right={)}]

In one place it generates a red link, on another page a black one.
In both cases the figures are on the same page as the link in the text.
I have no idea what could cause this, both figures and both references are
using the same commands and options.


> -----Ursprüngliche Nachricht-----
> Von: ntg-context-bounces@ntg.nl [mailto:ntg-context-bounces@ntg.nl] Im
> Auftrag von Stefan Müller
> Gesendet: Donnerstag, 6. Oktober 2011 16:55
> An: mailing list for ConTeXt users
> Betreff: Re: [NTG-context] interaction colors and page break
> 
> Sorry, I forgot to mention (and maybe it's obvious) that the problem only
> seems to appear in the paragraph directly after the enumeration, so the
> colors are correct in last paragraph in:
> 
> ################################
> \setupinteraction[state=start]
> \setupitemize[each][n, packed]
> \defineenumeration[myenum][text=Enumeration, location=top]
> 
> \starttext
> \dorecurse{9}{\input ward \par}
> 
> \startmyenum[enum]
> \startitemize
> 	\item Go to step \in[step].
> 	\item[step] Step.
> \stopitemize
> \stopmyenum
> 
> Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be red,
> should they? They are on the new page.
> 
> Step \in[step] of \in{Enumeration}[enum]. These numbers are green, as
> expected.
> \stoptext
> ################################
> 
> Stefan.
> __________________________________________________________
> _________________________
> 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://tex.aanhet.net archive  :
> http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> __________________________________________________________
> _________________________

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: interaction colors and page break
  2011-10-06 15:42     ` Christian
@ 2011-10-06 15:53       ` luigi scarso
  2011-10-06 16:22         ` Christian
  0 siblings, 1 reply; 10+ messages in thread
From: luigi scarso @ 2011-10-06 15:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Oct 6, 2011 at 5:42 PM, Christian <metan0r@gmx.de> wrote:
> The same thing happens here when referring to a figure using
> \setupinteraction[state=start, focus=standard, style=,color=]
> and
> \definereferenceformat[infig][left={(Abb. },right={)}]
>
> In one place it generates a red link, on another page a black one.
> In both cases the figures are on the same page as the link in the text.
> I have no idea what could cause this, both figures and both references are
> using the same commands and options.
hm, do you have an example ?
-- 
luigi
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: interaction colors and page break
  2011-10-06 15:53       ` luigi scarso
@ 2011-10-06 16:22         ` Christian
  0 siblings, 0 replies; 10+ messages in thread
From: Christian @ 2011-10-06 16:22 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

Here you go:
%%%%%%%%%%%%%%%%%%%%%%%%%%
\setupinteraction[state=start, focus=standard, style=,color=]
\setupreferencing[interaction=all]
\definereferenceformat[infig][left={(Abb. },right={)}]
\starttext
\input knuth \infig[cow1]
\placefigure[here][cow1]{A Cow}{\externalfigure[cow][width=0.3\textwidth]}
\page
\input knuth \infig[cow2]
\page
\input knuth 
\placefigure[here][cow2]{Another Cow}{\externalfigure[cow][width=0.3\textwidth]}
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%

Seems that \page has indeed something to do with this, although I do not use this command
in my other document. Here I had to use it in order to produce a black link for the quick example.

> -----Ursprüngliche Nachricht-----
> Von: ntg-context-bounces@ntg.nl [mailto:ntg-context-bounces@ntg.nl] Im
> Auftrag von luigi scarso
> Gesendet: Donnerstag, 6. Oktober 2011 17:53
> An: mailing list for ConTeXt users
> Betreff: Re: [NTG-context] interaction colors and page break
> 
> On Thu, Oct 6, 2011 at 5:42 PM, Christian <metan0r@gmx.de> wrote:
> > The same thing happens here when referring to a figure using
> > \setupinteraction[state=start, focus=standard, style=,color=] and
> > \definereferenceformat[infig][left={(Abb. },right={)}]
> >
> > In one place it generates a red link, on another page a black one.
> > In both cases the figures are on the same page as the link in the text.
> > I have no idea what could cause this, both figures and both references
> > are using the same commands and options.
> hm, do you have an example ?
> --
> luigi
> __________________________________________________________
> _________________________
> 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://tex.aanhet.net archive  :
> http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> __________________________________________________________
> _________________________

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: interaction colors and page break
  2011-10-06 14:08 interaction colors and page break Stefan Müller
  2011-10-06 14:19 ` luigi scarso
@ 2011-10-07 11:53 ` luigi scarso
  1 sibling, 0 replies; 10+ messages in thread
From: luigi scarso @ 2011-10-07 11:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Oct 6, 2011 at 4:08 PM, Stefan Müller <warrence.stm@gmx.de> wrote:
> Hi,
>
> I think I found a small bug.  The interaction colors interact strangely with
> page breaks in certain cases.  See the following example.  I'm using ConTeXt
> 201110003 12:59 MkIV.
>
> ################################
> \setupinteraction[state=start]
> \setupitemize[each][n, packed]
> \defineenumeration[myenum][text=Enumeration, location=top]
>
> \starttext
> \dorecurse{9}{\input ward \par}
>
> \startmyenum[enum]
> \startitemize
>        \item Go to step \in[step].
>        \item[step] Step.
> \stopitemize
> \stopmyenum
>
> Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be red,
> should they? They are on the new page.
> \stoptext
> ################################


you can "help" ConTeXt with invisible vertical space \vskip0sp.


\setupinteraction[state=start]
\setupitemize[each][n, packed]
\defineenumeration[myenum][text=Enumeration, location=top,after=\vskip0sp]

\starttext
\dorecurse{9}{\input ward \par}

\startmyenum[enum]
\startitemize
       \item Go to step \in[step].
       \item[step] Step.
\stopitemize
\stopmyenum

Step \in[step] of \in{Enumeration}[enum]. These numbers shouldn't be
red, should they? They are on the new page.


-- 
luigi
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2011-10-07 11:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-06 14:08 interaction colors and page break Stefan Müller
2011-10-06 14:19 ` luigi scarso
2011-10-06 14:31   ` Stefan Müller
2011-10-06 14:44     ` luigi scarso
2011-10-06 14:49       ` Stefan Müller
2011-10-06 14:55   ` Stefan Müller
2011-10-06 15:42     ` Christian
2011-10-06 15:53       ` luigi scarso
2011-10-06 16:22         ` Christian
2011-10-07 11:53 ` luigi scarso

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