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.
On Thu, Oct 6, 2011 at 4:08 PM, Stefan Müller
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
On 06.10.2011 16:19, luigi scarso wrote:
On Thu, Oct 6, 2011 at 4:08 PM, Stefan Müller
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
On Thu, Oct 6, 2011 at 4:31 PM, Stefan Müller
On 06.10.2011 16:19, luigi scarso wrote:
On Thu, Oct 6, 2011 at 4:08 PM, Stefan Müller
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
On 06.10.2011 16:44, luigi scarso wrote:
On Thu, Oct 6, 2011 at 4:31 PM, Stefan Müller
wrote: On 06.10.2011 16:19, luigi scarso wrote:
On Thu, Oct 6, 2011 at 4:08 PM, Stefan Müller
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.
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.
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 __________________________________________________________ _________________________
On Thu, Oct 6, 2011 at 5:42 PM, Christian
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
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
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 __________________________________________________________ _________________________
On Thu, Oct 6, 2011 at 4:08 PM, Stefan Müller
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
participants (3)
-
Christian
-
luigi scarso
-
Stefan Müller