I was wondering if there is a good general purpose homework class file/template out there. I want to use it for classes. Generally, math-centered courses. I would like if there was syntax highlighting for programming (Python, Ruby, C, Java, etc.).
For the class file itself: I actually made my own class file (adapted from the
You supply it with
This file is used by inserting
The standard formatting for a problem looks like this:
It creates a new page for every problem. Also, if a problem has multiple "parts" the formatting might look like this
An example page (from a real homework assignment) looks like this
If you want to try it out, download it, put it in your
There are definitely things in this class file that are automated that people would want more control over, so I suggest fiddling around to find what works best for you.
For syntax highlighting: Werner's answer mentioning the
In my opinion the (standard)
For mathematical typesetting, I would suggest using the
Here's an outline of what I'm talking about:
If, in general, your expertise in LaTeX needs a solid foundation, consider reading through the Not So Short Introduction to LaTeX2ε.
You can make a topic search at CTAN and under exams you will find a complete list of packages related with exercises or exams. I think most of them are compatible with