From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Additional Export options Date: Fri, 19 Mar 2010 18:53:02 +0100 Message-ID: <33340412-08AC-4AAB-8E19-A593CC6020C4@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NshIZ-0001eI-En for emacs-orgmode@gnu.org; Fri, 19 Mar 2010 14:51:55 -0400 Received: from [140.186.70.92] (port=50170 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NshIY-0001dT-6f for emacs-orgmode@gnu.org; Fri, 19 Mar 2010 14:51:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NshIW-0006SP-H6 for emacs-orgmode@gnu.org; Fri, 19 Mar 2010 14:51:54 -0400 Received: from mail-ew0-f224.google.com ([209.85.219.224]:58768) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NshIW-0006PF-53 for emacs-orgmode@gnu.org; Fri, 19 Mar 2010 14:51:52 -0400 Received: by mail-ew0-f224.google.com with SMTP id 24so703576ewy.15 for ; Fri, 19 Mar 2010 11:51:51 -0700 (PDT) In-Reply-To: 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: srinivas Cc: emacs-orgmode@gnu.org Hi, the facilities you are asking for do not exist. You can use the macro {{{input-file}}} to get the source file name, and there are similar macros for modification-time, time, and date, and you can specify the format for time and date. This is not well documented, but the release notes for 6.24 talk about this. - Carsten On Mar 13, 2010, at 4:02 PM, srinivas wrote: > I have a few questions (or possible requests) regarding the > export/publish capability. > > 1) Is there a way to get the buffer name or file name to be output as > a keyword? I would like to know the source file used to publish the > content. This would result in the filename being part of the > post-amble along with author nfo and creation date. > > For example: > #+OPTION: filename:t > > 2) Is there a way to set a pattern for export file name? For example, > if my org file is called project-notes.org, when publishing notes on a > given date, I would like to have the flexiblity to name the output > file using a pattern such as -YYYY-MM-DD--NTS., > where YYYY-MM-DD is the export date. > > This could be specified in an option. For example: > > #+EXPORT_OPTION: output: ---NTS. > > PS. I have seen a thread where this was briefly discussed using > options as drawer properties - :EXPORT_DATE:. In this scenario the > export date was hard coded. I want to have the flexibility to use the > actual publish instead of hard coding it. > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten