1 [[!template id=gitrepo repo=problempack]]
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.
9 The package takes care of a few details:
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
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
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).
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]]).
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].
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.
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
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/
59 [[!tag tags/teaching]]