[OS X TeX] hanging exercise numbers

Art Werschulz agw at comcast.net
Tue Jun 28 15:05:46 CEST 2011


Hi.

We are using an "ex" environment for homework exercises.  Within Chapter 3, the second exercise is numbered "3.2".  Parts of a multiple-part problem are numbered "(a)", "(b)", etc.  Needing a quick-and-dirty solution, I used the amsthm package, caming up with:
   \theoremstyle{definition}
   \newtheorem{ex}{}[chapter]
   \newenvironment{problist}%
     {\renewcommand{\labelenumi}{(\alph{enumi})}\begin{enumerate}}%
     {\end{enumerate}}
The problist environment is used for multi-part problems.  

This works perfectly well, except that one of my co-authors would like hanging exercise numbers.

David Arnold's solution (involving hanging indentation) almost works.  However, if an exercise contains a paragraph break, the first line of the paragraph juts out to the left; this is no surprise, since we're using hanging indentation.

Suggestions on how to best do this?  Thanks!

Art Werschulz (8-{)}   "Metaphors be with you."  -- bumper sticker
GCS/M (GAT): d? -p+ c++ l u+(-) e--- m* s n+ h f g+ w+ t++ r- y?
Internet: agw STRUDEL comcast.net






More information about the macostex-archives mailing list