advancing dates in a 3-day syllabus












2















I am trying to adapt this advance date method for a 3-day syllabus without success.



The goal is to create a M-W-F class schedule. The method in the link above is for a two-day schedule. It takes the three-letter day of the week for the current date ("Mon", "Tue", etc.) and compares it to the width of a box containing the startdate (e.g. "Mon"). If the widths are equal, it advances two and the prints the date two days ahead. Otherwise, it it advances five days. By contrast, I need to advance the date two days if the current date is "Mon", two days if the current date is "Wed", and three days otherwise.



Assuming classes start on a Monday, the two-day method saves "Mon" in a box for the boolean comparison used to advance dates. So I created a second box for "Wed"



newsavebox{MONDAY}savebox{MONDAY}{Mon}% Mon
newsavebox{WEDNESDAY}savebox{WEDNESDAY}{Wed}% WED


and then added another condition in the "if" statement:



newcommand{class}[1]{%
cleardate{mydate}% Clear date
newdate{mydate}{theday}{themonth}{theyear}% Store date
section*{displaydate{mydate} quad #1}% Set heading
setbox1=hbox{shortdayofweekname{getdateday{mydate}}{getdatemonth{mydate}}{getdateyear{mydate}}}%
ifdimwd1=wdMONDAY
AdvanceDate[2]
else
ifdimwd1=wdWEDNESDAY
AdvanceDate[2]
else
AdvanceDate[3]
fi%
}


but this does not work. Any tips?



Full MWE:



documentclass{article}
usepackage[ddmmyyyy]{datetime}% http://ctan.org/pkg/datetime
usepackage{advdate}% http://ctan.org/pkg/advdate

newdateformat{syldate}{THEMONTH/THEDAY/THEYEAR}%(shortdayofweekname%{THEDAY}{THEMONTH}{THEYEAR})}

newsavebox{MONDAY}savebox{MONDAY}{Mon}% Mon
newsavebox{WEDNESDAY}savebox{WEDNESDAY}{Wed}% WED

makeatletter
newcommand{cleardate}[1]{%
expandafterletcsname date@#1@dendcsnamerelax% Clear day
expandafterletcsname date@#1@mendcsnamerelax% Clear month
expandafterletcsname date@#1@yendcsnamerelax% Clear year
}
makeatother

newcommand{class}[1]{%
cleardate{mydate}% Clear date
newdate{mydate}{theday}{themonth}{theyear}% Store date
section*{displaydate{mydate} quad #1}% Set heading
setbox1=hbox{shortdayofweekname{getdateday{mydate}}{getdatemonth{mydate}}{getdateyear{mydate}}}%
ifdimwd1=wdMONDAY
AdvanceDate[2]
else
ifdimwd1=wdWEDNESDAY
AdvanceDate[2]
else
AdvanceDate[3]
fi%
}

SetDate[14/01/2019]


begin{document}

class{First class}
class{Second class}
class{Third class}


class{Fourth class}
class{Fifth class}
class{Sixth class}
class{Seventh class}

end{document}









share|improve this question

























  • Based on what I can see, it works. You're just missing a closing fi in your definition of class.

    – Werner
    Jan 4 at 21:57











  • @Werner sorry but where would this closing fi go? I already have one at the end. If I had a fi after the ifdimwd1=wdWEDNESDAY I get an error: Extra else..

    – invictus
    Jan 7 at 12:48













  • You need an fi right after the other fi to end the first ifdim. (I'll let @werner add this as an answer).

    – Alan Munn
    Jan 7 at 13:43
















2















I am trying to adapt this advance date method for a 3-day syllabus without success.



The goal is to create a M-W-F class schedule. The method in the link above is for a two-day schedule. It takes the three-letter day of the week for the current date ("Mon", "Tue", etc.) and compares it to the width of a box containing the startdate (e.g. "Mon"). If the widths are equal, it advances two and the prints the date two days ahead. Otherwise, it it advances five days. By contrast, I need to advance the date two days if the current date is "Mon", two days if the current date is "Wed", and three days otherwise.



Assuming classes start on a Monday, the two-day method saves "Mon" in a box for the boolean comparison used to advance dates. So I created a second box for "Wed"



newsavebox{MONDAY}savebox{MONDAY}{Mon}% Mon
newsavebox{WEDNESDAY}savebox{WEDNESDAY}{Wed}% WED


and then added another condition in the "if" statement:



newcommand{class}[1]{%
cleardate{mydate}% Clear date
newdate{mydate}{theday}{themonth}{theyear}% Store date
section*{displaydate{mydate} quad #1}% Set heading
setbox1=hbox{shortdayofweekname{getdateday{mydate}}{getdatemonth{mydate}}{getdateyear{mydate}}}%
ifdimwd1=wdMONDAY
AdvanceDate[2]
else
ifdimwd1=wdWEDNESDAY
AdvanceDate[2]
else
AdvanceDate[3]
fi%
}


but this does not work. Any tips?



Full MWE:



documentclass{article}
usepackage[ddmmyyyy]{datetime}% http://ctan.org/pkg/datetime
usepackage{advdate}% http://ctan.org/pkg/advdate

newdateformat{syldate}{THEMONTH/THEDAY/THEYEAR}%(shortdayofweekname%{THEDAY}{THEMONTH}{THEYEAR})}

newsavebox{MONDAY}savebox{MONDAY}{Mon}% Mon
newsavebox{WEDNESDAY}savebox{WEDNESDAY}{Wed}% WED

makeatletter
newcommand{cleardate}[1]{%
expandafterletcsname date@#1@dendcsnamerelax% Clear day
expandafterletcsname date@#1@mendcsnamerelax% Clear month
expandafterletcsname date@#1@yendcsnamerelax% Clear year
}
makeatother

newcommand{class}[1]{%
cleardate{mydate}% Clear date
newdate{mydate}{theday}{themonth}{theyear}% Store date
section*{displaydate{mydate} quad #1}% Set heading
setbox1=hbox{shortdayofweekname{getdateday{mydate}}{getdatemonth{mydate}}{getdateyear{mydate}}}%
ifdimwd1=wdMONDAY
AdvanceDate[2]
else
ifdimwd1=wdWEDNESDAY
AdvanceDate[2]
else
AdvanceDate[3]
fi%
}

SetDate[14/01/2019]


begin{document}

class{First class}
class{Second class}
class{Third class}


class{Fourth class}
class{Fifth class}
class{Sixth class}
class{Seventh class}

end{document}









share|improve this question

























  • Based on what I can see, it works. You're just missing a closing fi in your definition of class.

    – Werner
    Jan 4 at 21:57











  • @Werner sorry but where would this closing fi go? I already have one at the end. If I had a fi after the ifdimwd1=wdWEDNESDAY I get an error: Extra else..

    – invictus
    Jan 7 at 12:48













  • You need an fi right after the other fi to end the first ifdim. (I'll let @werner add this as an answer).

    – Alan Munn
    Jan 7 at 13:43














2












2








2








I am trying to adapt this advance date method for a 3-day syllabus without success.



The goal is to create a M-W-F class schedule. The method in the link above is for a two-day schedule. It takes the three-letter day of the week for the current date ("Mon", "Tue", etc.) and compares it to the width of a box containing the startdate (e.g. "Mon"). If the widths are equal, it advances two and the prints the date two days ahead. Otherwise, it it advances five days. By contrast, I need to advance the date two days if the current date is "Mon", two days if the current date is "Wed", and three days otherwise.



Assuming classes start on a Monday, the two-day method saves "Mon" in a box for the boolean comparison used to advance dates. So I created a second box for "Wed"



newsavebox{MONDAY}savebox{MONDAY}{Mon}% Mon
newsavebox{WEDNESDAY}savebox{WEDNESDAY}{Wed}% WED


and then added another condition in the "if" statement:



newcommand{class}[1]{%
cleardate{mydate}% Clear date
newdate{mydate}{theday}{themonth}{theyear}% Store date
section*{displaydate{mydate} quad #1}% Set heading
setbox1=hbox{shortdayofweekname{getdateday{mydate}}{getdatemonth{mydate}}{getdateyear{mydate}}}%
ifdimwd1=wdMONDAY
AdvanceDate[2]
else
ifdimwd1=wdWEDNESDAY
AdvanceDate[2]
else
AdvanceDate[3]
fi%
}


but this does not work. Any tips?



Full MWE:



documentclass{article}
usepackage[ddmmyyyy]{datetime}% http://ctan.org/pkg/datetime
usepackage{advdate}% http://ctan.org/pkg/advdate

newdateformat{syldate}{THEMONTH/THEDAY/THEYEAR}%(shortdayofweekname%{THEDAY}{THEMONTH}{THEYEAR})}

newsavebox{MONDAY}savebox{MONDAY}{Mon}% Mon
newsavebox{WEDNESDAY}savebox{WEDNESDAY}{Wed}% WED

makeatletter
newcommand{cleardate}[1]{%
expandafterletcsname date@#1@dendcsnamerelax% Clear day
expandafterletcsname date@#1@mendcsnamerelax% Clear month
expandafterletcsname date@#1@yendcsnamerelax% Clear year
}
makeatother

newcommand{class}[1]{%
cleardate{mydate}% Clear date
newdate{mydate}{theday}{themonth}{theyear}% Store date
section*{displaydate{mydate} quad #1}% Set heading
setbox1=hbox{shortdayofweekname{getdateday{mydate}}{getdatemonth{mydate}}{getdateyear{mydate}}}%
ifdimwd1=wdMONDAY
AdvanceDate[2]
else
ifdimwd1=wdWEDNESDAY
AdvanceDate[2]
else
AdvanceDate[3]
fi%
}

SetDate[14/01/2019]


begin{document}

class{First class}
class{Second class}
class{Third class}


class{Fourth class}
class{Fifth class}
class{Sixth class}
class{Seventh class}

end{document}









share|improve this question
















I am trying to adapt this advance date method for a 3-day syllabus without success.



The goal is to create a M-W-F class schedule. The method in the link above is for a two-day schedule. It takes the three-letter day of the week for the current date ("Mon", "Tue", etc.) and compares it to the width of a box containing the startdate (e.g. "Mon"). If the widths are equal, it advances two and the prints the date two days ahead. Otherwise, it it advances five days. By contrast, I need to advance the date two days if the current date is "Mon", two days if the current date is "Wed", and three days otherwise.



Assuming classes start on a Monday, the two-day method saves "Mon" in a box for the boolean comparison used to advance dates. So I created a second box for "Wed"



newsavebox{MONDAY}savebox{MONDAY}{Mon}% Mon
newsavebox{WEDNESDAY}savebox{WEDNESDAY}{Wed}% WED


and then added another condition in the "if" statement:



newcommand{class}[1]{%
cleardate{mydate}% Clear date
newdate{mydate}{theday}{themonth}{theyear}% Store date
section*{displaydate{mydate} quad #1}% Set heading
setbox1=hbox{shortdayofweekname{getdateday{mydate}}{getdatemonth{mydate}}{getdateyear{mydate}}}%
ifdimwd1=wdMONDAY
AdvanceDate[2]
else
ifdimwd1=wdWEDNESDAY
AdvanceDate[2]
else
AdvanceDate[3]
fi%
}


but this does not work. Any tips?



Full MWE:



documentclass{article}
usepackage[ddmmyyyy]{datetime}% http://ctan.org/pkg/datetime
usepackage{advdate}% http://ctan.org/pkg/advdate

newdateformat{syldate}{THEMONTH/THEDAY/THEYEAR}%(shortdayofweekname%{THEDAY}{THEMONTH}{THEYEAR})}

newsavebox{MONDAY}savebox{MONDAY}{Mon}% Mon
newsavebox{WEDNESDAY}savebox{WEDNESDAY}{Wed}% WED

makeatletter
newcommand{cleardate}[1]{%
expandafterletcsname date@#1@dendcsnamerelax% Clear day
expandafterletcsname date@#1@mendcsnamerelax% Clear month
expandafterletcsname date@#1@yendcsnamerelax% Clear year
}
makeatother

newcommand{class}[1]{%
cleardate{mydate}% Clear date
newdate{mydate}{theday}{themonth}{theyear}% Store date
section*{displaydate{mydate} quad #1}% Set heading
setbox1=hbox{shortdayofweekname{getdateday{mydate}}{getdatemonth{mydate}}{getdateyear{mydate}}}%
ifdimwd1=wdMONDAY
AdvanceDate[2]
else
ifdimwd1=wdWEDNESDAY
AdvanceDate[2]
else
AdvanceDate[3]
fi%
}

SetDate[14/01/2019]


begin{document}

class{First class}
class{Second class}
class{Third class}


class{Fourth class}
class{Fifth class}
class{Sixth class}
class{Seventh class}

end{document}






datetime ifthenelse advdate






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 7 at 13:29







invictus

















asked Jan 4 at 21:14









invictusinvictus

254110




254110













  • Based on what I can see, it works. You're just missing a closing fi in your definition of class.

    – Werner
    Jan 4 at 21:57











  • @Werner sorry but where would this closing fi go? I already have one at the end. If I had a fi after the ifdimwd1=wdWEDNESDAY I get an error: Extra else..

    – invictus
    Jan 7 at 12:48













  • You need an fi right after the other fi to end the first ifdim. (I'll let @werner add this as an answer).

    – Alan Munn
    Jan 7 at 13:43



















  • Based on what I can see, it works. You're just missing a closing fi in your definition of class.

    – Werner
    Jan 4 at 21:57











  • @Werner sorry but where would this closing fi go? I already have one at the end. If I had a fi after the ifdimwd1=wdWEDNESDAY I get an error: Extra else..

    – invictus
    Jan 7 at 12:48













  • You need an fi right after the other fi to end the first ifdim. (I'll let @werner add this as an answer).

    – Alan Munn
    Jan 7 at 13:43

















Based on what I can see, it works. You're just missing a closing fi in your definition of class.

– Werner
Jan 4 at 21:57





Based on what I can see, it works. You're just missing a closing fi in your definition of class.

– Werner
Jan 4 at 21:57













@Werner sorry but where would this closing fi go? I already have one at the end. If I had a fi after the ifdimwd1=wdWEDNESDAY I get an error: Extra else..

– invictus
Jan 7 at 12:48







@Werner sorry but where would this closing fi go? I already have one at the end. If I had a fi after the ifdimwd1=wdWEDNESDAY I get an error: Extra else..

– invictus
Jan 7 at 12:48















You need an fi right after the other fi to end the first ifdim. (I'll let @werner add this as an answer).

– Alan Munn
Jan 7 at 13:43





You need an fi right after the other fi to end the first ifdim. (I'll let @werner add this as an answer).

– Alan Munn
Jan 7 at 13:43










1 Answer
1






active

oldest

votes


















2














Your code works without problem once you close the outer conditional with a fi:



enter image description here



documentclass{article}

usepackage[ddmmyyyy]{datetime}% http://ctan.org/pkg/datetime
usepackage{advdate}% http://ctan.org/pkg/advdate

newdateformat{syldate}{THEMONTH/THEDAY/THEYEAR}

newsavebox{MONDAY}savebox{MONDAY}{Mon}% Monday
newsavebox{WEDNESDAY}savebox{WEDNESDAY}{Wed}% Wednesday

makeatletter
newcommand{cleardate}[1]{%
expandafterletcsname date@#1@dendcsnamerelax% Clear day
expandafterletcsname date@#1@mendcsnamerelax% Clear month
expandafterletcsname date@#1@yendcsnamerelax% Clear year
}
makeatother

newcommand{class}[1]{%
cleardate{mydate}% Clear date
newdate{mydate}{theday}{themonth}{theyear}% Store date
section*{displaydate{mydate} quad #1}% Set heading
setbox1=hbox{shortdayofweekname{getdateday{mydate}}{getdatemonth{mydate}}{getdateyear{mydate}}}%
ifdimwd1=wdMONDAY
AdvanceDate[2]
else
ifdimwd1=wdWEDNESDAY
AdvanceDate[2]
else
AdvanceDate[3]
fi
fi
}

SetDate[14/01/2019]

begin{document}

class{First class}
class{Second class}
class{Third class}

class{Fourth class}
class{Fifth class}
class{Sixth class}
class{Seventh class}

end{document}


Additionally, consider migrating to datetime2 since datetime is considered obsolete.






share|improve this answer


























  • would I need to change any of the above code if using datetime2?

    – invictus
    Jan 8 at 18:49











  • @invictus: Yes. With the change to an updated package version, there are some fundamental changes to the code (macros; not just their construction, but their names and usage).

    – Werner
    Jan 8 at 20:06













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f468643%2fadvancing-dates-in-a-3-day-syllabus%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














Your code works without problem once you close the outer conditional with a fi:



enter image description here



documentclass{article}

usepackage[ddmmyyyy]{datetime}% http://ctan.org/pkg/datetime
usepackage{advdate}% http://ctan.org/pkg/advdate

newdateformat{syldate}{THEMONTH/THEDAY/THEYEAR}

newsavebox{MONDAY}savebox{MONDAY}{Mon}% Monday
newsavebox{WEDNESDAY}savebox{WEDNESDAY}{Wed}% Wednesday

makeatletter
newcommand{cleardate}[1]{%
expandafterletcsname date@#1@dendcsnamerelax% Clear day
expandafterletcsname date@#1@mendcsnamerelax% Clear month
expandafterletcsname date@#1@yendcsnamerelax% Clear year
}
makeatother

newcommand{class}[1]{%
cleardate{mydate}% Clear date
newdate{mydate}{theday}{themonth}{theyear}% Store date
section*{displaydate{mydate} quad #1}% Set heading
setbox1=hbox{shortdayofweekname{getdateday{mydate}}{getdatemonth{mydate}}{getdateyear{mydate}}}%
ifdimwd1=wdMONDAY
AdvanceDate[2]
else
ifdimwd1=wdWEDNESDAY
AdvanceDate[2]
else
AdvanceDate[3]
fi
fi
}

SetDate[14/01/2019]

begin{document}

class{First class}
class{Second class}
class{Third class}

class{Fourth class}
class{Fifth class}
class{Sixth class}
class{Seventh class}

end{document}


Additionally, consider migrating to datetime2 since datetime is considered obsolete.






share|improve this answer


























  • would I need to change any of the above code if using datetime2?

    – invictus
    Jan 8 at 18:49











  • @invictus: Yes. With the change to an updated package version, there are some fundamental changes to the code (macros; not just their construction, but their names and usage).

    – Werner
    Jan 8 at 20:06


















2














Your code works without problem once you close the outer conditional with a fi:



enter image description here



documentclass{article}

usepackage[ddmmyyyy]{datetime}% http://ctan.org/pkg/datetime
usepackage{advdate}% http://ctan.org/pkg/advdate

newdateformat{syldate}{THEMONTH/THEDAY/THEYEAR}

newsavebox{MONDAY}savebox{MONDAY}{Mon}% Monday
newsavebox{WEDNESDAY}savebox{WEDNESDAY}{Wed}% Wednesday

makeatletter
newcommand{cleardate}[1]{%
expandafterletcsname date@#1@dendcsnamerelax% Clear day
expandafterletcsname date@#1@mendcsnamerelax% Clear month
expandafterletcsname date@#1@yendcsnamerelax% Clear year
}
makeatother

newcommand{class}[1]{%
cleardate{mydate}% Clear date
newdate{mydate}{theday}{themonth}{theyear}% Store date
section*{displaydate{mydate} quad #1}% Set heading
setbox1=hbox{shortdayofweekname{getdateday{mydate}}{getdatemonth{mydate}}{getdateyear{mydate}}}%
ifdimwd1=wdMONDAY
AdvanceDate[2]
else
ifdimwd1=wdWEDNESDAY
AdvanceDate[2]
else
AdvanceDate[3]
fi
fi
}

SetDate[14/01/2019]

begin{document}

class{First class}
class{Second class}
class{Third class}

class{Fourth class}
class{Fifth class}
class{Sixth class}
class{Seventh class}

end{document}


Additionally, consider migrating to datetime2 since datetime is considered obsolete.






share|improve this answer


























  • would I need to change any of the above code if using datetime2?

    – invictus
    Jan 8 at 18:49











  • @invictus: Yes. With the change to an updated package version, there are some fundamental changes to the code (macros; not just their construction, but their names and usage).

    – Werner
    Jan 8 at 20:06
















2












2








2







Your code works without problem once you close the outer conditional with a fi:



enter image description here



documentclass{article}

usepackage[ddmmyyyy]{datetime}% http://ctan.org/pkg/datetime
usepackage{advdate}% http://ctan.org/pkg/advdate

newdateformat{syldate}{THEMONTH/THEDAY/THEYEAR}

newsavebox{MONDAY}savebox{MONDAY}{Mon}% Monday
newsavebox{WEDNESDAY}savebox{WEDNESDAY}{Wed}% Wednesday

makeatletter
newcommand{cleardate}[1]{%
expandafterletcsname date@#1@dendcsnamerelax% Clear day
expandafterletcsname date@#1@mendcsnamerelax% Clear month
expandafterletcsname date@#1@yendcsnamerelax% Clear year
}
makeatother

newcommand{class}[1]{%
cleardate{mydate}% Clear date
newdate{mydate}{theday}{themonth}{theyear}% Store date
section*{displaydate{mydate} quad #1}% Set heading
setbox1=hbox{shortdayofweekname{getdateday{mydate}}{getdatemonth{mydate}}{getdateyear{mydate}}}%
ifdimwd1=wdMONDAY
AdvanceDate[2]
else
ifdimwd1=wdWEDNESDAY
AdvanceDate[2]
else
AdvanceDate[3]
fi
fi
}

SetDate[14/01/2019]

begin{document}

class{First class}
class{Second class}
class{Third class}

class{Fourth class}
class{Fifth class}
class{Sixth class}
class{Seventh class}

end{document}


Additionally, consider migrating to datetime2 since datetime is considered obsolete.






share|improve this answer















Your code works without problem once you close the outer conditional with a fi:



enter image description here



documentclass{article}

usepackage[ddmmyyyy]{datetime}% http://ctan.org/pkg/datetime
usepackage{advdate}% http://ctan.org/pkg/advdate

newdateformat{syldate}{THEMONTH/THEDAY/THEYEAR}

newsavebox{MONDAY}savebox{MONDAY}{Mon}% Monday
newsavebox{WEDNESDAY}savebox{WEDNESDAY}{Wed}% Wednesday

makeatletter
newcommand{cleardate}[1]{%
expandafterletcsname date@#1@dendcsnamerelax% Clear day
expandafterletcsname date@#1@mendcsnamerelax% Clear month
expandafterletcsname date@#1@yendcsnamerelax% Clear year
}
makeatother

newcommand{class}[1]{%
cleardate{mydate}% Clear date
newdate{mydate}{theday}{themonth}{theyear}% Store date
section*{displaydate{mydate} quad #1}% Set heading
setbox1=hbox{shortdayofweekname{getdateday{mydate}}{getdatemonth{mydate}}{getdateyear{mydate}}}%
ifdimwd1=wdMONDAY
AdvanceDate[2]
else
ifdimwd1=wdWEDNESDAY
AdvanceDate[2]
else
AdvanceDate[3]
fi
fi
}

SetDate[14/01/2019]

begin{document}

class{First class}
class{Second class}
class{Third class}

class{Fourth class}
class{Fifth class}
class{Sixth class}
class{Seventh class}

end{document}


Additionally, consider migrating to datetime2 since datetime is considered obsolete.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 7 at 17:34

























answered Jan 7 at 17:27









WernerWerner

439k659651658




439k659651658













  • would I need to change any of the above code if using datetime2?

    – invictus
    Jan 8 at 18:49











  • @invictus: Yes. With the change to an updated package version, there are some fundamental changes to the code (macros; not just their construction, but their names and usage).

    – Werner
    Jan 8 at 20:06





















  • would I need to change any of the above code if using datetime2?

    – invictus
    Jan 8 at 18:49











  • @invictus: Yes. With the change to an updated package version, there are some fundamental changes to the code (macros; not just their construction, but their names and usage).

    – Werner
    Jan 8 at 20:06



















would I need to change any of the above code if using datetime2?

– invictus
Jan 8 at 18:49





would I need to change any of the above code if using datetime2?

– invictus
Jan 8 at 18:49













@invictus: Yes. With the change to an updated package version, there are some fundamental changes to the code (macros; not just their construction, but their names and usage).

– Werner
Jan 8 at 20:06







@invictus: Yes. With the change to an updated package version, there are some fundamental changes to the code (macros; not just their construction, but their names and usage).

– Werner
Jan 8 at 20:06




















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f468643%2fadvancing-dates-in-a-3-day-syllabus%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to send String Array data to Server using php in android

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Is anime1.com a legal site for watching anime?