ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: problem with url in \setupexternalfigures
Date: Wed, 13 Jan 2010 18:04:48 -0500 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.01.1001131758390.27605@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <4B4E3794.90604@wxs.nl>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1360 bytes --]

On Wed, 13 Jan 2010, Hans Hagen wrote:

> On 7-1-2010 10:14, Peter Münster wrote:
>> Hello,
>> 
>> This used to work:
>> 
>> \setupexternalfigures[directory={\currentvalue, http://pmrb.free.fr/tmp/}]
>> \starttext
>> \externalfigure[hacker-test]
>> \stoptext
>> 
>> But with the latest version, the figure is not found...
>
> ok, i can fix that but there is a problem ...
>
> if no suffix is given, the quality list is followed and the first request 
> will be
>
> http://pmrb.free.fr/tmp/hacker-test.pdf
>
> which gives a home page which is no pdf of course and luatex does not like 
> that
>
> as i don't want to complicate the lookup mechanism even more, i will not 
> catch this and users can best use a suffix when using an url

Does it make sense to add the look-up to \usemodule?

For example, the following works:

\input 
http://github.com/adityam/cut-n-paste/raw/master/tex/context/third/cut-n-paste/t-cut-n-paste.tex

But it will be nice if I could also do

\usemodule[http://github.com/adityam/cut-n-paste/raw/master/tex/context/third/cut-n-paste/t-cut-n-paste.tex]

or

\usemodule[http://..../t-cut-n-paste] % no .tex

or (not really serious here)

\usemodule[http:// ...][t-cut-n-paste] % like \usemodule[p][name] etc.

Of course, this will only work for moudles that provide only one file.

Aditya

[-- Attachment #2: Type: text/plain, Size: 486 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:[~2010-01-13 23:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-07  9:14 Peter Münster
2010-01-07  9:19 ` Hans Hagen
2010-01-13 21:13 ` Hans Hagen
2010-01-13 23:04   ` Aditya Mahajan [this message]
2010-01-14 23:19     ` Hans Hagen
2010-01-14  8:18   ` Peter Münster
2010-01-14 23:24     ` Hans Hagen

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=alpine.LNX.2.01.1001131758390.27605@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --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).