emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Daniel Clemente <n142857@gmail.com>
Cc: mailing-list-org-mode <emacs-orgmode@gnu.org>
Subject: Re: variables to get the export date and other export data
Date: Mon, 11 May 2009 22:46:37 +0200	[thread overview]
Message-ID: <E1215BC1-98D3-4D4A-8BDD-EC99AC2471D4@gmail.com> (raw)
In-Reply-To: <87hc0h9k76.fsf@CPU107.opentrends.net>


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	other threads:[~2009-05-11 20:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-14 19:08 variables to get the export date and other export data Daniel Clemente
2009-04-15 15:02 ` Carsten Dominik
2009-04-22  8:17   ` Daniel Clemente
2009-05-11 20:46     ` Carsten Dominik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1215BC1-98D3-4D4A-8BDD-EC99AC2471D4@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n142857@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).