Replying to myself the problem seems related to the use of the ex label. this works
\define[1]\Ex{\externalfigure[code/#1] \useattachment[#1][code/#1.scd] \attachment[#1] } (so this does not work anymore http://wiki.contextgarden.net/Verbatim_text#Embedding_the_source_code <http://wiki.contextgarden.net/Verbatim_text#Embedding_the_source_code> ) -------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - StudiUm Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.fonurgia.unito.it/andrea/ --> http://www.flickr.com/photos/vanderaalle/sets/ --> http://vimeo.com/vanderaalle --> andrea.va...@unito.it -------------------------------------------------- "This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous." (Jeffrey 'The Dude' Lebowski) > On 02 Dec 2014, at 11:06, Andrea Valle <va...@unito.it> wrote: > > (Sorry if have already posted this, can’t find it in the archives, so maybe > it didn’t go thru) > > > > On 01 Dec 2014, at 21:49, Andrea Valle <va...@unito.it > <mailto:va...@unito.it>> wrote: > > Dear list, > > In the previous version of a programming manual I wrote I used this > definition: > > > \define[1]\Ex{\externalfigure[code/#1] > \useattachment[ex][code/#1.scd] > \attachment[ex] > } > > > In this way I could have > > \Ex{sintesi/sineArray} > > where sintesi/sineArray.scd is the path of code example > and sintesi/sineArray.pdf is the path of a pdf figure with coloured syntax . > > I’m revising the manual and using mk IV. > Now, concerning the attachment, in mk IV the marker on the generated pdf > always points to the same .scd file. > But while reading the pdf in Acrobat Reader if I’m passing the mouse over the > marker the displayed path seems to be the correct one. > > Am I doing anything wrong here? > > Thanks a lot > > Best > > -a- > > > > > -------------------------------------------------- > Andrea Valle > -------------------------------------------------- > CIRMA - StudiUm > Università degli Studi di Torino > --> http://www.cirma.unito.it/andrea/ <http://www.cirma.unito.it/andrea/> > --> http://www.fonurgia.unito.it/andrea/ > <http://www.fonurgia.unito.it/andrea/> > --> http://www.flickr.com/photos/vanderaalle/sets/ > <http://www.flickr.com/photos/vanderaalle/sets/> > --> http://vimeo.com/vanderaalle <http://vimeo.com/vanderaalle> > --> andrea.va...@unito.it <mailto:andrea.va...@unito.it> > -------------------------------------------------- > > "This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, > a lotta what-have-yous." > (Jeffrey 'The Dude' Lebowski) > > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________