<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Replying to myself the problem seems related to the use of the ex label.<div class=""><br class=""></div><div class="">this works</div><div class=""><br class=""></div><div class="">\define[1]\Ex{\externalfigure[code/#1]<br class="">\useattachment[#1][code/#1.scd]<br class="">\attachment[#1]</div><div class="">} <br class=""><br class=""><br class="">(so this does not work anymore</div><div class=""><br class=""></div><div class=""><a href="http://wiki.contextgarden.net/Verbatim_text#Embedding_the_source_code" class="">http://wiki.contextgarden.net/Verbatim_text#Embedding_the_source_code</a></div><div class=""><br class=""></div><div class="">)<br class=""><div class=""><br class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div style="orphans: 2; widows: 2; margin: 0px;" class="">--------------------------------------------------</div><div style="orphans: 2; widows: 2; margin: 0px;" class="">Andrea Valle</div><div style="orphans: 2; widows: 2; margin: 0px;" class="">--------------------------------------------------</div><div style="orphans: 2; widows: 2; margin: 0px;" class="">CIRMA - StudiUm</div><div style="orphans: 2; widows: 2; margin: 0px;" class="">Università degli Studi di Torino</div><div style="orphans: 2; widows: 2; margin: 0px;" class="">--> <a href="http://www.cirma.unito.it/andrea/" class="">http://www.cirma.unito.it/andrea/</a></div><div style="orphans: 2; widows: 2; margin: 0px;" class="">--> <a href="http://www.fonurgia.unito.it/andrea/" class="">http://www.fonurgia.unito.it/andrea/</a></div><div style="orphans: 2; widows: 2; margin: 0px;" class="">--> <a href="http://www.flickr.com/photos/vanderaalle/sets/" class="">http://www.flickr.com/photos/vanderaalle/sets/</a></div><div style="orphans: 2; widows: 2; margin: 0px;" class="">--> <a href="http://vimeo.com/vanderaalle" class="">http://vimeo.com/vanderaalle</a></div><div style="orphans: 2; widows: 2; margin: 0px;" class=""><span style="text-align: -webkit-auto;" class="">--> <a href="mailto:andrea.valle@unito.it" class="">andrea.valle@unito.it</a></span></div><div style="orphans: 2; widows: 2; margin: 0px;" class="">--------------------------------------------------</div><div style="orphans: 2; widows: 2; margin: 0px;" class=""><br class=""></div><div style="orphans: 2; widows: 2; margin: 0px;" class=""><div style="margin: 0px;" class="">"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous." </div><div style="margin: 0px;" class="">(Jeffrey 'The Dude' Lebowski)</div></div></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 02 Dec 2014, at 11:06, Andrea Valle <<a href="mailto:valle@unito.it" class="">valle@unito.it</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">(Sorry if have already posted this, can’t find it in the archives, so maybe it didn’t go thru)<div class=""><br class=""></div><div class=""><div apple-content-edited="true" class=""><br class="">
</div>
<br class=""><div class="">On 01 Dec 2014, at 21:49, Andrea Valle <<a href="mailto:valle@unito.it" class="">valle@unito.it</a>> wrote:<br class=""><blockquote type="cite" class=""></blockquote><font color="#5856d6" class=""><br class=""></font>Dear list,<br class=""><font color="#5856d6" class=""><br class=""></font>In the previous version of a programming manual I wrote I used this definition:<br class=""><font color="#5856d6" class=""><br class=""><br class=""></font>\define[1]\Ex{\externalfigure[code/#1]<br class="">\useattachment[ex][code/#1.scd]<br class="">\attachment[ex]<br class="">} <br class=""><font color="#5856d6" class=""><br class=""><br class=""></font>In this way I could have <br class=""><font color="#5856d6" class=""><br class=""></font>\Ex{sintesi/sineArray}<br class=""><font color="#5856d6" class=""><br class=""></font>where sintesi/sineArray.scd is the path of code example<br class="">and sintesi/sineArray.pdf is the path of a pdf figure with coloured syntax .<br class=""><font color="#5856d6" class=""><br class=""></font>I’m revising the manual and using mk IV.<br class="">Now, concerning the attachment, in mk IV the marker on the generated pdf always points to the same .scd file.<br class="">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.<br class=""><font color="#5856d6" class=""><br class=""></font>Am I doing anything wrong here?<br class=""><font color="#5856d6" class=""><br class=""></font>Thanks a lot<br class=""><font color="#5856d6" class=""><br class=""></font>Best<br class=""><font color="#5856d6" class=""><br class=""></font>-a-<br class=""><font color="#5856d6" class=""><br class=""><br class=""><br class=""><br class=""></font><span style="orphans: 2; widows: 2;" class="">--------------------------------------------------</span><br class=""><span style="orphans: 2; widows: 2;" class="">Andrea Valle</span><br class=""><span style="orphans: 2; widows: 2;" class="">--------------------------------------------------</span><br class=""><span style="orphans: 2; widows: 2;" class="">CIRMA - StudiUm</span><br class=""><span style="orphans: 2; widows: 2;" class="">Università degli Studi di Torino</span><br class=""><span style="orphans: 2; widows: 2;" class="">--> </span><a href="http://www.cirma.unito.it/andrea/" class="" style="orphans: 2; widows: 2;">http://www.cirma.unito.it/andrea/</a><br class=""><span style="orphans: 2; widows: 2;" class="">--> </span><a href="http://www.fonurgia.unito.it/andrea/" class="" style="orphans: 2; widows: 2;">http://www.fonurgia.unito.it/andrea/</a><br class=""><span style="orphans: 2; widows: 2;" class="">--> </span><a href="http://www.flickr.com/photos/vanderaalle/sets/" class="" style="orphans: 2; widows: 2;">http://www.flickr.com/photos/vanderaalle/sets/</a><br class=""><span style="orphans: 2; widows: 2;" class="">--> </span><a href="http://vimeo.com/vanderaalle" class="" style="orphans: 2; widows: 2;">http://vimeo.com/vanderaalle</a><br class=""><span style="text-align: -webkit-auto; orphans: 2; widows: 2;" class="">--> </span><a href="mailto:andrea.valle@unito.it" class="" style="text-align: -webkit-auto; orphans: 2; widows: 2;">andrea.valle@unito.it</a><br class=""><span style="orphans: 2; widows: 2;" class="">--------------------------------------------------</span><br class=""><font color="#5856d6" class=""><br class=""></font><span style="orphans: 2; widows: 2;" class="">"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous." </span><br class=""><span style="orphans: 2; widows: 2;" class="">(Jeffrey 'The Dude' Lebowski)</span><br class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class=""></div></div><br class=""></div></div>___________________________________________________________________________________<br class="">If your question is of interest to others as well, please add an entry to the Wiki!<br class=""><br class="">maillist : <a href="mailto:ntg-context@ntg.nl" class="">ntg-context@ntg.nl</a> / <a href="http://www.ntg.nl/mailman/listinfo/ntg-context" class="">http://www.ntg.nl/mailman/listinfo/ntg-context</a><br class="">webpage  : <a href="http://www.pragma-ade.nl" class="">http://www.pragma-ade.nl</a> / <a href="http://tex.aanhet.net" class="">http://tex.aanhet.net</a><br class="">archive  : <a href="http://foundry.supelec.fr/projects/contextrev/" class="">http://foundry.supelec.fr/projects/contextrev/</a><br class="">wiki     : <a href="http://contextgarden.net" class="">http://contextgarden.net</a><br class="">___________________________________________________________________________________</div></blockquote></div><br class=""></div></div></body></html>