From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: variables to get the export date and other export data Date: Mon, 11 May 2009 22:46:37 +0200 Message-ID: References: <87myajnjdi.fsf@CPU107.opentrends.net> <61B49341-159B-4EA7-A9FC-A4F0A6582D99@gmail.com> <87hc0h9k76.fsf@CPU107.opentrends.net> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3cOe-0004Ra-HY for emacs-orgmode@gnu.org; Mon, 11 May 2009 16:46:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3cOZ-0004RM-6J for emacs-orgmode@gnu.org; Mon, 11 May 2009 16:46:47 -0400 Received: from [199.232.76.173] (port=37046 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3cOY-0004RJ-CA for emacs-orgmode@gnu.org; Mon, 11 May 2009 16:46:42 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:41930) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M3cOX-00084c-W0 for emacs-orgmode@gnu.org; Mon, 11 May 2009 16:46:42 -0400 Received: by ewy6 with SMTP id 6so3923183ewy.42 for ; Mon, 11 May 2009 13:46:40 -0700 (PDT) In-Reply-To: <87hc0h9k76.fsf@CPU107.opentrends.net> 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: Daniel Clemente Cc: mailing-list-org-mode On Apr 22, 2009, at 10:17 AM, Daniel Clemente wrote: > El dc, abr 15 2009, Carsten Dominik va escriure: >>> just like [TABLE-OF-CONTENTS] inserts the table of contents, are =20 >>> there other >>> variables which will be translated on export? For instance =20 >>> [EXPORT-DATE] to >>> get the export date, [VERSION] for the Org version, [FILE-NAME] =20 >>> for this >>> file's name, =85 >> If you make me a complete list of what you'd like to have, I >> can add them to the macros. > > I actually only miss the export date, but after seeing for instance =20= > what txt2tags (another markup syntax) provides, I think this will =20 > cover most needs: > > - export date (that is, current date). So that you can say =84Page =20 > updated on 22/4/2009=93. txt2tags for instance has %%date and %=20 > %date(format-string), as in %%date(%d-%m-%Y) {{{date(FORMAT)}}} > - file modification time; useful for instance if you export *all* =20 > pages frequently (then the export date would be the same for all =20 > even for unmodified pages) {{{modification-time(FORMAT)}}} > - input file name; useful to say =84See the Org source for this page: =20= > blabla.org=93. It can also have a format string to select whether you =20= > want the extension, the full path, etc. {{{input-file}}} > - output file name; only to say =84This is page blabla.html=93. I did not do this one. > - table of contents as before, [TABLE-OF-CONTENTS] HTH - Carsten > > >> I don't want to add more [NAME], >> I don't think it is "strange" enough. > > Better use longer words like [EXPORT-FILE-NAME], or more Org-like =20 > syntax. > > > > Is there other metainformation that people need at export time? > Org version? User name? File attributes? > > > > -- Daniel