From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Clemente Subject: Re: variables to get the export date and other export data Date: Wed, 22 Apr 2009 10:17:01 +0200 Message-ID: <87hc0h9k76.fsf@CPU107.opentrends.net> References: <87myajnjdi.fsf@CPU107.opentrends.net> <61B49341-159B-4EA7-A9FC-A4F0A6582D99@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LwXdu-0002XY-P1 for emacs-orgmode@gnu.org; Wed, 22 Apr 2009 04:17:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LwXdq-0002Wg-69 for emacs-orgmode@gnu.org; Wed, 22 Apr 2009 04:17:18 -0400 Received: from [199.232.76.173] (port=52777 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwXdq-0002Wb-1P for emacs-orgmode@gnu.org; Wed, 22 Apr 2009 04:17:14 -0400 Received: from yw-out-1718.google.com ([74.125.46.153]:12968) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LwXdp-00077b-Lq for emacs-orgmode@gnu.org; Wed, 22 Apr 2009 04:17:13 -0400 Received: by yw-out-1718.google.com with SMTP id 5so37634ywm.66 for ; Wed, 22 Apr 2009 01:17:12 -0700 (PDT) In-Reply-To: <61B49341-159B-4EA7-A9FC-A4F0A6582D99@gmail.com> (Carsten Dominik's message of "Wed, 15 Apr 2009 17:02:05 +0200") 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: Carsten Dominik Cc: mailing-list-org-mode El dc, abr 15 2009, Carsten Dominik va escriure: >> just like [TABLE-OF-CONTENTS] inserts the table of contents, are there = other >> variables which will be translated on export? For instance [EXPORT-DATE= ] to >> get the export date, [VERSION] for the Org version, [FILE-NAME] for this >> file's name, =E2=80=A6 > If you make me a complete list of what you'd like to have, I > can add them to the macros.=20 I actually only miss the export date, but after seeing for instance what = txt2tags (another markup syntax) provides, I think this will cover most nee= ds: - export date (that is, current date). So that you can say =E2=80=9EPage up= dated on 22/4/2009=E2=80=9C. txt2tags for instance has %%date and %%date(fo= rmat-string), as in %%date(%d-%m-%Y) - file modification time; useful for instance if you export *all* pages fre= quently (then the export date would be the same for all even for unmodified= pages) - input file name; useful to say =E2=80=9ESee the Org source for this page:= blabla.org=E2=80=9C. It can also have a format string to select whether yo= u want the extension, the full path, etc. - output file name; only to say =E2=80=9EThis is page blabla.html=E2=80=9C. - table of contents > 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 syntax. Is there other metainformation that people need at export time? Org version? User name? File attributes? -- Daniel