As many of you I do quite a bit of teaching to make living. The worst part of the semester is usually beginning when I create and upload course Syllabi as well as the end of the semester when I process my grade books. As I am growing older and wiser I try to automatize most of these things. Currently, I have a fairly elaborate set of AWK scripts which essentially do grade book processing for me. It is still not so with the Syllabi. Here you can find bunch of Syllabi samples/templates for the courses I recently taught.
As you can see in many cases the manual update of Syllabi boils down to updating only a few basic information about the course (meeting time, places, in-class exam dates, textbook (I now use BibTeX to do that for me) and so on) as well as day by day course calendar (which I usually keep separately and use \include
to include into the source file). I am thinking of creating a script to do all that instead of me. Essentially, I would like to download info from the University portal, format and put into text file. Then use the script to feed info to the Syllabi source files. Could people share their experience on this topic? To make a more formal question.
How can you use a script to update certain parts of the TeX source file?
Edit: I would like to link this question and answer to the following related question I posted which also has a great and a very useful answer.
Best Answer
A related problem might be separating the formatting and content of the syllabus, which could make it easier to generate as many of these syllabi as needed. It would definitely make any scripting much more robust, since you'd be generating only a simple .sty file instead of modifying a full .tex document. Sample result (close to what you had posted):
built from a customized document class, a course-specific style file, and an instructor-specific style file. In theory, this could be used to generate syllabi for an entire department with appropriate scripting. The class file also replaces some of the repeated formatting commands you had (
\noindent
and other things for paragraphs) with default section formatting and similar items..tex file for a specific syllabus:
Course style file (csci3010-a.sty):
Instructor style file (pp.sty):
Class file (pp-syllabus.cls):