mkogg.py: Fix 'self.get_mp4_metadata(self, source)'
[blog.git] / posts / problempack.mdwn
1 [[!template id=gitrepo repo=problempack]]
2
3 I've put together a [[LaTeX]] package `problempack` to make it easier
4 to write up problem sets with solutions for the classes I TA.
5
6 problempack.sty
7 ---------------
8
9 The package takes care of a few details:
10
11 * Make it easy to compile one pdf with only the problems and another
12   pdf with problems and solutions.
13 * Define nicely typeset environments for automatically or manually
14   numbered problems.
15 * Save retyping a few of the parameters (course title, class title,
16   etc), that show up in the note title and also need to go out to
17   `pdftitle` and `pdfsubject`.
18 * Change the page layout to minimize margins (saves paper on
19   printing).
20 * Set the spacing between problems (e.g. to tweak output to a single
21   page, versions >= 0.2).
22 * Add section level entries to the table-of-contents and hyperref
23   bookmarks (versions >= 0.3).
24
25 The basic idea is to make it easy to write up notes. Just install
26 `problempack.sty` in your `texmf` tree, and then use it like I do in
27 the example included in the package.  The example produces a simple
28 problem set ([[probs.pdf]]) and solution notes ([[sols.pdf]]).
29
30 For a real world example, look at my Phys 102 notes [with][] and
31 [without][] solutions ([source][]).  Other notes produced in this
32 fashion: [Phys201 winter 2009][w09], [Phys201 spring 2009][sp09], and
33 [Phys102 summer 2009][su09].
34
35 wtk_cmmds.sty
36 -------------
37
38 A related package that defines some useful physics macros (`\U`, `\E`,
39 `\dg`, `\vect`, `\ihat`, ...) is my `wtk_cmmds.sty`. This used to be a
40 part of `problempack.sty`, but the commands are less general, so I
41 split them out into their own package.
42
43 wtk_format.sty
44 --------------
45
46 The final package in the `problempack` repository is `wtk_format.sty`,
47 which adjusts the default LaTeX margins to pack more content into a
48 single page.
49
50 [with]: http://course.tremily.us/2008-spring-phys102/notes/rec1_sols.pdf
51 [without]: http://course.tremily.us/2008-spring-phys102/notes/rec1_probs.pdf
52 [source]: http://course.tremily.us/2008-spring-phys102/latex/notes/rec1/
53 [w09]: http://course.tremily.us/2009-winter-phys201/source/
54 [sp09]: http://http://course.tremily.us/2009-spring-phys201/source/
55 [su09]: http://http://course.tremily.us/2009-summer-phys102/source/
56
57 [[!tag tags/code]]
58 [[!tag tags/latex]]
59 [[!tag tags/teaching]]