Rtf syntax



Download 154.15 Kb.
Page4/6
Date conversion29.04.2016
Size154.15 Kb.
1   2   3   4   5   6

Fields

The field group contains the text of Word fields. The field group begins with the control word \field.


The following control words can follow the \field control word


Control word

Meaning

\flddirty

Change has been made to the field result since the field was last updated

\fldedit

Text has been added to, or removed from, the field result since the field was last updated

\fldlock

Field is locked and cannot be updated

\fldpriv

Result is not in a form suitable for display (for example, binary data used by fields whose result is a picture)

Two subgroups are available within the \field group. They must be enclosed in braces ({}) and begin with the following control words




Control word

Meaning

\*\fldinst

Field instructions

\fldrslt

Most recently calculated result of the field

The \fldrslt control word should be included even if no result has been calculated. This simplifies the RTF reader's task, because even readers that do not recognize fields can generally include the value of the \fldrslt group in the document.


An example of some field text follows
IA |C IC
1 I
{\field\fldedit{\fldinst author}{\fldrslt Joe Smith}}\par\pard {\field{\fldinst time\\@"hmm AM/PM"}{\fldrslt 812 AM}}
A Begins fieId group

B Field instructions

C Field result

Index Entries

The index entry group begins with the control word \xe. Following this control word is the text of the index entry and other, optional control words that further define the index entry.


If the text of the index entry is not formatted as hidden text with the \v control word (see "Character Formatting Properties," later in this document), the text is put into the document as well as into the index. Similarly, the text of the \txe subgroup, described later, becomes part of the document if it is not formatted as hidden text.
The following control words may also be used


Control word

Meaning

\bxe

Formats the page number or cross-reference bold

\ixe

Formats the page number or cross-reference italic

The following control words are destinations within the \xe group and are followed by text arguments. These control words and their arguments must be enclosed in braces ({})




Control word

Meaning

\txe text

Uses text instead of a page number

\rxe bookmark-name

Generates page numbers for the range of text specified by bookmark-name


Table of Contents Entries

The table of contents entry group begins with the control word \tc. It is followed by the text of the table of contents entry and optional switches.


As with index entries, text that is not formatted as hidden with the \v character formatting control word should be put into the document.
The following control words can also be used in this group


Control word

Meaning

\tcfn

Type of table being compiled; n is mapped by existing Microsoft software to a Ietter between A and Z; default is 67, which maps to C, used for tables of contents

\tcln

Level number (default is l)



Bookmarks

This group contains two control words \*\bkmkstart, to indicate the start of the specified bookmark, and \*\bkmkend, to indicate the end of the specified bookmark. A bookmark is shown in the following example


É
\pard\plain \fs20 Kuhn believes that science, rather than discovering in experience certain structured relationships, actually creates (or already participates in) a presupposed structure to which it fits the data. {\bkmkstart paradigm}Kuhn calls such a presupposed structure a paradigm.{\bkmkend paradigm}
É

Document Formatting Properties

This section lists the control words that act on the attributes of a document, such as margins and footnote placement. These attributes must precede the first plain text character in the document.


The following control words specify document formatting. If you omit a control word, RTF uses the default value shown in parentheses. Measurements are in twips.


Control word

Meaning

\paperwn

Paper width (12,240)

\paperhn

Paper height (15,840)

\margln

Left margin (1,800)

\margrn

Right margin (1,800)

\margtn

Top margin (1,440)

\margbn

Bottom margin (1,440)

\facingp

Facing pages (activates odd/even headers and gutters)

\guttern

Gutter width (0)




Control word

Meaning

\deftabn

Default tab width (720)

\widowctrl

Widow control

\hyphhotz

Hyphenation hot zone ( amount of space at right margin in which words are hyphenated)

\ftnsep

Text argument separates footnotes from document

\ftnsepc

Text argument separates continued footnotes from document

\ftncn

Text argument is a notice for continued footnotes

\endnotes

Footnotes at end of section (default)

\enddoc

Footnotes at end of document

\ftntj

Footnotes beneath text

\ftnbj

Footnotes at bottom of page

\ftnstartn

Beginning footnote number ( 1 )

\ftnrestart

Footnote numbers restart on each page

\pgnstartn

Beginning page number ( 1 )

\linestartn

Beginning line number ( 1 )

\landscape

Landscape format

\fracwidth

Uses fractional character widths when printing (Macintosh 

\*\nextfile

Destination; argument is file name of file to print or index next; must be enclosed in braces ( {} )

\*\template

Destination; argument is file name of related template file; must be enclosed in braces ( {} )

\makeback

Backup copy is made automatically when document is saved

\defformat

Tells RTF reader that document should be saved in RTF format

\revisions

Turns on revision marking

\margmirror

Switches margin definitions on left and right pages

\revpropn

Argument indicates how revised text will be displayed; 0, no properties shown; 1, bold; 2, italic; 3, underline (default); 4, double underline

\revbarn

Vertical lines mark altered text, based on the argument 0, no marking; 1, Ieft margin; 2 right mugin; 3, outside (Ieft on Ieft pages, right on right pages; default)



1   2   3   4   5   6


The database is protected by copyright ©essaydocs.org 2016
send message

    Main page