[Libreoffice-bugs] [Bug 65463] Writer: Index entry in ToC should be clickable

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Jun 23 14:45:18 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=65463

--- Comment #23 from jeroen van gorkum <jeroen at vangorkum.com> ---
• another use case

i'm writing a ~70 page technical document, with ~85 (level 1-5) headings. 8 of
those headings deserve special mention. i need a normal TOC at the start of the
document, with heading text and page numbers, hyperlinked to their location (in
doc and pdf). for the special list, i'd like a second table somewhere else in
the document, with similar formatting and hyperlinking (in doc and pdf).

normally, the most appropriate type for my second table would be a
'User-Defined' Index, but LO Help instructs that hyperlinked index entries are
"Available only for a table of contents" [1], so i chose the TOC type.

• steps to reproduce (on macOS)

1. create an index entry from a heading
   a. select heading text
   b. from the Insert menu, choose Table of Contents and Index: Index Entry...
   c. in the Insert Index Entry dialog, select Table of Contents for Index,
then click Insert
   d. click Close to dismiss the Insert Index Entry dialog

2. insert a TOC for index entries only
   a. place the cursor in the document where you want to insert the TOC 
   b. from the Insert menu, choose Table of Contents and Index: Table of
Contents, Index or Bibliography...
   c. on the Type tab of the Table of Contents, Index or Bibliography dialog,
make sure the selected Type is Table of Contents
   d. under Create From, deselect Outline and Additional styles, select Index
marks
   e. click OK to close the dialog and insert the TOC into the document

• result

the TOC lists the index entries created from heading texts, referring to the
right page numbers. it can be updated and edited as a normal TOC. if the
document already contained a TOC, its name will be 'Table of Contents2'.

• expected result

next to the actual result, i expected a click (command + click on macOS) on a
TOC line to jump to the index entry (heading text in my case) on the page in
the document it refers to. i'd also expect that these hyperlinks would still
work when the document is exported as PDF. this is the implemented behavior
when Create From: Outline, or Create From: Additional styles is selected in
step 2d, above.

--
[1] Entries (table of contents). (n.d.) LibreOffice Help (6.4).
https://help.libreoffice.org/6.4/en-US/text/swriter/01/04120221.html (see
heading 'Hyperlink (LS and LE)')

Version: 6.4.7.2
Build ID: 639b8ac485750d5696d7590a72ef1b496725cfb5
CPU threads: 4; OS: Mac OS X 10.15.7; UI render: default; VCL: osx; 
Locale: nl-NL (en_GB.UTF-8); UI-Language: en-US
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210623/97bbad9a/attachment.htm>


More information about the Libreoffice-bugs mailing list