From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89376 Path: news.gmane.org!not-for-mail From: Andrea Valle Newsgroups: gmane.comp.tex.context Subject: useattachment Date: Tue, 2 Dec 2014 11:06:17 +0100 Message-ID: <57C22BA5-DC08-4AC6-8EEC-B1C8BAA486BB@unito.it> References: <111E03F4-E325-44C4-9F2B-E3AEAAF581C1@unito.it> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Content-Type: multipart/mixed; boundary="===============0543567387==" X-Trace: ger.gmane.org 1417592633 24096 80.91.229.3 (3 Dec 2014 07:43:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Dec 2014 07:43:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 03 08:43:49 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xw4bE-0003JT-2a for gctc-ntg-context-518@m.gmane.org; Wed, 03 Dec 2014 08:43:48 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B0CE810200 for ; Wed, 3 Dec 2014 08:43:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 165CuehEyACO for ; Wed, 3 Dec 2014 08:43:46 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E4D391040F for ; Wed, 3 Dec 2014 08:38:17 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D97DC10203 for ; Tue, 2 Dec 2014 11:09:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id oe3xlsmfB-Is for ; Tue, 2 Dec 2014 11:09:46 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id C49BE101E4 for ; Tue, 2 Dec 2014 11:09:46 +0100 (CET) Original-Received: from mail.di.unito.it (pianeta.di.unito.it [130.192.156.1]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sB2A9iXw016480 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 2 Dec 2014 11:09:44 +0100 X-MailScanner-From: valle@unito.it X-SpamCheck: not spam (whitelisted), SpamAssassin (not cached, score=-101.622, required 3, autolearn=not spam, AUTHENTICATEDUSER -100.00, AWL 0.12, BAYES_00 -1.90, HTML_MESSAGE 0.00, MISSING_FROM 1.00, RCVD_IN_DNSWL_MED -2.30, RDNS_NONE 0.79, SPF_SOFTFAIL 0.67) X-AntiVirus: Email Clean X-dipinfo-MailScanner-ID: sB2A6IHH027556 X-dipinfo-MailScanner-Information: Please contact Department of Computer Science technical staff for more information Original-Received: from mail.di.unito.it ([130.192.156.1]) by mail.di.unito.it (INFO-DIP) with ESMTP id sB2A6IHH027556 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO AuthenticatedUser=valle ) for ; Tue, 2 Dec 2014 11:06:19 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.8.0 mail.di.unito.it sB2A6IHH027556 In-Reply-To: <111E03F4-E325-44C4-9F2B-E3AEAAF581C1@unito.it> X-Mailer: Apple Mail (2.1990.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=130.192.156.1; country=IT; region=Turin; city=Turin; latitude=45.0500; longitude=7.6667; http://maps.google.com/maps?q=45.0500,7.6667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03Nmy9Ism - 58a3e0ffcf3e - 20141202 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-Mailman-Approved-At: Wed, 03 Dec 2014 08:37:48 +0100 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:89376 Archived-At: --===============0543567387== Content-Type: multipart/alternative; boundary="Apple-Mail=_F8E08075-D84B-4A05-86ED-01F9369C5744" --Apple-Mail=_F8E08075-D84B-4A05-86ED-01F9369C5744 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 (Sorry if have already posted this, can=E2=80=99t find it in the = archives, so maybe it didn=E2=80=99t go thru) On 01 Dec 2014, at 21:49, Andrea Valle 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] }=20 In this way I could have=20 \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=E2=80=99m 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=E2=80=99m 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=C3=A0 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.valle@unito.it -------------------------------------------------- "This is a very complicated case, Maude. You know, a lotta ins, a lotta = outs, a lotta what-have-yous."=20 (Jeffrey 'The Dude' Lebowski) --Apple-Mail=_F8E08075-D84B-4A05-86ED-01F9369C5744 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 (Sorry if have already posted this, can=E2=80=99t find it in = the archives, so maybe it didn=E2=80=99t go thru)



On 01 Dec 2014, at 21:49, Andrea Valle <valle@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=E2=80=99m 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=E2=80=99m 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=C3=A0 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.valle@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)


= --Apple-Mail=_F8E08075-D84B-4A05-86ED-01F9369C5744-- --===============0543567387== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0543567387==--