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 -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context