ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* named destinations with highlation
@ 2004-10-26 13:41 shiva shankar shankar
  2004-10-26 16:27 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: shiva shankar shankar @ 2004-10-26 13:41 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/html, Size: 739 bytes --]

[-- Attachment #1.2: Type: text/plain, Size: 449 bytes --]

Dear sir,

       suppose that i am  having a target text and link to a target text in a pdf document(created either by using pdftex or by using a distiller) if i click the link it will take you to the target text. When you go to the target text if i want to highlate the text with some color temporarily( like when you use find ) what must be the postscript code or javascript code that i should embed in a tex file.   


     shiva shankar.

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: named destinations with highlation
  2004-10-26 13:41 named destinations with highlation shiva shankar shankar
@ 2004-10-26 16:27 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2004-10-26 16:27 UTC (permalink / raw)


shiva shankar shankar wrote:

>        suppose that i am  having a target text and link to a target text in a pdf document(created either by using pdftex or by using a distiller) if i click the link it will take you to the target text. When you go to the target text if i want to highlate the text with some color temporarily( like when you use find ) what must be the postscript code or javascript code that i should embed in a tex file.   

This is kind of tricky, maybe something:

- use the background mechanism to mark text fragments

- put the background of the destination text in a pdf layer, this is an 
acrobat 6 feature, supported by context (not to be confused with context 
layers)

- the link should then indeed be a javascript that sets a global 
variable with info about the destination

- in the destination document, the pags action should be a javascript 
which checks the global variable and if applicable, enables the layer, 
thereby turning on the background

if javascript supports cross document search within a page range (i 
didn't check that) a solution is to simply put a javascript behind a link

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

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

end of thread, other threads:[~2004-10-26 16:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-26 13:41 named destinations with highlation shiva shankar shankar
2004-10-26 16:27 ` 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).