ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Ian Lawrence <physics.rooted@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: A bit more help with referencing local filenames
Date: Wed, 15 Feb 2012 19:46:24 +0000	[thread overview]
Message-ID: <CAK9u4iB2-ea=eJqq8BQ4=agy5MwO84vUMhf59c8-W7XB-qQjbA@mail.gmail.com> (raw)
In-Reply-To: <CAK9u4iDDWzrHuwAoGhg62SKoJRg2hbXpOUB5q_wPxaUr2fV7mg@mail.gmail.com>

OK, a bit early! This one
> swfURLPath={\\PN01_media/},
> supportURLPath={\\PN01_support/},

 works with Acrobat, but not with the Preview PDF viewer on the Mac

Anyone know why, or can suggest a more robust mechanism?

On 15 February 2012 10:18, Ian Lawrence <physics.rooted@gmail.com> wrote:
> At the moment I have two bits of code that conspire to build a link to
> a file that is on a website.
>
> So, variables set on a per-document basis, giving the folder:
>
> swfURLPath={http://some location or other/PN01_media/},
> supportURLPath={http://some location or other/PN01_support/},
>
> These combine with a macro, ending with:
>
>  [url(\swflocation#1/#1.swf)]}
>
> and a piece in the actual file that gives the filename to be retrieved
>
> \PlaceSWF{ModelACircuit}
>
> What I'd like to do is be able to alter swfURLPath to designate a
> local folder for retrieving  the swf and launching it in a browser
>
> Same thing for the supportURLPath, which always opens PDFs in a browser.
>
> I tried stuff like:
>
> swfURLPath={\\PN01_media/},
> supportURLPath={\\PN01_support/},
>
> And have trawled the context wiki and documentation, but cannot find
> anything authoritative on linking to local files using relative
> references, as you might in html.
>
> I'm keen not to try and use the same hooks so that I can switch back
> and forth between remote and local access to the supporting files.
> There is a good reason for this - honest.
>
> Thanks in anticipation.
>
> Ian
___________________________________________________________________________________
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:[~2012-02-15 19:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-15 10:18 Ian Lawrence
2012-02-15 19:46 ` Ian Lawrence [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='CAK9u4iB2-ea=eJqq8BQ4=agy5MwO84vUMhf59c8-W7XB-qQjbA@mail.gmail.com' \
    --to=physics.rooted@gmail.com \
    --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).