TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been using the termcal package to produce a calendar for my syllabuses. I like the functionality a lot, but I was wondering if it was possible to make the lesson counting follow more of an outline format than a simple count. So, for example, rather than "1, 2, 3, 4,..." the count could go "1.1, 1.2, 2.1, 2.2, 2.3, 3.1,..."

Here is the not-so-minimal working example from the package documentation:

% Description of the Week.
\calday[Monday]{\classday} % Monday
\skipday % Tuesday (no class)
\calday[Tuesday]{\classday} % Wednesday
\calday[Thursday]{\noclassday} % Thursday (unnumbered)
\calday[Friday]{\classday} % Friday
\skipday\skipday % weekend (no class)
% Holidays
\caltext{10/31/94}{No Class\\Halloween}
% Exams
\caltext{10/12/94}{Midterm Exam}
% Text on consecutive days
% the subject of the 9th lecture
\caltexton{9}{\S1.2,1.3\\Sorting and disporting}
% the subject of the 10th lecture
\caltextnext{\S1.3,1,4\\Assembling and dissembling}
% the subject of the 12th lecture
\caltextnext{\S9.9\\Tending and rending}
share|improve this question

closed as unclear what you're asking by egreg, Kurt, Zarko, Jesse, Papiro Feb 6 at 22:52

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

It would be really great if you can provide a minimal working example (MWE) that the community can play with in order to replicate your current output (and improve on it, of course). – Werner Aug 12 '13 at 19:36
No problem, there you go. – Jeremy L. Wells Aug 12 '13 at 21:39
You can redefine the way the classnum counter prints (using \renewcommand{\theclassnum}{<stuff>\arabic{classnum}} where you supply <stuff>). However, how would you manage the counter change/resetting. That is, what is 1 in 1.2? – Werner Aug 12 '13 at 21:48
Well, obviously there would need to be a way to define that, similar to sections in an article. I know this does not fit in with the basic code of the package, which is why I asked a generic question. I suppose I was just fishing to see if anyone else out there in LaTeXland had thought of this before. – Jeremy L. Wells Aug 12 '13 at 22:27
Okay, the answer to your question then is "Yes, you can print the lesson count using a 1.1, 1.2, 2.1, 2.2, 2.3, 3.1, ... representation". It just depends on how automated you want this numbering to be, and what the number preceding the lesson count represents. – Werner Aug 12 '13 at 22:30

Browse other questions tagged or ask your own question.