> On 01/31/2015 01:36 PM, Hans Hagen wrote: >> On 1/31/2015 1:12 PM, Pablo Rodriguez wrote: >>> [...] >>> It doesnât show what you meant, the link destination is not on the >>> heading itself, but on the next paragraph. >> >> \enabletrackers[*references*] >> \enabletrackers[*destinations*] > > Hi Hans, > > many thanks for your reply. > > Iâm afraid there might be something wrong with this. I have been using > poppler-glib-demo to check it (and this is the first time I use it, so I > might be wrong as well). > > The minimal sample: > > \enabletrackers[*destinations*] > \setupinteraction[state=start, focus=standard] > \setupinteractionscreen[width=fit] > \starttext > \completecontent > \chapter{Chapter} > \stoptext > > Link destination for âChapterâ seems to be: > > << /D [27 0 R /XYZ 70.867 689.409 null]>> > > But both chapter headings are placed at x,y (70.87, 122.22), according > to poppler-glib-demo. > > Anyway, there is a proof that something might be rotten, because the > link itself has a higher box (an it is lower in the page): > > << /Subtype /Link /Dest (#2) /F 4 > /Rect [70.867 652.344 496.06 666.772] /Border [0 0 0]>> > > I cannot give a more accurate description (the PDF spec is all Greek to > me), but I think there is something wrong with link destinations (they > seem to be lower than they should be). > > BTW, does the sample above work right with Adobe? (Iâm donât have it > installed.) It doesnât work with either evince-3.10.3 or mupdf-1.6. > >>> I think this should be improved. And I guess it goes unnoticed, because >>> after clicking on a link, the browser fits view to page. >> >> this is also a bit browser dependent i think > > I guess this is caused by the link destination syntax (section 12.3.2.2 > of the PDF specification). > > Withouth specifying "focus=standard" in the sample above, the link is: > > << /Subtype /Link /Dest [13 0 R /Fit] /F 4 > /Rect [70.867 652.344 496.06 666.772] /Border [0 0 0]>> > > /Fit specifies that the page should be so that its entire width and > height are magnified enough so that they fit in the window. > > Having said that, I cannot see why it makes sense that ConTeXt generates > documents with this default. > > I mean, the default paper size is A4, if the default behavior after > cliciking on a link is to fit page height (or width in landscape), one > needs a huge screen not to render the text unreadable. > > Sorry, but I cannot see the gain in this default. Would it be possible > that the default would be the behaviour set by "focus=standard"? > > Could you consider both suggestions? > > Many thanks for your help, > > > Pablo > -- > http://www.ousia.tk >
What I forgot to include in the code ex, was this settings: \setupinteraction [state=start, title={Leerboek politieke economie}, subtitle={politieke economie}, author={Academie der Wetenschappen van de Sovjet-Unie}, keyword={economie, politieke economie, marxisme, marxisme-leninisme}, openaction=FitWidth, focus=width, date={31 januari 2015}] I will replace this with: \setupinteraction[state=start] and see if that makes a difference... Greetings, Rob ___________________________________________________________________________________ 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 ___________________________________________________________________________________