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`}}
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