From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38312 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: escaping filenames with externalfigure Date: Thu, 27 Dec 2007 16:27:28 +0100 Message-ID: <115224fb0712270727m1cc620d2pae5e08c31c16cdec@mail.gmail.com> References: <6703815B292B664DBAEC55EE3192386A20BD6F@poseidon.in.dynetics.com> <20071227160042.7b85a47f.schuster.wolfgang@googlemail.com> <6703815B292B664DBAEC55EE3192386A20BD74@poseidon.in.dynetics.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1198769336 5527 80.91.229.12 (27 Dec 2007 15:28:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2007 15:28:56 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 27 16:29:09 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1J7ufQ-0005ej-F5 for gctc-ntg-context-518@m.gmane.org; Thu, 27 Dec 2007 16:29:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6DAD91FC3E; Thu, 27 Dec 2007 16:28:43 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32044-02-2; Thu, 27 Dec 2007 16:28:03 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C33AE1FBDB; Thu, 27 Dec 2007 16:28:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B51681FBF6 for ; Thu, 27 Dec 2007 16:28:01 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32044-02 for ; Thu, 27 Dec 2007 16:27:29 +0100 (CET) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by ronja.ntg.nl (Postfix) with ESMTP id 392481FBDB for ; Thu, 27 Dec 2007 16:27:29 +0100 (CET) Original-Received: by ug-out-1314.google.com with SMTP id q2so1590179uge.50 for ; Thu, 27 Dec 2007 07:27:28 -0800 (PST) Original-Received: by 10.67.116.7 with SMTP id t7mr7243485ugm.38.1198769248372; Thu, 27 Dec 2007 07:27:28 -0800 (PST) Original-Received: by 10.67.19.16 with HTTP; Thu, 27 Dec 2007 07:27:28 -0800 (PST) In-Reply-To: <6703815B292B664DBAEC55EE3192386A20BD74@poseidon.in.dynetics.com> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:38312 Archived-At: > Wolfgang, > > Thanks for the suggestion. However, I'm using ConTeXt to typeset arbitrary > XML input from users (and therefore arbitrary image filenames). While your > idea works for the two examples that I gave, it doesn't work if the curly > braces aren't balanced in the filename (e.g., "flower{1.jpg"). Is there any > general character escaping mechanism for macro arguments? > > Cheers, > Mike If you use xml as input format you could save the file name in a temporary macro and use this macro now in the \externalfigure command. You already gave a example for this. Wolfgang ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________