From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55541 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: spaces in file names Date: Wed, 13 Jan 2010 17:30:00 +0100 Message-ID: <2B222B03-0FDD-41C0-BF46-265F683B7C8B@uva.nl> References: <14AAC5F8-22CF-43BC-ABAE-6D91B734A8D5@uva.nl> <01B55BA4-FE4A-4AA6-83F6-695CB56A4190@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============1623697303==" X-Trace: ger.gmane.org 1263400232 27643 80.91.229.12 (13 Jan 2010 16:30:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jan 2010 16:30:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 13 17:30:22 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 1NV66n-0001XM-VP for gctc-ntg-context-518@m.gmane.org; Wed, 13 Jan 2010 17:30:14 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BAF60C9C61; Wed, 13 Jan 2010 17:30:13 +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 ueZhLU3az7jt; Wed, 13 Jan 2010 17:30:10 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 83D04C9C67; Wed, 13 Jan 2010 17:30:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A8BBCC9C67 for ; Wed, 13 Jan 2010 17:30:08 +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 dpzE87r7NkGL for ; Wed, 13 Jan 2010 17:30:06 +0100 (CET) Original-Received: from pony.ic.uva.nl (pony.ic.uva.nl [145.18.40.181]) by balder.ntg.nl (Postfix) with ESMTP id 31C46C9C61 for ; Wed, 13 Jan 2010 17:30:06 +0100 (CET) Original-Received: from [192.168.178.23] (a82-95-102-36.adsl.xs4all.nl [82.95.102.36]) (authenticated bits=0) by pony.ic.uva.nl (8.13.1/8.13.1) with ESMTP id o0DGU0Ta009161 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 13 Jan 2010 17:30:02 +0100 In-Reply-To: <01B55BA4-FE4A-4AA6-83F6-695CB56A4190@gmail.com> X-Mailer: Apple Mail (2.936) X-CanIt-Geo: ip=82.95.102.36; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: auth (inherits from default) X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 145.18.40.181 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:55541 Archived-At: --===============1623697303== Content-Type: multipart/alternative; boundary=Apple-Mail-2--522324301 --Apple-Mail-2--522324301 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable 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 =20= > 10.6.2). Yes, I knew that. Adding the full path inside the \externalfigure =20 works. But I would like to access picture files by separately =20 adressing directory and filename, not combining them explicitely. =20 \setupexternalfigures[directory=3D..] was made for this. The annoying =20= thing is that \setupexternalfigures and \externalfigure apparently do =20= not work seamlessly together. > > %%%%%%%%% > \starttext > \input "exercise english.tex" > \page > \externalfigure[pictures folder/old friend.jpg]=20 > [maxwidth=3D3cm,maxheight=3D4cm,frame=3Don] > > \stoptext > %%%%%%%%%% > > My images are in the =AB folder =BB or directory =AB pictures folder =BB= and =20 > my file is called =AB old friend.jpg =BB, so the command = \externalfigure =20 > is clever enough (not surprising from an old ConTeXt command=85) and =20= > doesn't need any double quotes. > However for an \input file I have to say =AB \input "exercise =20 > english.tex" =BB. > > Actually in general I avoid to have spaces in my file names, but I =20 > 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 =20= >> 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 =20 >> contextbeta, if that makes a difference. >> >> Hans van der Meer > = __________________________________________________________________________= _________ Hans van der Meer --Apple-Mail-2--522324301 Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable
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=3D..] 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=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
<= /div>_____________________________________________________________________= ______________

Hans van der = Meer

= --Apple-Mail-2--522324301-- --===============1623697303== 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 ___________________________________________________________________________________ --===============1623697303==--