[TxMt] Date snippet for Latex

Charilaos Skiadas cskiadas at gmail.com
Thu Oct 11 15:53:32 UTC 2007


On Oct 10, 2007, at 11:42 PM, Gildas Hamel wrote:

> I'd like to automate the date entries for a journal I write in  
> "LaTeX" and have come up with this snippet:
>
> \subsection{${1:`date +%A`, `date +%d` `date +%B` `date +%Y`}}
>
Try:  `date "+%A, %d %B %Y"`

> which gives me the date as follows in my files (example):
>
> \subsection{Wednesday, 10 October 2007}
>
> It works--that is, it gives me the spaces I want between the  
> elements of the date, but it looks cumbersome to me to invoke the  
> date command repeatedly to get these spaces and I wonder if someone  
> could supply a more elegant way to get the same result.
> Thanks.
> --Gildas Hamel

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College







More information about the textmate mailing list