trichview.com

trichview.support




Re: RTF for numbered lists?


Return to index


Author

Message

Sergey Tkachenko

Posted: 03/16/2004 20:03:30


There are two ways for storing lists in RTF.

The first one is used in standard RichEdit and old versions of Word.

The second one is used in new versions of Word (97+).


TRichView can read both of them but saves the second one.

Standard RichEdit can read only the first one - when RichEdit reads RTF

created by new versions of Word all bullets are imported as text followed by

tab (or sometimes convert them to standard bullets).


The first (old) way of storing bullets/numbering is embedding them directly

in paragraph (\pn keyword). For readers that do not understand

bullets/numbering a text representation is saved (\pntext keyword).


The second way: to define a table of lists in document. This table contains

properties of all list levels. The second table is a table of list overrides

(overrides some properties of list levels, mainly starting value for

counter). Paragraph contains only a reference in list override table (\ls

keyword). For readers that do not understand bullets/numbering a text

representation is saved (\listtext keyword).

So, unfortunately, Daniel's method will not work. It simply inserts text

followed by tab.

And new versions MS Word and TRichView ignores \listtext because they

understand \ls.


Search Google for "RTF Specification". The last version which I found was

1.7 (corresponds to WordXP).



> Hi there,

>

> Does anyone know what the simplest RTF token code would be for creating

> a numbered list? I'd like to put a sequence of questions on the

> clipboard in RTF format, for pasting into a word-processor document, and

> the code I see produced by Word for numbered lists is horrendously

> complicated. I'de just like something that's autonumbering with a

> hanging indent, or failing that, manually numbered with a hanging indent.

>

> All help appreciated,

> Martin





Powered by ABC Amber Outlook Express Converter