I am producing a script which creates RTF documents and want to add a table of contents. I've opted for this:
{\field\flddirty\fldedit{\*\fldinst TOC}{\fldrslt \i Use this page to add the table of contents, right click to update field \i0}}
and the user will open the RTF in Microsoft Word and update the field. However, I'm unsure of how to format the sections in my RTF code to create headings so that when I update my TOC in Word it will show the sections. For now, when I "update field", I only get "No tables of contents entries found"
I've tried {\tc My heading here}
with no luck.
Is there some code I can insert into my RTF to format my text as headers for TOC formatting in Word?