Re: [NTG-context] Reference links with focus=standard option
Fri, 13 Apr 2018 11:48:28 +0200, Hans Hagen wrote: > On 4/13/2018 8:13 AM, Christoph Reller wrote: >> >> This is a long standing feature request reported multiple times by >> myself and others with MWEs in >> https://www.mail-archive.com/ntg-context@ntg.nl/msg79620.html and >> https://www.mail-archive.com/ntg-context@ntg.nl/msg79727.html. >> >> Another MWE in which the link is non-functional: >> > fixed in next beta (i'm not sure when i will upload that one as i need > to test some new features first) > Thank you Hans! This is good news. Your work is very much appreciated. I am looking forward to the next beta. Regards, Christoph ___ 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 ___
Re: [NTG-context] Reference links with focus=standard option
On 4/13/2018 8:13 AM, Christoph Reller wrote: On Wed, 11 Apr 2018 20:27:15 +0100, Lawrence Bell wrote: Thanks very much for your replies. It's reassuring to see (it seems) that I've not overlooked some extra option that magically does the job :) Worst case scenario I'll hack something together, or just settle for the default focus functionality, which is not the end of the world. Just feel like there should be a better/more elegant way. On 11/04/18 19:36, Pablo Rodriguez wrote: On 04/11/2018 07:14 PM, Pablo Rodriguez wrote: On 04/11/2018 04:35 PM, Lawrence Bell wrote: [...] What's going on here? I generated an uncompressed PDF document from your source: http://pdf.ousia.tk/focus-standard.pdf. [...] (eq:ref) seems to be missing there. But I have to investigate the issue further to get a more accurate report. [...] Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I hope Hans can fix it. Dear all, This is a long standing feature request reported multiple times by myself and others with MWEs in https://www.mail-archive.com/ntg-context@ntg.nl/msg79620.html and https://www.mail-archive.com/ntg-context@ntg.nl/msg79727.html. Another MWE in which the link is non-functional: fixed in next beta (i'm not sure when i will upload that one as i need to test some new features first) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 ___
Re: [NTG-context] Reference links with focus=standard option
Dear Christoph, I take it from your reply that fixing this problem with interactivity would likely cause some trouble with the printability? And therefore, it's staying as it is to prioritize printability? That's understandable, but a bit frustrating, since I still don't have any clue what the actual problem is. Could you possibly explain in some more detail or point me to a relevant thread? Kind regards, Lawrence On 13/04/18 07:31, Henri Menke wrote: > On Fri, 2018-04-13 at 08:13 +0200, Christoph Reller wrote: >>> On Wed, 11 Apr 2018 20:27:15 +0100, Lawrence Bell >> il.com> wrote: >>> >>> Thanks very much for your replies. It's reassuring to see (it seems) >>> that I've not overlooked some extra option that magically does the job >>> :) Worst case scenario I'll hack something together, or just settle for >>> the default focus functionality, which is not the end of the world. Just >>> feel like there should be a better/more elegant way. >>> >>> On 11/04/18 19:36, Pablo Rodriguez wrote: On 04/11/2018 07:14 PM, Pablo Rodriguez wrote: > On 04/11/2018 04:35 PM, Lawrence Bell wrote: >> [...] >> What's going on here? > I generated an uncompressed PDF document from your source: > http://pdf.ousia.tk/focus-standard.pdf. > [...] > (eq:ref) seems to be missing there. But I have to investigate the issue > further to get a more accurate report. [...] Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I hope Hans can fix it. >> Dear all, >> >> This is a long standing feature request reported multiple times by >> myself and others with MWEs in >> https://www.mail-archive.com/ntg-context@ntg.nl/msg79620.html and >> https://www.mail-archive.com/ntg-context@ntg.nl/msg79727.html. >> >> Another MWE in which the link is non-functional: >> >> \setupexternalfigures[location={local,global,default}] >> \setupinteraction[state=start, focus=standard] >> \starttext >> \about[figure]. >> \page >> \placefigure[][figure]{Figure}{\externalfigure[cow.pdf]} >> \stoptext >> >> Please, Hans, I kindly ask you to reconsider. I am aware of your >> opinion and reasoning about this issue. But I believe that for many of >> us users, today's PDFs need to be both, interactive *and* printable. >> >> If there is any way I can help or motivate you, then please tell me ;-) > The best way to motivate Hans to implement something you need, is by > implementing it yourself and sending him updated core files. > Works for me every time ;-) > >> Kind regards, >> >> Christoph >> __ >> _ >> 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 >> __ >> _ > ___ > 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 > ___ ___ 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 ___
Re: [NTG-context] Reference links with focus=standard option
On Fri, 2018-04-13 at 08:13 +0200, Christoph Reller wrote: > > > > On Wed, 11 Apr 2018 20:27:15 +0100, Lawrence Bell > il.com> wrote: > > > > Thanks very much for your replies. It's reassuring to see (it seems) > > that I've not overlooked some extra option that magically does the job > > :) Worst case scenario I'll hack something together, or just settle for > > the default focus functionality, which is not the end of the world. Just > > feel like there should be a better/more elegant way. > > > > On 11/04/18 19:36, Pablo Rodriguez wrote: > > > > > > On 04/11/2018 07:14 PM, Pablo Rodriguez wrote: > > > > > > > > On 04/11/2018 04:35 PM, Lawrence Bell wrote: > > > > > > > > > > [...] > > > > > What's going on here? > > > > I generated an uncompressed PDF document from your source: > > > > http://pdf.ousia.tk/focus-standard.pdf. > > > > [...] > > > > (eq:ref) seems to be missing there. But I have to investigate the issue > > > > further to get a more accurate report. > > > [...] > > > Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I > > > hope Hans can fix it. > Dear all, > > This is a long standing feature request reported multiple times by > myself and others with MWEs in > https://www.mail-archive.com/ntg-context@ntg.nl/msg79620.html and > https://www.mail-archive.com/ntg-context@ntg.nl/msg79727.html. > > Another MWE in which the link is non-functional: > > \setupexternalfigures[location={local,global,default}] > \setupinteraction[state=start, focus=standard] > \starttext > \about[figure]. > \page > \placefigure[][figure]{Figure}{\externalfigure[cow.pdf]} > \stoptext > > Please, Hans, I kindly ask you to reconsider. I am aware of your > opinion and reasoning about this issue. But I believe that for many of > us users, today's PDFs need to be both, interactive *and* printable. > > If there is any way I can help or motivate you, then please tell me ;-) The best way to motivate Hans to implement something you need, is by implementing it yourself and sending him updated core files. Works for me every time ;-) > > Kind regards, > > Christoph > __ > _ > 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 > __ > _ ___ 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 ___
Re: [NTG-context] Reference links with focus=standard option
> On Wed, 11 Apr 2018 20:27:15 +0100, Lawrence Bell > wrote: > > Thanks very much for your replies. It's reassuring to see (it seems) > that I've not overlooked some extra option that magically does the job > :) Worst case scenario I'll hack something together, or just settle for > the default focus functionality, which is not the end of the world. Just > feel like there should be a better/more elegant way. > > On 11/04/18 19:36, Pablo Rodriguez wrote: >> On 04/11/2018 07:14 PM, Pablo Rodriguez wrote: >>> On 04/11/2018 04:35 PM, Lawrence Bell wrote: [...] What's going on here? >>> I generated an uncompressed PDF document from your source: >>> http://pdf.ousia.tk/focus-standard.pdf. >>> [...] >>> (eq:ref) seems to be missing there. But I have to investigate the issue >>> further to get a more accurate report. >> [...] >> Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I >> hope Hans can fix it. Dear all, This is a long standing feature request reported multiple times by myself and others with MWEs in https://www.mail-archive.com/ntg-context@ntg.nl/msg79620.html and https://www.mail-archive.com/ntg-context@ntg.nl/msg79727.html. Another MWE in which the link is non-functional: \setupexternalfigures[location={local,global,default}] \setupinteraction[state=start, focus=standard] \starttext \about[figure]. \page \placefigure[][figure]{Figure}{\externalfigure[cow.pdf]} \stoptext Please, Hans, I kindly ask you to reconsider. I am aware of your opinion and reasoning about this issue. But I believe that for many of us users, today's PDFs need to be both, interactive *and* printable. If there is any way I can help or motivate you, then please tell me ;-) Kind regards, Christoph ___ 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 ___
Re: [NTG-context] Reference links with focus=standard option
Pablo, Thanks very much for your replies. It's reassuring to see (it seems) that I've not overlooked some extra option that magically does the job :) Worst case scenario I'll hack something together, or just settle for the default focus functionality, which is not the end of the world. Just feel like there should be a better/more elegant way. On 11/04/18 19:36, Pablo Rodriguez wrote: > On 04/11/2018 07:14 PM, Pablo Rodriguez wrote: >> On 04/11/2018 04:35 PM, Lawrence Bell wrote: >>> [...] >>> What's going on here? >> I generated an uncompressed PDF document from your source: >> http://pdf.ousia.tk/focus-standard.pdf. >> [...] >> (eq:ref) seems to be missing there. But I have to investigate the issue >> further to get a more accurate report. > Lawrence, > > all I got is that floats have problems with named destinations (the ones > you get with \setupinteraction[focus=standard]). > > \setupexternalfigures[location=default] > \setupinteraction > [state=start, focus=standard] > > \starttext > > \startplacechemical[reference=ch:ref] > \startchemicalformula > \chemical{(C_2H_5)_2Zn}{DEZ} > \stopchemicalformula > \stopplacechemical > > \placefigure[here][fl:ref]{Cow}{\externalfigure[cow]} > > formula \in[ch:ref] > > figure \in[fl:ref] > \stoptext > > Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I > hope Hans can fix it. > > Pablo ___ 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 ___
Re: [NTG-context] Reference links with focus=standard option
On 04/11/2018 07:14 PM, Pablo Rodriguez wrote: > On 04/11/2018 04:35 PM, Lawrence Bell wrote: >> [...] >> What's going on here? > > I generated an uncompressed PDF document from your source: > http://pdf.ousia.tk/focus-standard.pdf. > [...] > (eq:ref) seems to be missing there. But I have to investigate the issue > further to get a more accurate report. Lawrence, all I got is that floats have problems with named destinations (the ones you get with \setupinteraction[focus=standard]). \setupexternalfigures[location=default] \setupinteraction [state=start, focus=standard] \starttext \startplacechemical[reference=ch:ref] \startchemicalformula \chemical{(C_2H_5)_2Zn}{DEZ} \stopchemicalformula \stopplacechemical \placefigure[here][fl:ref]{Cow}{\externalfigure[cow]} formula \in[ch:ref] figure \in[fl:ref] \stoptext Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I hope Hans can fix it. Pablo -- http://www.ousia.tk ___ 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 ___
Re: [NTG-context] Reference links with focus=standard option
On 04/11/2018 04:35 PM, Lawrence Bell wrote: > Hi mailing list, > > I'm having some trouble with (interactive) references. I had a quick > search of the mailing list and couldn't find any talk about this kind of > issue, so I'm asking now. Hoping you could help me out. > > All is well with the default setting for focus. I don't like that with > most (?) PDF viewers the default setting changes the zoom level, so I > usually turn on \setupinteraction[focus=standard] instead. But this > seems to break (some of) the interactive links. The links to the the > chapter and item still work, but the links to the formula are broken. Hi Lawrence, it seems that something is broken when ConTeXt generates the destinations for these links. > As an experiment, I just tried this with a couple different viewers > (Firefox, Evince, Okular, Xpdf, Qpdfview) and (putting > \setupinteraction[focus=standard] back in) the link is indeed broken on > all of them, /except/ for Qpdfview which still seems to understand it. qpdfview complains after having clicking the link: "Error: failed to look up (eq:ref)" "Error: failed to look up (eq:ref)" > What's going on here? I generated an uncompressed PDF document from your source: http://pdf.ousia.tk/focus-standard.pdf. The issue seems to be in the name tree node dictionary: 35 0 obj << /Limits [ (#1) (pt:ref) ] /Names [ (#1) 15 0 R (#2) 19 0 R (#3) 20 0 R (it:ref) 20 0 R (pt:ref) 15 0 R ] >> endobj (eq:ref) seems to be missing there. But I have to investigate the issue further to get a more accurate report. I hope it helps, Pablo -- http://www.ousia.tk ___ 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 ___
[NTG-context] Reference links with focus=standard option
Hi mailing list, I'm having some trouble with (interactive) references. I had a quick search of the mailing list and couldn't find any talk about this kind of issue, so I'm asking now. Hoping you could help me out. Consider the following example document. \setupinteraction [ state=start, % focus=standard, ] \starttext \startchapter[title=Some Title, reference=pt:ref] Lorem ipsum dolor sit amet, \periods \startplaceformula[reference=eq:ref] \startformula c^2 = a^2 + b^2. \stopformula \stopplaceformula Lorem ipsum dolor sit amet, \periods \startitemize[r] \startitem[it:ref] Lorem ipsum dolor sit amet, \periods \stopitem \stopitemize And now we can refer to formula~\in[eq:ref], chapter~\in[pt:ref], and item~\in[it:ref]. \page And now we can refer to formula~\in[eq:ref], chapter~\in[pt:ref], and item~\in[it:ref]. \stopchapter \stoptext All is well with the default setting for focus. I don't like that with most (?) PDF viewers the default setting changes the zoom level, so I usually turn on \setupinteraction[focus=standard] instead. But this seems to break (some of) the interactive links. The links to the the chapter and item still work, but the links to the formula are broken. As an experiment, I just tried this with a couple different viewers (Firefox, Evince, Okular, Xpdf, Qpdfview) and (putting \setupinteraction[focus=standard] back in) the link is indeed broken on all of them, /except/ for Qpdfview which still seems to understand it. What's going on here? Thanks in advance, Lawrence ___ 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 ___