Insert Section Break in RTF

D

Diane Yocom

I realize this may not be the best place to post this, but I was at a loss
as to where to go, so...

I'm trying to merge two separate RTF files (created in Word) into one Word
document. I'd like to put a "next page" section break between each document
so that headers and footers can differ between sections. I've got the
documents merging, but I can't seem to figure out how to insert the section
break.

I had actually found the following command: \sect\sectd\sbkpage to insert a
next page section, but when I insert it, it doesn't reset the header and
footer, so I was figuring I did something wrong. Does there need to be a
group delimiter around the section and the text in that section?

I.e., {\sect\sectd\sbkpage blah blah blah, here's my text}

Can anyone help?
 
P

Peter Jamieson

I'm not an rtf expert - all I usually do is create a small sample document
and try to work out what chunks you need to achieve a particular effect.
Doing that suggests that what you need is to finish each section with:

last bit of text in the section \sect }

then start the new section with e.g.

\sectd \linex0\endnhere\sectdefaultcl
or
\sbkodd\linex0\endnhere\sectdefaultcl
etc. depending on the section break type. Then, if you have a new header in
the new section, have a header block, such as

{\header \pard\plain \s15\ql
\li0\ri0\widctlpar\tqc\tx4153\tqr\tx8306\nooverflow\faroman\rin0\lin0\itap0
\fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {s1 header
\par }}

If you have a new footer in the new section, have a new footer block along
similar lines.

Then get straight into the body of the new section, e.g. my experiment has:

\pard\plain \ql \li0\ri0\widctlpar\nooverflow\faroman\rin0\lin0\itap0
\fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033
{first bit of text in the new section...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top