- Joined
- Jul 21, 2012
- Messages
- 1
- Reaction score
- 0
Howdy. It's been well over 10 years since I've written code. Hoping someone can help
I've got a book with chapters separated by section breaks.
I'd like to have a simple script that inserts Chapter 1,2,3 etc when it sees a section break and that suppresses a page based on a condition. if it's <pg 6 for example if 6 is where chapter 1 starts.
so logically
read the file (or maybe each line?)
if find a section break and condition is met
then print CHAPTER 1 (or whatever the running chapter is)
until eof or another condition is met (perhaps > page # where text ends)
this way i can suppress the first pages and last pages that aren't part of a chapter.
and yes i've seen many docs on auto numbering with word but frankly it's just too darn confusing.
thanks in advance for any advice!
I've got a book with chapters separated by section breaks.
I'd like to have a simple script that inserts Chapter 1,2,3 etc when it sees a section break and that suppresses a page based on a condition. if it's <pg 6 for example if 6 is where chapter 1 starts.
so logically
read the file (or maybe each line?)
if find a section break and condition is met
then print CHAPTER 1 (or whatever the running chapter is)
until eof or another condition is met (perhaps > page # where text ends)
this way i can suppress the first pages and last pages that aren't part of a chapter.
and yes i've seen many docs on auto numbering with word but frankly it's just too darn confusing.
thanks in advance for any advice!