我正在使用 termcal 创建我的教学大纲中的课程表,但我不知道如何将当前年份设为闰年。
以下是我用于此计划的代码:
\begin{center}
\begin{calendar}{1/8/2023}{16}
\setlength{\calboxdepth}{.3in}
\FClass
% schedule
\caltexton{1}{\textbf{\textcolor{red}{-}}}
\caltextnext{\textbf{\textcolor{red}{-}}}
\caltextnext{\textbf{\textcolor{red}{Homework 1,2 \& Lab 1,2 Due (Moved to Monday Jan 29, but no grace period after that.) }}}
\caltextnext{\textbf{\textcolor{red}{Homework 3 \& Lab 3 Due}}}
\caltextnext{\textbf{\textcolor{red}{Homework 4 \& Lab 4 Due}}}
\caltextnext{\textbf{\textcolor{red}{Homework 5 \& Lab 5 Due}}}
\caltextnext{\textbf{\textcolor{red}{Homework 6 \& Lab 6 Due }}}
\caltextnext{\textbf{\textcolor{red}{Homework 7 \& Lab 7 Due }}}
\caltextnext{\textbf{\textcolor{red}{Homework 8 \& Lab 8 Due }}}
\caltextnext{\textbf{\textcolor{red}{Spring Recess}}}
\caltextnext{\textbf{\textcolor{red}{Homework 9 \& Lab 9 Due }}}
\caltextnext{\textbf{\textcolor{red}{Homework 10 \& Lab 10 Due }}}
\caltextnext{\textbf{\textcolor{red}{Homework 11 \& Lab 11 Due }}}
\caltextnext{\textbf{\textcolor{red}{Homework 12 \& Lab 12 Due }}}
\caltextnext{\textbf{\textcolor{red}{Homework 13 \& Lab 13 Due }}}
\caltextnext{\textbf{\textcolor{red}{Homework 14 \& Lab 14 Due }}}
\end{calendar}
\end{center}
另外,我在序言中对周五课程的定义如下:
\newcommand{\FClass}{%
\skipday % Monday (no class)
\skipday % Tuesday
\skipday % Wednesday
\skipday % Thursday
\calday[Friday]{\classday}
\skipday\skipday % weekend (no class)
}