From mboxrd@z Thu Jan 1 00:00:00 1970 From: zwz Subject: How to do this by MACRO? (feature request) Date: Thu, 29 Oct 2009 19:19:38 +0800 Message-ID: <87r5smcur9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3T3V-0005pG-4P for emacs-orgmode@gnu.org; Thu, 29 Oct 2009 07:20:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3T3Q-0005m6-Dt for emacs-orgmode@gnu.org; Thu, 29 Oct 2009 07:20:36 -0400 Received: from [199.232.76.173] (port=49708 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3T3P-0005lu-Q0 for emacs-orgmode@gnu.org; Thu, 29 Oct 2009 07:20:32 -0400 Received: from lo.gmane.org ([80.91.229.12]:57728) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N3T3P-0006Cm-Bi for emacs-orgmode@gnu.org; Thu, 29 Oct 2009 07:20:31 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1N3T3I-0005rY-KL for emacs-orgmode@gnu.org; Thu, 29 Oct 2009 12:20:24 +0100 Received: from 60.12.143.31 ([60.12.143.31]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Oct 2009 12:20:24 +0100 Received: from zhangweize by 60.12.143.31 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Oct 2009 12:20:24 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I want to insert a series of images in the org file. The images are located in a directory, with names in such a pattern "cat-N00000.png", where N is a number. The direct and compact macro is something like this: #+MACRO: cat-imgs /path/to/cat-${1}00000.png Here the {} is used to separate the placeholder from the zeros, which in fact is not supported in current version. I know that I can use #+MACRO: cat-imgs2 /path/to/cat-$1.png but it is a little tedious when I use it. I also tried to define a null macro first, which was then used as a separator separating the placeholder from the zeros. But it fails. #+MACRO null #+MACRO: cat-imgs /path/to/cat-$1{{{null}}}00000.png I wonder if there is a feasible way.