How-to: Create a linked index with Openoffice
Today I am going to explian how it’s possibile to create a linked index of a document. All of us know the importante of indexes in written documents. But if this documents are stored electronically (tipically in PDF format) it’s nice to have a clickable index, which immediatly redirects you to the part of the document you are intrested in.
Creating an index
To easily created an index the quickest way is to format your index entries through the most intuitive instrument: Headers. You can find this options in the toolbar Formatting (View->Toolbars->Formatting).
On this toolbar you find the Heading style I am talking about. As you can see you don’t just have one heading, but at least three. Heading 1 is to be used for the most important titles (es: chapter titles). After this you can use Heading 2-3-4 to create your gerarchy. Once you have created your documents structure is time to create the index.
Select where on your document you want to set your index (usually at the beginning) and go on Insert -> Indexes and Tables -> Indexes and Tables
A small window will open. That’s the window which lets you control your index. Give your index a name and move to the tab named Entries that’s the one which matters for our scope, which is to create a linked index.
The part really interesting for us is the Structure section. This structure specifies, for each level, how one entry of the index should look like. The standard format is the following:
- E#: Chapter number
- E: Entry
- T: Tab stop (this gives the line of spots we see)
- #: Page number
Linking index entries
Between one an another of this buttons there is a small textbox which can be used both to write something or to add new pieces to the line entry layout. Our goal is to create a linked index. In order to to this:
- Click on the “E#” button. Click on the “Hyperlink” button. The label of “E#” is now changed to “LS” which stands for “Link Start”. Below select “Page number” from the Character style.
- Click now on the small textbox after the last entry of the line structure, “#”. Click now on “Hyperlink” again. A new piece should be added and it’s label should be “LE” (Link End).
The is how your structure should look like now:
The last thing to do is to click on “All“. This will apply the newly created structure to the whole index and not just to the “first level” (Heading 1).
Click now on “OK”. Your index will now be inserted in your document and the entries will be clickable. When you will click on the entries you will automatically been redirected to the specific header. In order to try links in OpenOffice you have to click on the index entries while you keep CTRL button down.
You can now for exemple export your document as PDF and have a really nice clickable index in the PDF format!
Small tip: to automatically update your index after some changes you do in the doc’s structure just right-click on your index and select “Update Index/Table”.



on 12 November 2008 on 11:50
Thank you for explaining this unintuitive interface!
on 15 April 2009 on 7:41
Bookmarked!
on 4 September 2009 on 19:49
Thanks. Very useful.
on 15 March 2010 on 15:48
Great!! very explanatory, thanks for sharing!!!
on 31 March 2010 on 14:04
[...] Basat en How-to: Create a linked index with Openoffice [...]
on 29 April 2010 on 12:12
Genius!!! But what about the page numbers in the index??
on 17 May 2010 on 20:01
link one part of a pdf to another in openoffice
maybe those keywords will help others like me find this easier
on 30 July 2010 on 13:04
Thanks a lot. its truly very un-intutive interface.
on 23 September 2010 on 8:59
Hi Danilo,
this is a great resource. I am currently working on a 250-pages document and a clickable index is a must in this case.
Tanti saluti a bella Italia.
Grazie e Ciao!
Rick
on 10 October 2010 on 14:30
Thanks ! It’s utility for me !
on 23 October 2010 on 13:35
Still usefull
thx to you I quickly made a clickable index.
cheers mate !
on 7 December 2010 on 4:58
Thanks, Helpful
on 9 February 2011 on 18:06
Great, thanks
would have never figured it out alone
on 20 April 2011 on 15:01
It’s also possible to click between the different parts and thus create a more clean link.
For instance clicking before E# and then pressing hyperlink and then between E and T and pressing hyperlink.
This makes sure that only the chapter number and name are blue linked. You can also click on E#, E, T and # to remove it by pressing the delete key.
You can customize it pretty well
on 12 May 2011 on 5:36
To Create a linked index with Openoffice – I want code (a macro) to crearte TOC – how can I represent it in coad – selectein of hadlines in formattion and creation table of contant hyperlinks. Like clicking E# and E anf hyperlink and all. all this i need it to automate through macro coad in ODT (open office)
on 7 March 2012 on 13:56
This creates a linked Table of Contents, NOT an index. If you change the Type to Alphabetical Index the Hyperlink button disappears.
on 28 May 2012 on 22:34
I need a quick solution, please help me.
I am using two different styles of page numbering (roman, and normal) but this index only shows in arabic numbers.
my preface pages numbered in roman, my index like
A…..1
B…..2
C…..3
D…..4
E……1
F……2 ?!!?!?!
it should be
A….i
B….ii
C….iii
D…iv
E….1
F…..2
I cant find anything to change….
on 25 August 2012 on 12:20
Thank you for saving us hours of frustration.
Cheers
Chris
on 30 August 2012 on 12:52
that worked for me too
Thnanks