From J.Goldberg@Cranfield.ac.uk Fri Dec 3 07:14:25 1999 Date: Thu, 2 Dec 1999 10:52:40 +0000 From: Jeffrey Goldberg To: Joachim Schrod Newsgroups: comp.text.tex Subject: Patch for rcs.sty to work with \today under babel rcs.sty v2.9 does not pick up a babel redefined \today since it expands \today (in an \xdef) before babel redefines it. Below is a patch which seems to work, but has not been extensively tested. Also note that since rcs.sty is under revision control, I didn't feel like tinkering with the revision numbers, so I haven't chnaged any file date and information data and will leave that up to the maintainer if he wishes to include my patch. This patch is released under the General Public License Agreement The diff is below my sig -j -- Jeffrey Goldberg +44 (0)1234 750 111 x 2826 Cranfield Computer Centre FAX 751 814 J.Goldberg@Cranfield.ac.uk http://WWW.Cranfield.ac.uk/public/cc/cc047/ Relativism is the triumph of authority over truth, convention over justice. Disclaimer: Unless indicated otherwise, opinions are my own. Whose else? *** rcs-orig.sty Sat Oct 23 01:32:55 1999 --- rcs.sty Thu Dec 2 10:43:51 1999 *************** *** 1,6 **** --- 1,8 ---- % $StyleId: rcs.doc,v 2.9 1995/08/02 12:09:07 schrod Exp $ + % With modifications by Jeff Goldberg, December 2, 1999 %---------------------------------------------------------------------- % Written by Joachim Schrod . + % Minor modification by Jeffrey Goldberg % Copyright conditions see below. % *************** *** 424,437 **** %%% definition of |\today|. This way language-specific styles (e.g., from %%% the \textsf{babel} system) may supply their own way to present a date. %%% \beginprog \def\rcs_set_date #1/#2/#3 #4\end_date{% \begingroup \day #3 % <-- space! \month #2 % <-- space! \year #1 % <-- space! ! \expandafter\xdef \csname RCS\RCS_keyword\endcsname {\today}% ! \endgroup \def\RCSTime{#4}% } %%% \endprog --- 426,444 ---- %%% definition of |\today|. This way language-specific styles (e.g., from %%% the \textsf{babel} system) may supply their own way to present a date. + %%% Modified put the group and |\day|, |\month|, and |\year| setting + %%% within the definition of RCSDate to avoid having to do an edef + %%% which would expand |\today| before babel could redefine it. ---JPG + %%% \beginprog \def\rcs_set_date #1/#2/#3 #4\end_date{% + \expandafter\def \csname RCS\RCS_keyword\endcsname {% \begingroup \day #3 % <-- space! \month #2 % <-- space! \year #1 % <-- space! ! \today ! \endgroup } \def\RCSTime{#4}% } %%% \endprog