ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Creating a PDF named destination
@ 2011-04-25 15:31 Duncan Hothersall
  2011-04-26  8:40 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Duncan Hothersall @ 2011-04-25 15:31 UTC (permalink / raw)
  To: ntg-context

  Hello all,

This seems to be a very obvious FAQ but I can't find an answer anywhere. 
How can one create a named destination in an output PDF file such that 
an HTML link to <filename>.pdf#nameddest=<name> will work?

I'm using Mk II in case that is relevant. I kinda assumed that a section 
title with an ID would automatically create a named destination with the 
same ID, but that doesn't appear to be the case.

So given a file generated from


\starttext
\chapter[myid]{My chapter}
Blah blah.
\section[myotherid]{My section}
Blah blah.
\stoptext


I'd like to be able to link from an HTML file to the named destinations 
myid and myotherid using the #nameddest URL construct above.

Hope it makes sense and thanks for any help.

Duncan
___________________________________________________________________________________
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] 6+ messages in thread

* Re: Creating a PDF named destination
  2011-04-25 15:31 Creating a PDF named destination Duncan Hothersall
@ 2011-04-26  8:40 ` Hans Hagen
  2011-04-26  9:00   ` Duncan Hothersall
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2011-04-26  8:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Duncan Hothersall

On 25-4-2011 5:31, Duncan Hothersall wrote:
> \starttext
> \chapter[myid]{My chapter}
> Blah blah.
> \section[myotherid]{My section}
> Blah blah.
> \stoptext

add \setupinteraction[state=start] and then in the pdf file you will 
find destinations like

/Names [... (myid) 5 0 R (myotherid) 7 0 R]

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Creating a PDF named destination
  2011-04-26  8:40 ` Hans Hagen
@ 2011-04-26  9:00   ` Duncan Hothersall
  2011-04-26  9:27     ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Duncan Hothersall @ 2011-04-26  9:00 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

  Thanks Hans but this doesn't work for me - when I open in Acrobat Pro 
no named destinations appear.

Duncan

On 26/04/2011 09:40, Hans Hagen wrote:
> On 25-4-2011 5:31, Duncan Hothersall wrote:
>> \starttext
>> \chapter[myid]{My chapter}
>> Blah blah.
>> \section[myotherid]{My section}
>> Blah blah.
>> \stoptext
>
> add \setupinteraction[state=start] and then in the pdf file you will 
> find destinations like
>
> /Names [... (myid) 5 0 R (myotherid) 7 0 R]
>
> Hans

___________________________________________________________________________________
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] 6+ messages in thread

* Re: Creating a PDF named destination
  2011-04-26  9:00   ` Duncan Hothersall
@ 2011-04-26  9:27     ` Hans Hagen
  2011-04-26  9:38       ` Duncan Hothersall
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2011-04-26  9:27 UTC (permalink / raw)
  To: Duncan Hothersall; +Cc: mailing list for ConTeXt users

On 26-4-2011 11:00, Duncan Hothersall wrote:
>
> Thanks Hans but this doesn't work for me - when I open in Acrobat Pro no
> named destinations appear.

not sure what you expect ... you have no hyperlinks (annotations) .. 
where do you expect to see destinations in pro?


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Creating a PDF named destination
  2011-04-26  9:27     ` Hans Hagen
@ 2011-04-26  9:38       ` Duncan Hothersall
  2011-04-26 10:26         ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Duncan Hothersall @ 2011-04-26  9:38 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

  On 26/04/2011 10:27, Hans Hagen wrote:
> On 26-4-2011 11:00, Duncan Hothersall wrote:
>>
>> Thanks Hans but this doesn't work for me - when I open in Acrobat Pro no
>> named destinations appear.
>
> not sure what you expect ... you have no hyperlinks (annotations) .. 
> where do you expect to see destinations in pro? 
You can view a list of all named destinations in a file in Pro (View; 
Navigation tabs; Destinations) and these are externally accessible via 
links of the form filename.pdf#nameddest=<destination name>. That's what 
I'm trying to achieve.

It looks like it might be achievable with a third-party module called 
Navigator documented here: 
http://www.tex.ac.uk/ctan/macros/generic/navigator/navigator-doc.pdf but 
I haven't tried that out yet.

Thanks,

Duncan
___________________________________________________________________________________
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] 6+ messages in thread

* Re: Creating a PDF named destination
  2011-04-26  9:38       ` Duncan Hothersall
@ 2011-04-26 10:26         ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2011-04-26 10:26 UTC (permalink / raw)
  To: Duncan Hothersall; +Cc: mailing list for ConTeXt users

On 26-4-2011 11:38, Duncan Hothersall wrote:
>
> On 26/04/2011 10:27, Hans Hagen wrote:
>> On 26-4-2011 11:00, Duncan Hothersall wrote:
>>>
>>> Thanks Hans but this doesn't work for me - when I open in Acrobat Pro no
>>> named destinations appear.
>>
>> not sure what you expect ... you have no hyperlinks (annotations) ..
>> where do you expect to see destinations in pro?
> You can view a list of all named destinations in a file in Pro (View;
> Navigation tabs; Destinations) and these are externally accessible via
> links of the form filename.pdf#nameddest=<destination name>. That's what
> I'm trying to achieve.
>
> It looks like it might be achievable with a third-party module called
> Navigator documented here:
> http://www.tex.ac.uk/ctan/macros/generic/navigator/navigator-doc.pdf but
> I haven't tried that out yet.

when you add them in acrobat pro destination objects get an extra entry 
(that probably triggers showing in the list)

anyhow, there is currently no way to force such keys into the object

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2011-04-26 10:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-25 15:31 Creating a PDF named destination Duncan Hothersall
2011-04-26  8:40 ` Hans Hagen
2011-04-26  9:00   ` Duncan Hothersall
2011-04-26  9:27     ` Hans Hagen
2011-04-26  9:38       ` Duncan Hothersall
2011-04-26 10:26         ` 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).