Re: Exercise Numbering
On Thu, 14 Feb 2013 22:54:34 -0800 Jane Shevtsov jane@gmail.com wrote: On Thu, Feb 14, 2013 at 1:08 AM, Steve Litt sl...@troubleshooters.comwrote: 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. I figured that. That's why I estimated it would take you a day instead of three hours like it would take me, or ten minutes like it would take a lot of the LaTeX gurus on the list. A passing knowledge of LaTeX is very, very, VERY helpful in making you a confident LyX user. A little LaTeX knowledge enables you to escape from dead ends that otherwise might trap you. My two proudest moments in LaTeX, and keep in mind that each of these kept me busy for over a day, were: 1) Changing Section, Subsection, and SubSubSection to display lines that are, thick, medium and light, respectively. I did this for a decidedly non-Geek book where numbers wouldn't be appreciated. 2) I made LaTeX so I could put a non-printing command specifying a date in the text, and the header on that page and every succeeding page would display that date, until another command changed the date. I did this in a business novel covering several years, in which it might have been possible to get confused about when the present was. In both cases, the people on the LyX list helped me with those things I couldn't figure out how to do. In both cases, I was darned glad I knew a little LaTeX, because it enabled me to make my book look *exactly* how I wanted to look, instead of settling for the look of the nearest package I could find. HTH SteveT
Re: Exercise Numbering
On Thu, 14 Feb 2013 22:54:34 -0800 Jane Shevtsov jane@gmail.com wrote: On Thu, Feb 14, 2013 at 1:08 AM, Steve Litt sl...@troubleshooters.comwrote: 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. I figured that. That's why I estimated it would take you a day instead of three hours like it would take me, or ten minutes like it would take a lot of the LaTeX gurus on the list. A passing knowledge of LaTeX is very, very, VERY helpful in making you a confident LyX user. A little LaTeX knowledge enables you to escape from dead ends that otherwise might trap you. My two proudest moments in LaTeX, and keep in mind that each of these kept me busy for over a day, were: 1) Changing Section, Subsection, and SubSubSection to display lines that are, thick, medium and light, respectively. I did this for a decidedly non-Geek book where numbers wouldn't be appreciated. 2) I made LaTeX so I could put a non-printing command specifying a date in the text, and the header on that page and every succeeding page would display that date, until another command changed the date. I did this in a business novel covering several years, in which it might have been possible to get confused about when the present was. In both cases, the people on the LyX list helped me with those things I couldn't figure out how to do. In both cases, I was darned glad I knew a little LaTeX, because it enabled me to make my book look *exactly* how I wanted to look, instead of settling for the look of the nearest package I could find. HTH SteveT
Re: Exercise Numbering
On Thu, 14 Feb 2013 22:54:34 -0800 Jane Shevtsovwrote: > On Thu, Feb 14, 2013 at 1:08 AM, Steve Litt > wrote: > > 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. I figured that. That's why I estimated it would take you a day instead of three hours like it would take me, or ten minutes like it would take a lot of the LaTeX gurus on the list. A passing knowledge of LaTeX is very, very, VERY helpful in making you a confident LyX user. A little LaTeX knowledge enables you to escape from dead ends that otherwise might trap you. My two proudest moments in LaTeX, and keep in mind that each of these kept me busy for over a day, were: 1) Changing Section, Subsection, and SubSubSection to display lines that are, thick, medium and light, respectively. I did this for a decidedly non-Geek book where numbers wouldn't be appreciated. 2) I made LaTeX so I could put a non-printing command specifying a date in the text, and the header on that page and every succeeding page would display that date, until another command changed the date. I did this in a business novel covering several years, in which it might have been possible to get confused about when the present was. In both cases, the people on the LyX list helped me with those things I couldn't figure out how to do. In both cases, I was darned glad I knew a little LaTeX, because it enabled me to make my book look *exactly* how I wanted to look, instead of settling for the look of the nearest package I could find. HTH SteveT
Re: Exercise Numbering
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.comwrote: 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.comwrote: 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 don't remember the exact LaTeX, but as I remember you need a \newcounter in the preamble, the enclosing Mysection and Lab environments need a \setcounter, and the Exercise environment needs a \addtocounter. Or, you can make it a list environment, and use \usecounter, in which case I don't think you need to explicitly increment the counter. See http://www.personal.ceu.hu/tex/counters.htm LaTeX is difficult and obstreperous, so I'd suggest you make a tiny LaTeX file and compile it, then put your environments in there, and keep tweaking it til it works. Then, knowing you have a working set of environments, put them into a LyX layout file and use the layout file in a trivial LyX file. Once that's working, put the environemnts in the layout file for your book. Please remember, when you change your layout file, in LyX you need to Tools-reconfigure and then restart LyX to have your changes take hold. This sounds like a lot of work, but I bet you can get it working in a day, and that's a lot quicker and less hassle than if you try to just jam them directly into LyX, and you'll be a lot more confident too. Once you've gotten this all perfected, please post it to the list, as a lot of us need to do similar things, and it's not trivial. Thanks, and HTH, SteveT
Re: Exercise Numbering
On Thu, Feb 14, 2013 at 1:08 AM, Steve Litt sl...@troubleshooters.comwrote: 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.comwrote: 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.comwrote: 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
Re: Exercise Numbering
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.comwrote: 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.comwrote: 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 don't remember the exact LaTeX, but as I remember you need a \newcounter in the preamble, the enclosing Mysection and Lab environments need a \setcounter, and the Exercise environment needs a \addtocounter. Or, you can make it a list environment, and use \usecounter, in which case I don't think you need to explicitly increment the counter. See http://www.personal.ceu.hu/tex/counters.htm LaTeX is difficult and obstreperous, so I'd suggest you make a tiny LaTeX file and compile it, then put your environments in there, and keep tweaking it til it works. Then, knowing you have a working set of environments, put them into a LyX layout file and use the layout file in a trivial LyX file. Once that's working, put the environemnts in the layout file for your book. Please remember, when you change your layout file, in LyX you need to Tools-reconfigure and then restart LyX to have your changes take hold. This sounds like a lot of work, but I bet you can get it working in a day, and that's a lot quicker and less hassle than if you try to just jam them directly into LyX, and you'll be a lot more confident too. Once you've gotten this all perfected, please post it to the list, as a lot of us need to do similar things, and it's not trivial. Thanks, and HTH, SteveT
Re: Exercise Numbering
On Thu, Feb 14, 2013 at 1:08 AM, Steve Litt sl...@troubleshooters.comwrote: 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.comwrote: 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.comwrote: 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
Re: Exercise Numbering
On Wed, 13 Feb 2013 14:00:50 -0800 Jane Shevtsovwrote: > On Wed, Feb 13, 2013 at 12:01 PM, Steve Litt > wrote: > > > On Wed, 13 Feb 2013 10:00:04 -0800 > > Jane Shevtsov wrote: > > > > > On Wed, Feb 13, 2013 at 1:35 AM, Steve Litt > > > wrote: > > > > > > > On Tue, 12 Feb 2013 22:36:55 -0800 > > > > Jane Shevtsov 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 don't remember the exact LaTeX, but as I remember you need a \newcounter in the preamble, the enclosing Mysection and Lab environments need a \setcounter, and the Exercise environment needs a \addtocounter. Or, you can make it a list environment, and use \usecounter, in which case I don't think you need to explicitly increment the counter. See http://www.personal.ceu.hu/tex/counters.htm LaTeX is difficult and obstreperous, so I'd suggest you make a tiny LaTeX file and compile it, then put your environments in there, and keep tweaking it til it works. Then, knowing you have a working set of environments, put them into a LyX layout file and use the layout file in a trivial LyX file. Once that's working, put the environemnts in the layout file for your book. Please remember, when you change your layout file, in LyX you need to Tools->reconfigure and then restart LyX to have your changes take hold. This sounds like a lot of work, but I bet you can get it working in a day, and that's a lot quicker and less hassle than if you try to just jam them directly into LyX, and you'll be a lot more confident too. Once you've gotten this all perfected, please post it to the list, as a lot of us need to do similar things, and it's not trivial. Thanks, and HTH, SteveT
Re: Exercise Numbering
On Thu, Feb 14, 2013 at 1:08 AM, Steve Littwrote: > On Wed, 13 Feb 2013 14:00:50 -0800 > Jane Shevtsov wrote: > > > On Wed, Feb 13, 2013 at 12:01 PM, Steve Litt > > wrote: > > > > > On Wed, 13 Feb 2013 10:00:04 -0800 > > > Jane Shevtsov wrote: > > > > > > > On Wed, Feb 13, 2013 at 1:35 AM, Steve Litt > > > > wrote: > > > > > > > > > On Tue, 12 Feb 2013 22:36:55 -0800 > > > > > Jane Shevtsov 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
Re: Exercise Numbering
On Tue, 12 Feb 2013 22:36:55 -0800 Jane Shevtsov jane@gmail.com wrote: On Tue, Feb 12, 2013 at 9:46 PM, Scott Kostyshak skost...@princeton.eduwrote: On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov jane@gmail.com wrote: On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck rgh...@lyx.org 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
Re: Exercise Numbering
On Wed, Feb 13, 2013 at 1:35 AM, Steve Litt sl...@troubleshooters.comwrote: On Tue, 12 Feb 2013 22:36:55 -0800 Jane Shevtsov jane@gmail.com wrote: On Tue, Feb 12, 2013 at 9:46 PM, Scott Kostyshak skost...@princeton.eduwrote: On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov jane@gmail.com wrote: On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck rgh...@lyx.org 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. 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. I'm not sure what you mean. I just want problem numbers within each section to start at 1. 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. Thanks, but I actually didn't. That's a downloaded package. (I only use Subsection for actual subsections of the text.) How would you make a Lab or Labproblem environment? 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. That's exactly how I'm using them. I didn't put a Chapter heading in the minimal example, but the actual textbook has six chapters with several sections in each. Thanks, Jane - Jane Shevtsov, Ph.D. Mathematical Biology Curriculum Writer, UCLA co-founder, www.worldbeyondborders.org “Those who say it cannot be done should not interfere with those who are doing it.” --attributed to Robert Heinlein, George Bernard Shaw and others
Re: Exercise Numbering
On Wed, 13 Feb 2013 00:46:00 -0500 Scott Kostyshak skost...@princeton.edu wrote: On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov jane@gmail.com wrote: On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck rgh...@lyx.org 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 That Wiki page is one of the coolest things I've run across. Eric Raymond told us all to use MWEs, but really didn't tell us how or why. I added two more reasons to the list of reasons on that page. Hope you all like it. SteveT
Re: Exercise Numbering
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.comwrote: 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. 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. Thanks, but I actually didn't. That's a downloaded package. (I only use Subsection for actual subsections of the text.) What package? How would you make a Lab or Labproblem environment? Depending on your prior LaTeX experience, this might sound like gobblety gook to you... You'd make your own Document Class, based on the one you're using now, using a layout file. Within the layout file, you'd add environments of your own. Your environments for Lab and Labproblem would maintain their own counters. But first things first. I honestly don't know how you want this thing to look, and I have a feeling few others on this list know that either. A prototype would make that crystal clear. Once the enhancement is defined, the rest is just a little LaTeX wizardry. SteveT
Re: Exercise Numbering
On Wed, Feb 13, 2013 at 12:01 PM, Steve Litt sl...@troubleshooters.comwrote: 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.comwrote: 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. 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. Thanks, but I actually didn't. That's a downloaded package. (I only use Subsection for actual subsections of the text.) What package? I'm using the Theorems (AMS, Numbered by Type) and Theorems (Numbered by Type Within Section) modules. I think they actually might be LyX built-ins. Thanks, Jane layout prototype.pdf Description: Adobe PDF document
Re: Exercise Numbering
On Tue, 12 Feb 2013 22:36:55 -0800 Jane Shevtsov jane@gmail.com wrote: On Tue, Feb 12, 2013 at 9:46 PM, Scott Kostyshak skost...@princeton.eduwrote: On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov jane@gmail.com wrote: On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck rgh...@lyx.org 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
Re: Exercise Numbering
On Wed, Feb 13, 2013 at 1:35 AM, Steve Litt sl...@troubleshooters.comwrote: On Tue, 12 Feb 2013 22:36:55 -0800 Jane Shevtsov jane@gmail.com wrote: On Tue, Feb 12, 2013 at 9:46 PM, Scott Kostyshak skost...@princeton.eduwrote: On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov jane@gmail.com wrote: On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck rgh...@lyx.org 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. 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. I'm not sure what you mean. I just want problem numbers within each section to start at 1. 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. Thanks, but I actually didn't. That's a downloaded package. (I only use Subsection for actual subsections of the text.) How would you make a Lab or Labproblem environment? 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. That's exactly how I'm using them. I didn't put a Chapter heading in the minimal example, but the actual textbook has six chapters with several sections in each. Thanks, Jane - Jane Shevtsov, Ph.D. Mathematical Biology Curriculum Writer, UCLA co-founder, www.worldbeyondborders.org “Those who say it cannot be done should not interfere with those who are doing it.” --attributed to Robert Heinlein, George Bernard Shaw and others
Re: Exercise Numbering
On Wed, 13 Feb 2013 00:46:00 -0500 Scott Kostyshak skost...@princeton.edu wrote: On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov jane@gmail.com wrote: On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck rgh...@lyx.org 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 That Wiki page is one of the coolest things I've run across. Eric Raymond told us all to use MWEs, but really didn't tell us how or why. I added two more reasons to the list of reasons on that page. Hope you all like it. SteveT
Re: Exercise Numbering
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.comwrote: 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. 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. Thanks, but I actually didn't. That's a downloaded package. (I only use Subsection for actual subsections of the text.) What package? How would you make a Lab or Labproblem environment? Depending on your prior LaTeX experience, this might sound like gobblety gook to you... You'd make your own Document Class, based on the one you're using now, using a layout file. Within the layout file, you'd add environments of your own. Your environments for Lab and Labproblem would maintain their own counters. But first things first. I honestly don't know how you want this thing to look, and I have a feeling few others on this list know that either. A prototype would make that crystal clear. Once the enhancement is defined, the rest is just a little LaTeX wizardry. SteveT
Re: Exercise Numbering
On Wed, Feb 13, 2013 at 12:01 PM, Steve Litt sl...@troubleshooters.comwrote: 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.comwrote: 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. 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. Thanks, but I actually didn't. That's a downloaded package. (I only use Subsection for actual subsections of the text.) What package? I'm using the Theorems (AMS, Numbered by Type) and Theorems (Numbered by Type Within Section) modules. I think they actually might be LyX built-ins. Thanks, Jane layout prototype.pdf Description: Adobe PDF document
Re: Exercise Numbering
On Tue, 12 Feb 2013 22:36:55 -0800 Jane Shevtsovwrote: > On Tue, Feb 12, 2013 at 9:46 PM, Scott Kostyshak > wrote: > > > On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov > > wrote: > > > > > > On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck > > > 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
Re: Exercise Numbering
On Wed, Feb 13, 2013 at 1:35 AM, Steve Littwrote: > On Tue, 12 Feb 2013 22:36:55 -0800 > Jane Shevtsov wrote: > > > On Tue, Feb 12, 2013 at 9:46 PM, Scott Kostyshak > > wrote: > > > > > On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov > > > wrote: > > > > > > > > On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck > > > > 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. > 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. > I'm not sure what you mean. I just want problem numbers within each section to start at 1. 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. > Thanks, but I actually didn't. That's a downloaded package. (I only use Subsection for actual subsections of the text.) How would you make a Lab or Labproblem environment? 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". > That's exactly how I'm using them. I didn't put a Chapter heading in the minimal example, but the actual textbook has six chapters with several sections in each. Thanks, Jane - Jane Shevtsov, Ph.D. Mathematical Biology Curriculum Writer, UCLA co-founder, www.worldbeyondborders.org “Those who say it cannot be done should not interfere with those who are doing it.” --attributed to Robert Heinlein, George Bernard Shaw and others
Re: Exercise Numbering
On Wed, 13 Feb 2013 00:46:00 -0500 Scott Kostyshakwrote: > On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov > wrote: > > > > On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck > > 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 That Wiki page is one of the coolest things I've run across. Eric Raymond told us all to use MWEs, but really didn't tell us how or why. I added two more reasons to the list of reasons on that page. Hope you all like it. SteveT
Re: Exercise Numbering
On Wed, 13 Feb 2013 10:00:04 -0800 Jane Shevtsovwrote: > On Wed, Feb 13, 2013 at 1:35 AM, Steve Litt > wrote: > > > On Tue, 12 Feb 2013 22:36:55 -0800 > > Jane Shevtsov 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. > > 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. > > > > Thanks, but I actually didn't. That's a downloaded package. (I only > use Subsection for actual subsections of the text.) What package? > How would you make a Lab or Labproblem environment? Depending on your prior LaTeX experience, this might sound like gobblety gook to you... You'd make your own Document Class, based on the one you're using now, using a layout file. Within the layout file, you'd add environments of your own. Your environments for Lab and Labproblem would maintain their own counters. But first things first. I honestly don't know how you want this thing to look, and I have a feeling few others on this list know that either. A prototype would make that crystal clear. Once the enhancement is defined, the rest is just a little LaTeX wizardry. SteveT
Re: Exercise Numbering
On Wed, Feb 13, 2013 at 12:01 PM, Steve Littwrote: > On Wed, 13 Feb 2013 10:00:04 -0800 > Jane Shevtsov wrote: > > > On Wed, Feb 13, 2013 at 1:35 AM, Steve Litt > > wrote: > > > > > On Tue, 12 Feb 2013 22:36:55 -0800 > > > Jane Shevtsov 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. > > > > 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. > > > > > > > Thanks, but I actually didn't. That's a downloaded package. (I only > > use Subsection for actual subsections of the text.) > > What package? > I'm using the "Theorems (AMS, Numbered by Type)" and "Theorems (Numbered by Type Within Section)" modules. I think they actually might be LyX built-ins. Thanks, Jane layout prototype.pdf Description: Adobe PDF document
Re: Exercise Numbering
On 02/12/2013 07:15 PM, Jane Shevtsov wrote: I'm working on a textbook in which regular numbered sections are interspersed with unnumbered lab sections. I'm using the Theorems (Numbered by Type within Sections) package to number exercises but the numbering of exercises in a lab section is just a continuation of that in the previous numbered section. How do I get it to restart in each section, regardless of whether it's numbered? Sorry, I'm confused. Maybe it would be easiest if you would post a very simple example file that is trying to do what you want doesn't work. 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. Richard
Re: Exercise Numbering
On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck rgh...@lyx.org 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? Jane -- - Jane Shevtsov, Ph.D. Mathematical Biology Curriculum Writer, UCLA co-founder, www.worldbeyondborders.org “Those who say it cannot be done should not interfere with those who are doing it.” --attributed to Robert Heinlein, George Bernard Shaw and others
Re: Exercise Numbering
On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov jane@gmail.com wrote: On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck rgh...@lyx.org 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 Best, Scott
Re: Exercise Numbering
On Tue, Feb 12, 2013 at 9:46 PM, Scott Kostyshak skost...@princeton.eduwrote: On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov jane@gmail.com wrote: On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck rgh...@lyx.org 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 -- - Jane Shevtsov, Ph.D. Mathematical Biology Curriculum Writer, UCLA co-founder, www.worldbeyondborders.org “Those who say it cannot be done should not interfere with those who are doing it.” --attributed to Robert Heinlein, George Bernard Shaw and others problem numbering MWE.lyx Description: Binary data
Re: Exercise Numbering
On 02/12/2013 07:15 PM, Jane Shevtsov wrote: I'm working on a textbook in which regular numbered sections are interspersed with unnumbered lab sections. I'm using the Theorems (Numbered by Type within Sections) package to number exercises but the numbering of exercises in a lab section is just a continuation of that in the previous numbered section. How do I get it to restart in each section, regardless of whether it's numbered? Sorry, I'm confused. Maybe it would be easiest if you would post a very simple example file that is trying to do what you want doesn't work. 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. Richard
Re: Exercise Numbering
On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck rgh...@lyx.org 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? Jane -- - Jane Shevtsov, Ph.D. Mathematical Biology Curriculum Writer, UCLA co-founder, www.worldbeyondborders.org “Those who say it cannot be done should not interfere with those who are doing it.” --attributed to Robert Heinlein, George Bernard Shaw and others
Re: Exercise Numbering
On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov jane@gmail.com wrote: On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck rgh...@lyx.org 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 Best, Scott
Re: Exercise Numbering
On Tue, Feb 12, 2013 at 9:46 PM, Scott Kostyshak skost...@princeton.eduwrote: On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov jane@gmail.com wrote: On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck rgh...@lyx.org 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 -- - Jane Shevtsov, Ph.D. Mathematical Biology Curriculum Writer, UCLA co-founder, www.worldbeyondborders.org “Those who say it cannot be done should not interfere with those who are doing it.” --attributed to Robert Heinlein, George Bernard Shaw and others problem numbering MWE.lyx Description: Binary data
Re: Exercise Numbering
On 02/12/2013 07:15 PM, Jane Shevtsov wrote: I'm working on a textbook in which regular numbered sections are interspersed with unnumbered lab sections. I'm using the "Theorems (Numbered by Type within Sections)" package to number exercises but the numbering of exercises in a lab section is just a continuation of that in the previous numbered section. How do I get it to restart in each section, regardless of whether it's numbered? Sorry, I'm confused. Maybe it would be easiest if you would post a very simple example file that is trying to do what you want doesn't work. 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. Richard
Re: Exercise Numbering
On Tue, Feb 12, 2013 at 6:09 PM, Richard Heckwrote: > > 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? Jane -- - Jane Shevtsov, Ph.D. Mathematical Biology Curriculum Writer, UCLA co-founder, www.worldbeyondborders.org “Those who say it cannot be done should not interfere with those who are doing it.” --attributed to Robert Heinlein, George Bernard Shaw and others
Re: Exercise Numbering
On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsovwrote: > > On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck 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 Best, Scott
Re: Exercise Numbering
On Tue, Feb 12, 2013 at 9:46 PM, Scott Kostyshakwrote: > On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov wrote: > > > > On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck 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 -- - Jane Shevtsov, Ph.D. Mathematical Biology Curriculum Writer, UCLA co-founder, www.worldbeyondborders.org “Those who say it cannot be done should not interfere with those who are doing it.” --attributed to Robert Heinlein, George Bernard Shaw and others problem numbering MWE.lyx Description: Binary data