Create a Table of Contents with a clickable hyperlink- Solution!

The following instructions are for
      creating a simple Table of Contents which has a click-able
      hyperlink
      that will take you to the page and location of the Table of
      Contents
      entry.

The following instruction has only
      been tried using Ubuntu 11.04 using LibreOffice 3.4.3

OOO340m1 (Build:302)

Assumptions- you have no idea how to
      setup paragraph style or any other sort of style.

Start with a clean new document.

Begin-

How to do it;

Tools----Outline Numbering

Under Paragraph Style select----Heading 1

Under Number select--None

Under Character Style select---Internet
      Link

Click OK at the bottom of the Outline
      Numbering to close the screen

Next to the do the following;

Insert---Manual
      Break----------Page Break

This will insert a new 2ndpage.

Page down to page 2

In the top left corner of page 2 type
      the following word in the top left corner of the page;

Hello

Select the wordHelloand click
      on the Apply Style toolbar box and selectHeading 1

Go back to the top of page 1

Select Insert-------Indexes and
      Tables------Indexes and Tables

Click on the Entries tab

On the Structure and Formatting
      portion of the
      screen look at the Structure part.

Go to the first blank white box and
      click the "Hyperlink" button then click "All"

Go to the last blank white box and
      click the "Hyperlink" button then click "All"

Click OK to close the screen

That should present you with a Table
      of
      Contents with Hello as a click-able link

No doubt you'll have to figure out
      more proper formatting but so far I've never found any simply
      instruction on how to do the above. Do I know what I'm doing- of
      course not...but I got 1 link to work!

Many thanks to the inspiration ofTom" D.... on this list.
<!--
    @page { margin: 0.79in }
    P { margin-bottom: 0.08in }
  -->

OK, let me ask some simple questions.
1) Do you know how to use styles? Specifically, do you know how to use
the Styles and formatting window? (Chapters 6 and 7 of the Writer Guide)
2) Does your document contain headings that describe the paragraphs
which follow each heading?
3) Are these headings the ones that you want to create links to in the
table of contents? (If not, specifically, what type of text do you want
to have links to in the TOC?)

--Dan

Hi :slight_smile:
[Bows]  Thanks :slight_smile: and congrats too :slight_smile:

Time to play around a little and explore!

i)  Change the word "Hello" into something else and see what happens to the ToC.  Probably nothing until you right-click on the ToC and choose the option to "Update ToC".

ii)  Press enter just after your new heading and type in something else as a sub-heading.  Select the sub-heading and change it's paragraph style to "Heading2".  Update the ToC again.  The new sub-heading appears in the ToC it should be clickable too.  Clicking on "All" apparently adds the hyperlink thing into the other levels of headings.

I think the crucial bits of this whole exercise was
1.  to insert the ToC (not type it in yourself)
2.  to set the headings in the rest of the document using paragraph styles

Regards from
Tom :slight_smile:

On 01/09/2012 04:08 PM, Dan Lewis wrote:On Mon, 2012-01-09 at 15:10
      -0500, . wrote:Assumptions- you have no idea how tosetup paragraph style or any other sort of style.Start with a clean new document.Begin-How to do it;Tools----Outline NumberingUnder Paragraph Style select----Heading 1Under Number select--NoneUnder Character Style select---InternetLinkClick OK at the bottom of the OutlineNumbering to close the screenNext to the do the following;Insert---ManualBreak----------Page BreakThis will insert a new 2ndpage.Page down to page 2In the top left corner of page 2 typethe following word in the top left corner of the page;HelloSelect the wordHello and clickon the Apply Style toolbar box and selectHeading 1Go back to the top of page 1Select Insert-------Indexes andTables------Indexes and TablesClick on the Entries tabOn the Structure and Formattingportion of thescreen look at the Structure part.Go to the first blank white box andclick the "Hyperlink" button then click "All"Go to the last blank white box andclick the "Hyperlink" button then click "All"Click OK to close the screenThat should present you with a TableofContents with Hello as a click-able linkNo doubt you'll have to figure outmore proper formatting but so far I've never found any
      simplyinstruction on how to do the above. Do I know what I'm
      doing- ofcourse not...but I got 1 link to work!Many thanks to the inspiration ofTom" D.... on this list.!--@page { margin: 0.79in }P { margin-bottom: 0.08in }A:link { so-language: zxx }--OK, let me ask some simple questions.1) Do you know how to use styles? Specifically, do you know
      how to usethe Styles and formatting window? (Chapters 6 and 7 of the
      Writer Guide)No...but I'm learning.2) Does your document contain headings that describe the
      paragraphswhich follow each heading?No idea3) Are these headings the ones that you want to create links
      to in thetable of contents? (If not, specifically, what type of text
      do you wantto have links to in the TOC?)--DanNo idea.I do know I solved the problem I had.  With that I'm happy.  Just
    finished editing a 250 documents with hyperlinks in the TOC using my
    method.

Assumptions- you have no idea how to
      setup paragraph style or any other sort of style.
Start with a clean new document.
Begin-
How to do it;
Tools----Outline Numbering
Under Paragraph Style select----Heading 1
Under Number select--None
Under Character Style select---Internet
      Link
Click OK at the bottom of the Outline
      Numbering to close the screen
Next to the do the following;
Insert---Manual
      Break----------Page Break
This will insert a new 2ndpage.
Page down to page 2
In the top left corner of page 2 type
      the following word in the top left corner of the page;
Hello
Select the wordHello and click
      on the Apply Style toolbar box and selectHeading 1
Go back to the top of page 1
Select Insert-------Indexes and
      Tables------Indexes and Tables
Click on the Entries tab
On the Structure and Formatting
      portion of the
      screen look at the Structure part.
Go to the first blank white box and
      click the "Hyperlink" button then click "All"
Go to the last blank white box and
      click the "Hyperlink" button then click "All"
Click OK to close the screen
That should present you with a Table
      of
      Contents with Hello as a click-able link
No doubt you'll have to figure out
      more proper formatting but so far I've never found any simply
      instruction on how to do the above. Do I know what I'm doing- of
      course not...but I got 1 link to work!
Many thanks to the inspiration ofTom" D.... on this list.
<!--
    @page { margin: 0.79in }
    P { margin-bottom: 0.08in }
    A:link { so-language: zxx }
  -->

     OK, let me ask some simple questions.
1) Do you know how to use styles? Specifically, do you know how to use
the Styles and formatting window? (Chapters 6 and 7 of the Writer Guide)
2) Does your document contain headings that describe the paragraphs
which follow each heading?
3) Are these headings the ones that you want to create links to in the
table of contents? (If not, specifically, what type of text do you want
to have links to in the TOC?)

--Dan

Sorry about the messed up email folks.

No idea.

I do know I solved the problem I had. With that I'm happy. Just
finished editing a 250 documents with hyperlinks in the TOC using my method.

Hi :slight_smile:
Congrats indeed!  Nicely done!!
Regards from
Tom :slight_smile: