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

Ramón Figueroa-Centeno ramonf at hawaii.edu
Sat May 2 21:28:33 CEST 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.

-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
List Archive: http://tug.org/pipermail/macostex-archives/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex



More information about the macostex-archives mailing list