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: Daniel Clemente
Subject: Re: [Orgmode] variables to get the export date and other export data
Date: Wed, 22 Apr 2009 10:17:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)

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)
- 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)
- 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.
- output file name; only to say „This is page blabla.html“.
- 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




reply via email to

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