From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55540 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: spaces in file names Date: Wed, 13 Jan 2010 16:35:52 +0100 Message-ID: <01B55BA4-FE4A-4AA6-83F6-695CB56A4190@gmail.com> References: <14AAC5F8-22CF-43BC-ABAE-6D91B734A8D5@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: multipart/mixed; boundary="===============0896273331==" X-Trace: ger.gmane.org 1263396979 14927 80.91.229.12 (13 Jan 2010 15:36:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jan 2010 15:36:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 13 16:36:12 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NV5GU-0002qg-Hm for gctc-ntg-context-518@m.gmane.org; Wed, 13 Jan 2010 16:36:10 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 86E7FC9C6F; Wed, 13 Jan 2010 16:36:10 +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 wfUcULuirZ5h; Wed, 13 Jan 2010 16:36:07 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 82233C9C44; Wed, 13 Jan 2010 16:36:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 77F3CC9C44 for ; Wed, 13 Jan 2010 16:36:06 +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 Jxgb1jfbuxR1 for ; Wed, 13 Jan 2010 16:35:54 +0100 (CET) Original-Received: from mail-bw0-f220.google.com (mail-bw0-f220.google.com [209.85.218.220]) by balder.ntg.nl (Postfix) with ESMTP id D1157C9C43 for ; Wed, 13 Jan 2010 16:35:54 +0100 (CET) Original-Received: by bwz20 with SMTP id 20so15021376bwz.34 for ; Wed, 13 Jan 2010 07:35:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:mime-version :content-type:subject:date:in-reply-to:to:references:message-id :x-mailer; bh=9bxyiKjLrwfcuiRBMU/Qc27f0wG7NGpH2Otm6Go3PEY=; b=Yt9rhS3hZ6zUNYE9zQWEsPBBZDv7baN7/PRtNuFmAon8jdldlsZNH1Mt6CUoXoMC5G 3Sj28JB9ZR5sm1P+kBieHNP0vRFVyOtYgmnMmytzZ8e0nh5nObdnlDVMDe11ma09HGpP aw7/hvO13IQP2eOouXHM5r/lPfllFQNnPJFFM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; b=qbwQDA9xZE9EBJWDkD456Y567Tqf9qNard7uMFbNIqy9VcNEizOB0aGzUA/ZK+dLhx +16VuY51QP000hkkSuOeqc2DqzLNZhDzq128Z0KCpCzk+I16oHmHd6aVALLG+aVWwFXw FKRV99x/WvQTVGMz+AUKHhuWZKkS5lAiKnkiI= Original-Received: by 10.204.15.24 with SMTP id i24mr2987bka.2.1263396954550; Wed, 13 Jan 2010 07:35:54 -0800 (PST) Original-Received: from mackavian.math.uvsq.fr (MacKavian.math.uvsq.fr [193.51.32.142]) by mx.google.com with ESMTPS id 15sm9984201bwz.12.2010.01.13.07.35.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 13 Jan 2010 07:35:53 -0800 (PST) In-Reply-To: <14AAC5F8-22CF-43BC-ABAE-6D91B734A8D5@uva.nl> X-Mailer: Apple Mail (2.1077) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:55540 Archived-At: --===============0896273331== Content-Type: multipart/alternative; boundary=Apple-Mail-14--525572809 --Apple-Mail-14--525572809 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi Hans, The following works for me both with mkii and mkiv (running Mac OS X = 10.6.2). %%%%%%%%% \starttext \input "exercise english.tex" \page \externalfigure[pictures folder/old = friend.jpg][maxwidth=3D3cm,maxheight=3D4cm,frame=3Don] \stoptext %%%%%%%%%% My images are in the =AB folder =BB or directory =AB pictures folder =BB = and my file is called =AB old friend.jpg =BB, so the command = \externalfigure is clever enough (not surprising from an old ConTeXt = command=85) and doesn't need any double quotes. However for an \input file I have to say =AB \input "exercise = english.tex" =BB. 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=3D\DATADIRECTORY] > it does not find the picture file there. >=20 > How can I accomplish the setup? Do I miss something? Using = contextbeta, if that makes a difference. >=20 > Hans van der Meer --Apple-Mail-14--525572809 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Hi = Hans,

The following works for me both with mkii and = mkiv (running Mac OS X = 10.6.2).

%%%%%%%%%
\starttext
\input "exercise = english.tex"
\page
\externalfigure[pictures = folder/old = friend.jpg][maxwidth=3D3cm,maxheight=3D4cm,frame=3Don]

\stoptext
%%%%%%%%%%

My images = are in the =AB folder =BB or directory =AB pictures folder =BB and my = file is called =AB old friend.jpg =BB, so the command \externalfigure is = clever enough (not surprising from an old ConTeXt command=85) and = doesn't need any double quotes.
However for an \input file I = have to say =AB \input "exercise english.tex" = =BB.

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=3D\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
<= /body>= --Apple-Mail-14--525572809-- --===============0896273331== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0896273331==--