Lyx Question for those that use it

Forum: LinuxTotal Replies: 5
Author Content
techiem2

Jan 22, 2010
12:57 PM EDT
I'm starting to work on assembling the manual for the Moodle Attendance System I am writing.

I have the document set to Book class, since that seems to work well.

I currently have several Parts, one for each user type (system admin, attendance admin, teacher, student, etc.)

What I'm wondering is, is there a way to use numbered chapters in each part, and have it start numbering the chapters at 1 in each part rather than continuously numbering through the whole document?

Thanks!
chalbersma

Jan 22, 2010
2:17 PM EDT
Subsections If I remember correctly. But don't quote me on that.
bigg

Jan 22, 2010
2:27 PM EDT
I think you will want to go to > Insert > TeX Code and use something like

setcounter{chapter}{1}
bigg

Jan 22, 2010
3:05 PM EDT
Yes, I've had a chance to test it, and that's right. But it should be

\setcounter{chapter}{0}

The previous post ate my initial slash. Also, you have to set the counter at 0 so that the next chapter will be chapter 1.
techiem2

Jan 22, 2010
3:40 PM EDT
Sweet. Thanks! Works great. Doesn't show in Lyx (it must not parse the code live), but it works fine.
montezuma

Jan 22, 2010
9:20 PM EDT
Here is a good source of info for complicated questions:

http://wiki.lyx.org/FAQ/FAQ

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

You cannot post until you login.