ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans van der Meer <H.vanderMeer@uva.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: spaces in file names
Date: Wed, 13 Jan 2010 17:30:00 +0100	[thread overview]
Message-ID: <2B222B03-0FDD-41C0-BF46-265F683B7C8B@uva.nl> (raw)
In-Reply-To: <01B55BA4-FE4A-4AA6-83F6-695CB56A4190@gmail.com>


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

On 13 jan 2010, at 16:35, Otared Kavian wrote:

> Hi Hans,
>
> The following works for me both with mkii and mkiv (running Mac OS X  
> 10.6.2).

Yes, I knew that. Adding the full path inside the \externalfigure  
works. But I would like to access picture files by separately  
adressing directory and filename, not combining them explicitely.  
\setupexternalfigures[directory=..] was made for this. The annoying  
thing is that \setupexternalfigures and \externalfigure apparently do  
not work seamlessly together.

>
> %%%%%%%%%
> \starttext
> \input "exercise english.tex"
> \page
> \externalfigure[pictures folder/old friend.jpg] 
> [maxwidth=3cm,maxheight=4cm,frame=on]
>
> \stoptext
> %%%%%%%%%%
>
> My images are in the « folder » or directory « pictures folder » and  
> my file is called « old friend.jpg », so the command \externalfigure  
> is clever enough (not surprising from an old ConTeXt command…) and  
> doesn't need any double quotes.
> However for an \input file I have to say « \input "exercise  
> english.tex" ».
>
> Actually in general I avoid to have spaces in my file names, but I  
> just tried the above in order to understand your question.
>
>
>
> On 13 janv. 2010, at 11:51, Hans van der Meer wrote:
>
>> I would like to include a file with spaces in its name.
>> Clearly it does not work using: \input /Users/me/dir with spaces/file
>> I can use something like:
>>  \def\DataDirectory#1{\def\DATADIRECTORY{#1/}} % in reality coping  
>> with empty #1
>>  \DataDirectory{/Users/me/dir with spaces}
>>  \def\Input#1{\input "\DATADIRECTORY#1"}
>> and then that file is read.
>> When however I want to set this directory with
>>  \setupexternalfigures[directory=\DATADIRECTORY]
>> it does not find the picture file there.
>>
>> How can I accomplish the setup? Do I miss something? Using  
>> contextbeta, if that makes a difference.
>>
>> Hans van der Meer
> ___________________________________________________________________________________

Hans van der Meer


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

[-- 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 16:30 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-13 10:51 Hans van der Meer
2010-01-13 10:55 ` luigi scarso
2010-01-13 11:12   ` Hans van der Meer
2010-01-13 11:16     ` luigi scarso
2010-01-13 11:26       ` Hans van der Meer
2010-01-13 11:30         ` luigi scarso
2010-01-13 11:32         ` Wolfgang Schuster
2010-01-13 11:38           ` Hans van der Meer
2010-01-13 11:42             ` Wolfgang Schuster
2010-01-13 13:23           ` Peter Rolf
2010-01-13 15:35 ` Otared Kavian
2010-01-13 16:30   ` Hans van der Meer [this message]
2010-01-13 17:59     ` Hans Hagen
2010-01-13 19:34       ` Hans van der Meer
2010-01-13 19:46         ` Hans van der Meer
2010-01-13 20:39           ` Hans Hagen
2010-01-14 20:16             ` Text backgrounds once again Matthias Weber
2010-01-14 20:55               ` Text backgrounds once again (follow-up) Matthias Weber
2010-01-14 21:39                 ` Willi Egger
2010-01-14 21:45                   ` Matthias Weber
2010-01-14 22:15                     ` Aditya Mahajan
2010-01-15 12:58                       ` Matthias Weber
2010-01-14 21:48                 ` NOT reusing figures Matthias Weber
2010-01-14 22:36                   ` Hans Hagen
2010-01-15  0:58                     ` Matthias Weber
2010-01-15 15:26                       ` reusing figures ok - problem with hiding blocks in MKIV Matthias Weber
2010-01-18  9:00                         ` Hans Hagen
2010-01-22 15:19                           ` More questions about hiding/reusing blocks Matthias Weber
2010-01-22 15:55                             ` Calligraphic letters in Mark IV Matthias Weber
2010-01-22 17:29                               ` Hans Hagen
2010-01-22 17:49                                 ` Matthias Weber
2010-01-22 17:53                                   ` Wolfgang Schuster
2010-01-22 18:14                                     ` Matthias Weber
2010-01-22 18:20                                 ` Wolfgang Schuster
2010-01-24 13:34                                   ` Hans Hagen
2010-01-24 21:17                                     ` Aditya Mahajan
2010-01-24 22:45                                       ` Hans Hagen
2010-01-24 16:57                             ` More questions about hiding/reusing blocks Hans Hagen
     [not found]                               ` <A4C3BD19-AAE4-4033-AA0E-A2C2DB586BFB@indiana.edu>
2010-01-25  0:15                                 ` Hans Hagen
2010-01-14  2:00           ` spaces in file names Vladimir Lomov
2010-01-13 19:59         ` Thomas A. Schmitz
2010-01-13 20:32           ` 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=2B222B03-0FDD-41C0-BF46-265F683B7C8B@uva.nl \
    --to=h.vandermeer@uva.nl \
    --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).