The datetime
package has now been replaced with datetime2
. One of the reasons for replacing the package with a new one (rather than simply modifying the old one) was to avoid these types of conflicts by ensuring that most of the commands have a prefix. (If I'd simply updated datetime
all the old commands, such as \monthname
, would have had to be retained for backward compatibility and the problem would still remain.)
The base datetime2
package only has numerical date styles, so you can do:
\documentclass[12pt,letterpaper]{article}
\usepackage{datetime2,termcal}
\begin{document}
\begin{calendar}{6/1/15}{2}
\renewcommand{\calprintdate}{\monthname. \thedate}
\calday[Monday]{\classday}% Monday
\skipday% Tuesday
\calday[Wednesday]{\classday}%Wednesday
\skipday% Thursday
\skipday % Friday
\skipday\skipday% Weekend
\end{calendar}
\end{document}
This will just use termcal
's definition of \monthname
. Language dependent dates are in the datetime2 language modules. For example, for English, you'd need to additionally install datetime2-english
. This will be loaded by datetime2
if the language is detected. Each language module comes with its own month name command. For the English language module the command is called \DTMenglishmonthname
. This takes one compulsory argument, which is the month number. So if you prefer to use this instead of termcal
's \monthname
you can do:
\documentclass[12pt,letterpaper,english]{article}
\usepackage{datetime2,termcal}
\begin{document}
\begin{calendar}{6/1/15}{2}
\renewcommand{\calprintdate}{\DTMenglishmonthname{\value{month}}. \thedate}
\calday[Monday]{\classday}% Monday
\skipday% Tuesday
\calday[Wednesday]{\classday}%Wednesday
\skipday% Thursday
\skipday % Friday
\skipday\skipday% Weekend
\end{calendar}
\end{document}
If you get an undefined control sequence for \DTMenglishmonthname
, then that probably means that the language module isn't installed. (There should be a warning about it in the log file.
\monthname
and I personally have not idea how to make these two packages load together. Perhaps one of thewizards
will have a possible solution. – R. Schumacher May 26 '15 at 0:57etoolbox
and I think you could use this to patch eitherdatetime
ortermcal
to prevent the conflict. However, I have never used this package. I would recommend you draft a new question asking how to use etoolbox to patch one of those packages to eliminate the conflict. And then just delete this question. – R. Schumacher May 26 '15 at 2:03\let\monthname\relax
or useetoolbox
's\undef
. Not sure which package has the command you want to keep and which you want to\relax
, though. (There may also be other unexpected consequences in a complex document.) – jon May 26 '15 at 2:30