ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Andrea Valle <valle@di.unito.it>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: useattachment
Date: Tue, 23 Dec 2014 14:38:45 +0100	[thread overview]
Message-ID: <DFF4D101-9005-4ECB-94D0-D982CB2223BD@di.unito.it> (raw)
In-Reply-To: <57C22BA5-DC08-4AC6-8EEC-B1C8BAA486BB@unito.it>


[-- Attachment #1.1: Type: text/plain, Size: 3314 bytes --]

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.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)

> On 02 Dec 2014, at 11:06, Andrea Valle <valle@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 <valle@unito.it <mailto: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’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.valle@unito.it <mailto: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)
> 
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 8717 bytes --]

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

___________________________________________________________________________________
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
___________________________________________________________________________________

      reply	other threads:[~2014-12-23 13:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-01 20:49 useattachment Andrea Valle
2014-12-02 10:06 ` useattachment Andrea Valle
2014-12-23 13:38   ` Andrea Valle [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DFF4D101-9005-4ECB-94D0-D982CB2223BD@di.unito.it \
    --to=valle@di.unito.it \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).