On Thu, Feb 14, 2013 at 1:08 AM, Steve Litt <sl...@troubleshooters.com>wrote:

> On Wed, 13 Feb 2013 14:00:50 -0800
> Jane Shevtsov <jane....@gmail.com> wrote:
>
> > On Wed, Feb 13, 2013 at 12:01 PM, Steve Litt
> > <sl...@troubleshooters.com>wrote:
> >
> > > On Wed, 13 Feb 2013 10:00:04 -0800
> > > Jane Shevtsov <jane....@gmail.com> wrote:
> > >
> > > > On Wed, Feb 13, 2013 at 1:35 AM, Steve Litt
> > > > <sl...@troubleshooters.com>wrote:
> > > >
> > > > > On Tue, 12 Feb 2013 22:36:55 -0800
> > > > > Jane Shevtsov <jane....@gmail.com> wrote:
> > >
> > > > > I understand that you don't want problems to continue the
> > > > > numbering of the previous section, but if you reset them, reset
> > > > > them to what? In your example, if you reset the major number to
> > > > > 2, then numbered section 2 would be 3, which I doubt you want.
> > > > >
> > > >
> > > > I'm not sure what you mean. I just want problem numbers within
> > > > each section to start at 1.
> > >
> > > Ah-ha!
> > >
> > > Before we continue, I think you should send us a prototype of how
> > > you *want* this to look. On prototype is worth a thousand words and
> > > is much less prone to misunderstanding.
> > >
> > > You could do it with a text editor, using spaces for indentation,
> > > showing how you'd like your MWE to look.
> > >
> >
> > Good idea! An example is attached. In the actual text, I put the
> > exercises in boxes to get a shaded background, but the only issue
> > right now is numbering. In my prototype, labs are numbered
> > continuously throughout the book (Lab 1 rather than Lab 1.1); it
> > would also be ok if they were numbered within chapters.
>
> Cool!
>
> This is going to be easier than I thought.
>
> Now, keep in mind this one says exercise 1, exercise2, and the MWE had
> Problem 1, problem 2, etc. So for this email I'll use Exercise, and
> assume you have made an environment called Exercise that works on a
> counter called exercise_counter. Make the environment so it increments
> the counter. Now, for every containing environment, whether it be
> Section and Section*, or Mysection and Lab, make sure that containing
> environment resets the counter back to 1 (or 0 if your environment
> pre-increments). That's it, you're done.
>

I'm afraid you're overestimating my LaTeX knowledge. (It's close to zero.)
I didn't make the Exercise environment (it's from the "Theorems (AMS)"
module) and have no idea how to do so. A bit more guidance would be very
welcome.

Many thanks,
Jane

Reply via email to