[OS X TeX] day of week in LaTeX for an arbitrary date

Ramón Figueroa-Centeno ramonf at hawaii.edu
Sat May 2 15:28:33 EDT 2009


Aloha,

> You're changing the date after eukdate has done the computation,  don't
> you?

Yes, thanks, so the code below is a fix; but, an annoying one as it means
that I have to change the date in the preamble before loading eukdate (with
the old dates.sty that was not necessary).

\documentclass{article}

% \changedate{month}{day}{year} changes the LaTeX date
\newcommand{\changedate}[3]{
\renewcommand{\month}{#1} 
\renewcommand{\day}{#2} 
\renewcommand{\year}{#3}
}

% \changedate{month}{day}{year}
\changedate{5}{1}{2009}

% Package to get weekday and month name.
\usepackage{eukdate}

% Change the \today command to show the day of the week
\renewcommand{\today}{\weekday, \monthname\ \day, \year}

\begin{document}

\today

\end{document}

Thanks,

Ramón
-- 
View this message in context: http://n2.nabble.com/day-of-week-in-LaTeX-for-an-arbitrary-date-tp2771836p2772130.html
Sent from the MacOSX-TeX mailing list archive at Nabble.com.




More information about the MacOSX-TeX mailing list