Speak now
Please Wait Image Converting Into Text...
Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Challenge yourself and boost your learning! Start the quiz now to earn credits.
Unlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
Course Queries Syllabus Queries 2 years ago
Posted on 16 Aug 2022, this text provides information on Syllabus Queries related to Course Queries. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.
Turn Your Knowledge into Earnings.
I am making a class syllabus using the "termcal" package and would like to store the starting date for the first class so I can use it for different elements of the syllabus. I am currently trying to store the date using the \DTMsavedate function from the "datetime2" package.
\DTMsavedate
The date will show fine if you use, for example, \DTMusedate{startDate} within a paragraph. But if I try to pass it to the date option for \begin{calender}, I get the error message "Paragraph ended before \setdate@ was complete". Is there a way to make this work? The MWE:
\DTMusedate{startDate}
\begin{calender}
\documentclass[12pt]{article} \usepackage{termcal} \usepackage[american,useregional=numeric]{datetime2} \DTMsavedate{startDate}{2017-8-29} \begin{document} \begin{calendar}{\DTMusedate{startDate}}{16} \setlength{\calboxdepth}{.3in} \setlength{\calwidth}{0.8\textwidth} % Description of the Week. \calday[Tuesday]{\classday} \skipday \calday[Thursday]{\classday} \skipday \skipday \skipday \skipday \end{calendar} \end{document}
I would really appreciate any help with this, thanks!
First, welcome to TeX.SX. It's nice to see a new user, who knows how to ask and do a MWE.
The termcal package only accepts dates in the format <month>//. And the date argument of \begin{calendar} is not expanded before parsing, i.e. macros can't be used. The latter can be changed, but this doesn't work with `\DTMusedate'.
termcal
<month>//
\begin{calendar}
If you don't insist on using the datetime2 package, then here is a solution without it.
datetime2
To save the date, a simple command \startDate is defined, just containing the date in the correct format. And to make macros work as argument for \begin{calendar} \setdate is redefined so it expands the argument before it's parsed.
\startDate
\setdate
\documentclass[12pt]{article} \usepackage{termcal} \newcommand*{\startDate}{08/29/2017} \makeatletter \renewcommand{\setdate}[1]{\expandafter\setdate@#1!} \makeatother \begin{document} \begin{calendar}{\startDate}{16} \setlength{\calboxdepth}{.3in} \setlength{\calwidth}{0.8\textwidth} % Description of the Week. \calday[Tuesday]{\classday} \skipday \calday[Thursday]{\classday} \skipday \skipday \skipday \skipday \end{calendar} \end{document}
No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
Course Queries 4 Answers
Course Queries 5 Answers
Course Queries 1 Answers
Course Queries 3 Answers
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.