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.

Index and Tables windows

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:

Final structure
Final structure

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”.

About these ads
How-to: Create a linked index with Openoffice

19 thoughts on “How-to: Create a linked index with Openoffice

  1. 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

  2. Benjamin says:

    Still usefull :-) thx to you I quickly made a clickable index.

    cheers mate !

  3. Mr.Anderson says:

    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

  4. naveen says:

    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)

  5. This creates a linked Table of Contents, NOT an index. If you change the Type to Alphabetical Index the Hyperlink button disappears.

  6. Errol M. A. says:

    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….

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s