Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Issue with Section Odd Break and Pagination Restart

Dec 30, 2010 6:17PM PST

In MS Word, we introduced Section Odd Break at the end of first page and restarted the page numbers on the next page. The issue what we see is, the section odd break is not working as expected. When we tried printing or print preview the document, we don't see an empty page between the first and second page that Section Odd Break would create.

We have a requirement that if the content of a chapter finishes with odd section break in an odd numbered page, then the back page should print as blank and the next chapter should print in the next odd page. If the content of a chapter finishes with odd section break in an even numbered page, then the next chapter should print in the next page.

The functionality is working fine if we have continuous numbering between the chapters. But we did not get blank page if we restart the page numbers for chapters.

We are reading xml using java and creating RTF document and please find the source code that we have:

\par \b \i0 \ul0 \pard \qj \li0\ri0 \sb0 \fi0 OPINION
\par
\sect \sectd \marglsxn1296\sbknone {
\header \pard }\pard
\sect \sectd \marglsxn1296\sbkpage \pgnstarts1 \pgnrestart {
\header \pard \fs20 \f1 Page \chpgn \qr
\par }
\sect \sectd \marglsxn1296\sbknone \f1 {
\header \pard \fs20 \f1 Page \chpgn \qr
\par \pard \f1 \fs20 \hyphpar0 2010 OPINION, *\qc
\par }
\sect \sectd \marglsxn1296\sbknone \pard \hyphpar0 \qj \li0\ri0 \sb0 \fi0 {\*\shppict{\pict\pngblip
89504e470d0a1a0a0000000d49484452000000ee...}}
\par \pard
\par \pard \hyphpar0 \qc \li0\ri0 \sb0 \fi0 2 of 23 DOCUMENTS
\par \pard

For our requirement, we tried replacing \sbkpage as \sbkodd and it does not work with \sbkodd \pgnstarts1 \pgnrestart (section odd break and pagination restart combination)

Section odd break works as expected if we dont have pagination restart for the next chapter.
Any suggestion on this issue is much appreciated. Thanks Happy

Discussion is locked

- Collapse -
Re: section odd break
Dec 30, 2010 6:28PM PST

Let's say the section odd break inserts a page-break if the next page isn't numbered odd. If you restart with 1, it's odd, so there is no need for a page-break.

If this reasoning is correct, you should insert a even page-break. That sees the next page is odd and inserts a blank page.

Just a guess. I didn't try.

Kees

- Collapse -
Issue with Section Odd Break and Pagination Restart
Dec 30, 2010 7:10PM PST

Hi Kees,

Thanks for your reply. When i use section even break and pagination restart between the chapters (\sbkeven \pgnstarts1 \pgnrestart), and if a chapter ends in odd page, i am not getting blank page after the chapter and the page number starts from 2 in the next chapter.

- Collapse -
So that wasn't a good idea.
Dec 30, 2010 9:29PM PST

Seemed worth a try. Sorry to see it didn't work. All you can do, I'm afraid, is try from Word what works and do that.

But it could be that having different documents for each chapter is the only solution. To make this one document with added blank pages you would need to write a macro in Word. That can count pages (which, of course, depend on the font, the page-layout, styles and the printer).
And then it might be easier to feed the current document to the macro and let it edit the document by adding an extra page-break where necessary.

Kees