On Tue, 12 Feb 2013 22:36:55 -0800
Jane Shevtsov <[email protected]> wrote:

> On Tue, Feb 12, 2013 at 9:46 PM, Scott Kostyshak
> <[email protected]>wrote:
> 
> > On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov <[email protected]>
> > wrote:
> > >
> > > On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck <[email protected]>
> > > wrote:
> > >>
> > >>
> > >> If what you want is for all the counters to reset even when you
> > >> start an unnumbered section, then this will take a little bit of
> > >> LaTeX magic,
> > but is
> > >> perfectly do-able.
> > >
> > >
> > > Yep, that's what I want. What LaTeX code do I need?
> >
> > Hi Jane, could you please send post a Minimum Working Example? See
> > http://wiki.lyx.org/FAQ/MWE
> >
> >
> Here's an example of what's happening now.
> 
> Best,
> Jane

Hi Jane,

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.

This isn't a technical issue so much as an issue of understandability. 

Personally, I'd have a different numbering system for lab sections, so
instead of environment Section *, I'd have an environment Lab
that has its own counter, and an environment Labproblem that acts the
same way as the Problem environment you currently use in environment
Section except is prints and increments the counter for Lab.

By the way, you did the right thing making your own Problem environment
instead of using Subsection. 

Let me go a step further. If I were writing this textbook, I would not
use Section or Section* at all in the interactive part of your book.
I'd make an environment called "Situation" or some such for what in
your example you use Section, and Lab for what in your example you
handle with Section*. That way:

1) You have complete control of behavior.

2) It much more faithfully adheres to what I call Styles-based layout,
and what a lot of LyX people called WYSIWYM.

What you're doing with Section and Section* right now are things those
environments were never intended to handle. Sure, you can get close,
but ultimately something will go wrong because those environments were
meant to handle normal document headings at the level just below
"Chapter".

Also, the more experience I get, the more I hate any use of Section*.
In the long run, Section* always makes me cry.

I wrote some content on making your own list environments here:

http://www.troubleshooters.com/linux/lyx/ownlists.htm

HTH,

SteveT

Reply via email to