-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimline.tex
More file actions
29 lines (22 loc) · 1 KB
/
Copy pathtimline.tex
File metadata and controls
29 lines (22 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
% Note: \usepackage{pgfcalendar} is loaded in header.tex (before \input{timline}).
% Loading it from inside an \input file is fragile under tex4ht.
%%%%%%%%%%%%%%%%%%%% MODIFY DATES HERE %%%%%%%%%%%%%%%%
\def\Year{2026}
\def\StartDate{\Year-01-19}
\def\HWCheckOffTime{5PM}
\def\HWSubmitTime{9AM}
\def\LabVIEWSubmitTime{5PM}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcount\julianday%
\newcount\myweekday% Define a counter for the weekday index
\newcommand{\GetDate}[2]{%
\pgfcalendardatetojulian{\StartDate}{\julianday}%
\advance\julianday by \numexpr #1*7 + #2\relax%
% 1. Convert JDN to a date (sets \myyear, \mymonth, \myday)
\pgfcalendarjuliantodate{\julianday}{\myyear}{\mymonth}{\myday}%
% 2. Convert JDN to a weekday index 0..6 and store in \myweekday
\pgfcalendarjuliantoweekday{\julianday}{\myweekday}%
% 3. Print the name using the index, then the rest
\pgfcalendarweekdayname{\myweekday}, \pgfcalendarmonthname{\mymonth} \myday%
}
\def\Final{\GetDate{16}{3}}