Got the TOC OK and follow the instructions to create links on the h2 and h3 styles in the document. But I cannot get them to work - I assume a hand will appear to enable a click to get to the section. Advice appreciated.
Used these instructions: Creating a Table of Contents - LibreOffice Help
Then:
To Assign Hyperlinks to Entries in a Table of Contents
You can assign a cross-reference as a hyperlink to entries in a table of contents.
Right-click in the table of contents, and then choose Edit Index or Table of Contents.
Click the Entries tab.
In the Level list click the heading level that you want to assign hyperlinks to.
In the Structure area, click in the box in front of E#, and then click Hyperlink.
Click in the box behind the E, and then click Hyperlink.
Repeat for each heading level that you want to create hyperlinks for, or click the All button to apply the formatting to all levels.
Used levels 2 and 3 as i have headings h2 and h3. No response on OK. I have Chapter headings on h2 with text defining the heading. h3 is just text.