A document is one or more sections, each a run of paragraphs with its own page setup,
columns, page numbering, and headers and footers. \sect ends a section.
<section> = <secfmt>* <hdrftr>? <para>+ (\sect <section>)?
Section properties can appear anywhere in the section and apply to the whole of it,
except the break words (\sbk…), which describe the break before the section.
Without \sectd a section inherits every property of the previous one.
Lengths are in twips.
General
| Control word | Meaning |
|---|---|
\sect | End of the section (and of its last paragraph); a new section starts. |
\sectd | Reset to the default section properties. |
\endnhere | Endnotes are placed in this section. |
\binfsxnN | Printer paper bin for the first page of the section; if absent, \binsxn is used. |
\binsxnN | Printer paper bin for the pages of the section. |
\dsN | Section style; its properties must also be written out with the section. |
\pnseclvlN | Destination: default Word 6 numbering for level N in this section. |
\sectunlocked | The section is not protected when the document is protected for forms. |
Section breaks
| Control word | Break before the section |
|---|---|
\sbknone | No break (continuous). |
\sbkcol | New column. |
\sbkpage | New page (default). |
\sbkeven | Next even page. |
\sbkodd | Next odd page. |
Columns
| Control word | Meaning |
|---|---|
\colsN | Number of newspaper-style columns (default 1). |
\colsxN | Space between columns (default 720). |
\colnoN | The column the next two words describe, for columns of different widths. |
\colsrN | Space to the right of that column. |
\colwN | Width of that column. |
\linebetcol | Line between columns. |
Line numbers
| Control word | Meaning |
|---|---|
\linemodN | Number every Nth line (default 1). |
\linexN | Distance from the line number to the left text margin (default 360; 0 means automatic). |
\linestartsN | First line number (default 1). |
\linerestart | Line numbers restart at the \linestarts value. |
\lineppage | Line numbers restart on each page. |
\linecont | Line numbers continue from the previous section. |
Page size and margins
\sectd resets each of these to the matching
document property.
| Control word | Meaning |
|---|---|
\pgwsxnN | Page width (from \paperw). |
\pghsxnN | Page height (from \paperh). |
\marglsxnN | Left margin (from \margl). |
\margrsxnN | Right margin (from \margr). |
\margtsxnN | Top margin (from \margt). |
\margbsxnN | Bottom margin (from \margb). |
\guttersxnN | Gutter (from \gutter). Without facing pages it is added to the left margin of every page; with them, to the left of odd pages and the right of even pages. |
\margmirsxn | Swap left and right margins on facing pages. |
\lndscpsxn | The section is landscape. To mix portrait and landscape sections, leave out the document’s \landscape. |
\titlepg | The first page has its own format (and its own header and footer). |
\headeryN | Header distance from the top of the page (default 720). |
\footeryN | Footer distance from the bottom of the page (default 720). |
Page numbers
| Control word | Meaning |
|---|---|
\pgnstartsN | First page number (default 1). |
\pgncont | Continue page numbers from the previous section (default). |
\pgnrestart | Restart page numbers at the \pgnstarts value. |
\pgnxN | Page number N twips from the right margin (default 720). Understood but not used by Word 6.0 and later. |
\pgnyN | Page number N twips from the top margin (default 720). Understood but not used by Word 6.0 and later. |
\pgnhnN | Put the number of heading level N (1 to 9) before the page number; 0 (default) for none. Only with numbered heading styles. |
\pgnhnsh | Separator between heading number and page number: hyphen. |
\pgnhnsp | Separator: full stop. |
\pgnhnsc | Separator: colon. |
\pgnhnsm | Separator: em dash. |
\pgnhnsn | Separator: en dash. |
The page number format is one of:
| Control word | Format |
|---|---|
\pgndec | Decimal. |
\pgnucrm | Upper-case Roman. |
\pgnlcrm | Lower-case Roman. |
\pgnucltr | Upper-case letters. |
\pgnlcltr | Lower-case letters. |
\pgnbidia | Abjad Jawaz if the language is Arabic, Biblical standard if Hebrew. |
\pgnbidib | Alif Ba Tah if the language is Arabic, non-standard decimal if Hebrew. |
\pgnchosung | Korean numbering 1 (*chosung). |
\pgnganada | Korean numbering 2 (*ganada). |
\pgncnum | Circle numbering (*circlenum). |
\pgndbnum | Kanji numbering without the digit character. |
\pgndbnumd | Kanji numbering with the digit character. |
\pgndbnumt | Kanji numbering 3 (*dbnum3). |
\pgndbnumk | Kanji numbering 4 (*dbnum4). |
\pgndecd | Double-byte decimal. |
\pgngbnum | Chinese numbering 1 (*gb1). |
\pgngbnumd | Chinese numbering 2 (*gb2). |
\pgngbnuml | Chinese numbering 3 (*gb3). |
\pgngbnumk | Chinese numbering 4 (*gb4). |
\pgnzodiac | Chinese zodiac numbering 1 (*zodiac1). |
\pgnzodiacd | Chinese zodiac numbering 2 (*zodiac2). |
\pgnzodiacl | Chinese zodiac numbering 3 (*zodiac3). |
Vertical alignment, direction and text flow
| Control word | Meaning |
|---|---|
\vertalt | Text aligned to the top of the page (default). |
\vertalb | Aligned to the bottom. |
\vertalc | Centred vertically. |
\vertalj | Justified vertically. |
\rtlsect | Columns run from right to left. |
\ltrsect | Columns run from left to right (default). |
\horzsect | Horizontal rendering. |
\vertsect | Vertical rendering. |
\stextflowN | Text flow: 0 left to right, top to bottom; 1 top to bottom, right to left, vertical; 2 left to right, bottom to top; 3 right to left, top to bottom; 4 left to right, top to bottom, vertical; 5 vertical, with a non-vertical font. |
Page borders
The same words as in the
document properties,
applying to this section: \pgbrdrhead, \pgbrdrfoot,
\pgbrdrt, \pgbrdrb, \pgbrdrl,
\pgbrdrr, \brdrartN (art border 1 to 165),
\pgbrdroptN (8, 32 or 40) and \pgbrdrsnap. The style, width,
colour and spacing of each side use the
paragraph border
words.
Line and character grid
| Control word | Meaning |
|---|---|
\sectexpandN | Character pitch minus font size, in device-independent units of 1/294,912 inch. |
\sectlinegridN | Line pitch, in twentieths of a point. |
\sectdefaultcl | Default state: neither of the next two words is written. |
\sectspecifycl | Specify the number of characters per line only. |
\sectspecifyl | Specify both characters per line and lines per page. |
\sectspecifygenN | Text snaps to the character grid. The N is part of the word. |
Added after RTF 1.6
The RTF 1.9.1 specification (19 March 2008) adds per-section footnote and endnote
settings, more page number formats and section revision marks. Its control word index
flags the section note words, the page number formats and \pgnid as added
for Word 2002; none of these words is in the 1.6 specification.
Footnotes and endnotes in a section
| Control word | Meaning |
|---|---|
\sftntj | Footnotes beneath the text (top justified). |
\sftnbj | Footnotes at the bottom of the page (bottom justified). |
\sftnstartN, \saftnstartN | First footnote and endnote number (default 1). |
\sftnrstpg | Restart footnote numbers on each page. |
\sftnrestart | Restart footnote numbers at each section (Word for the Macintosh uses it to restart at each page). |
\sftnrstcont, \saftnrstcont | Continuous footnote and endnote numbering (the default). |
\saftnrestart | Restart endnote numbers at each section. |
Footnote numbering formats are \sftnn… and endnote formats
\saftnn… with the same endings:
| Ending | Format |
|---|---|
ar | Arabic (1, 2, 3) |
alc, auc | Lower-case and upper-case letters |
rlc, ruc | Lower-case and upper-case Roman numerals |
chi | Chicago Manual of Style (*, †, ‡, §) |
chosung | Korean numbering 1 (CHOSUNG) |
ganada | Korean numbering 2 (GANADA) |
cnum | Circle numbering (CIRCLENUM) |
dbnum | Kanji without the digit character (DBNUM1) |
dbnumd | Kanji with the digit character (DBNUM2) |
dbnumt | Kanji numbering 3 (DBNUM3) |
dbnumk | Kanji numbering 4 (DBNUM4) |
dbar | Double-byte numbering (DBCHAR) |
gbnum, gbnumd, gbnuml, gbnumk | Chinese numbering 1 to 4 (GB1–GB4) |
zodiac, zodiacd, zodiacl | Chinese zodiac numbering 1 to 3 |
In full: \sftnnar, \sftnnalc, \sftnnauc,
\sftnnrlc, \sftnnruc, \sftnnchi,
\sftnnchosung, \sftnncnum, \sftnndbnum,
\sftnndbnumd, \sftnndbnumt, \sftnndbnumk,
\sftnndbar, \sftnnganada, \sftnngbnum,
\sftnngbnumd, \sftnngbnuml, \sftnngbnumk,
\sftnnzodiac, \sftnnzodiacd, \sftnnzodiacl, and
\saftnnar, \saftnnalc, \saftnnauc,
\saftnnrlc, \saftnnruc, \saftnnchi,
\saftnnchosung, \saftnncnum, \saftnndbnum,
\saftnndbnumd, \saftnndbnumt, \saftnndbnumk,
\saftnndbar, \saftnnganada, \saftnngbnum,
\saftnngbnumd, \saftnngbnuml, \saftnngbnumk,
\saftnnzodiac, \saftnnzodiacd,
\saftnnzodiacl.
Page numbers, alignment and revisions
| Control word | Meaning |
|---|---|
\pgnhindia | Page numbers in Hindi vowels. |
\pgnhindib | Hindi consonants. |
\pgnhindic | Hindi digits. |
\pgnhindid | Hindi descriptive (cardinal) text. |
\pgnthaia, \pgnthaib, \pgnthaic | Thai letters, Thai digits, Thai descriptive. |
\pgnvieta | Vietnamese descriptive. |
\pgnid | Page number in dashes (Korean). |
\vertal | Text bottom-aligned; an alias for \vertalb (flagged 87, from the 1987 specification). |
\srauthN | With revisions tracked: the author of a change to the section’s properties, entry N of the revision table. |
\srdateN | The date of that change, as a DTTM value. |
Source: Microsoft, Rich Text Format (RTF) Specification, version 1.9.1, 19 March 2008, section “Section Formatting Properties” and Appendix B; the PDF copy Microsoft keeps for its Open Specifications.