On 4 Apr 2011, at 12:43, Žorvaršur Davķšsson wrote:
[...]
> The purpose of the whole macro is to include headlines written in bold in the Navigator pane so you can easily jump from one headline to another.
>
> Imagine you download a formatted text document from the web. Many look like this:
>
> This is a bold line
>
> Some text. Some text. Some text. Some text. Some text. Some text. Some text.
> Some text. Some text. Some text. Some text. Some text. Some text.
[...]
Unless the text you are dealing with is more complex, the purpose can be achieved by using Statusbar tags:
Place the cursor anywhere in 'This is a bold line'.
From the drop-down menu of the font tag (small a icon) in the Statusbar apply 'Select All' which will select all text with the same attributes where the cursor is.
Then while all the found text is selected, from the Paragraph tag in the Statusbar apply a style which includes TOC Level 1.
Hamid