emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Include today's date in title?
@ 2013-03-19 18:39 Gary Oberbrunner
  2013-03-20  8:59 ` Eric S Fraga
  0 siblings, 1 reply; 5+ messages in thread
From: Gary Oberbrunner @ 2013-03-19 18:39 UTC (permalink / raw)
  To: Orgmode Mailing List

[-- Attachment #1: Type: text/plain, Size: 298 bytes --]

I'm primarily publishing to LaTeX/PDF from org.  I have a title:

#+TITLE: Weekly Status <TODAYS_DATE_HERE>

How can I get it to automatically export with today's date?  Hopefully
without a full babel elisp code block?  Any ideas?

BTW, converted to new exporter today.  Pretty painless.

-- 
Gary

[-- Attachment #2: Type: text/html, Size: 442 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Include today's date in title?
  2013-03-19 18:39 Include today's date in title? Gary Oberbrunner
@ 2013-03-20  8:59 ` Eric S Fraga
  2013-03-20 14:21   ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2013-03-20  8:59 UTC (permalink / raw)
  To: Gary Oberbrunner; +Cc: Orgmode Mailing List

Gary Oberbrunner <garyo@oberbrunner.com> writes:

> I'm primarily publishing to LaTeX/PDF from org.  I have a title:
>
> #+TITLE: Weekly Status <TODAYS_DATE_HERE>
>
> How can I get it to automatically export with today's date?  Hopefully
> without a full babel elisp code block?  Any ideas?
>
> BTW, converted to new exporter today.  Pretty painless.

This appears to work:

#+TITLE: The title {{{modification-time(%Y-%m-%d)}}}

Look in the info manual, (org) Macro replacement.

"date" instead of "modification-time" should work but doesn't for me.

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3f-1199-g3a0e55

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Include today's date in title?
  2013-03-20  8:59 ` Eric S Fraga
@ 2013-03-20 14:21   ` Bastien
  2013-03-20 16:49     ` shripad sinari
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2013-03-20 14:21 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: Orgmode Mailing List, Gary Oberbrunner

Hi Eric,

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> This appears to work:
>
> #+TITLE: The title {{{modification-time(%Y-%m-%d)}}}
>
> Look in the info manual, (org) Macro replacement.
>
> "date" instead of "modification-time" should work but doesn't for
> me.

{{{date}}} will only work if #+DATE: is set.  

For other users, use {{{modification-time(...)}}} or {{{time()}}}

(And yes, this will be documented...)

-- 
 Bastien

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Include today's date in title?
  2013-03-20 14:21   ` Bastien
@ 2013-03-20 16:49     ` shripad sinari
  2013-03-20 17:05       ` Thomas S. Dye
  0 siblings, 1 reply; 5+ messages in thread
From: shripad sinari @ 2013-03-20 16:49 UTC (permalink / raw)
  To: Bastien; +Cc: Gary Oberbrunner, Orgmode Mailing List

[-- Attachment #1: Type: text/plain, Size: 604 bytes --]

This seems to work for me:

#+DATE:  %Y-%m-%d



Shripad
Tucson, AZ


On Wed, Mar 20, 2013 at 7:21 AM, Bastien <bzg@altern.org> wrote:

> Hi Eric,
>
> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>
> > This appears to work:
> >
> > #+TITLE: The title {{{modification-time(%Y-%m-%d)}}}
> >
> > Look in the info manual, (org) Macro replacement.
> >
> > "date" instead of "modification-time" should work but doesn't for
> > me.
>
> {{{date}}} will only work if #+DATE: is set.
>
> For other users, use {{{modification-time(...)}}} or {{{time()}}}
>
> (And yes, this will be documented...)
>
> --
>  Bastien
>
>

[-- Attachment #2: Type: text/html, Size: 1267 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Include today's date in title?
  2013-03-20 16:49     ` shripad sinari
@ 2013-03-20 17:05       ` Thomas S. Dye
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas S. Dye @ 2013-03-20 17:05 UTC (permalink / raw)
  To: shripad sinari; +Cc: Bastien, Orgmode Mailing List, Gary Oberbrunner

shripad sinari <shripad.sinari@gmail.com> writes:

> This seems to work for me:
>
> #+DATE:  %Y-%m-%d
>
>

And might be a nice addition to the FAQ on Worg.

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-20 17:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-19 18:39 Include today's date in title? Gary Oberbrunner
2013-03-20  8:59 ` Eric S Fraga
2013-03-20 14:21   ` Bastien
2013-03-20 16:49     ` shripad sinari
2013-03-20 17:05       ` Thomas S. Dye

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