emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] variables to get the export date and other export data


From: Carsten Dominik
Subject: Re: [Orgmode] variables to get the export date and other export data
Date: Mon, 11 May 2009 22:46:37 +0200


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 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, …
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 what txt2tags (another markup syntax) provides, I think this will cover most needs:

- export date (that is, current date). So that you can say „Page updated on 22/4/2009“. txt2tags for instance has %%date and % %date(format-string), as in %%date(%d-%m-%Y)

{{{date(FORMAT)}}}

- file modification time; useful for instance if you export *all* pages frequently (then the export date would be the same for all even for unmodified pages)

{{{modification-time(FORMAT)}}}

- input file name; useful to say „See the Org source for this page: blabla.org“. It can also have a format string to select whether you want the extension, the full path, etc.

{{{input-file}}}


- output file name; only to say „This is page blabla.html“.

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 syntax.



 Is there other metainformation that people need at export time?
 Org version? User name? File attributes?



-- Daniel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]