OpenDocument4all - Info and tools about OpenDocument
Sunday, 05 February 2012
Home
Main Menu
Home
My Blog
AODL - Project
AODC - Project
OO Development & Info
Forum
About OpenDocument ...
Search
News
Contact Us
Login Form





Lost Password?
No account yet? Register
Newsfeed
Sourceforge.net

SourceForge.net - Goto the project homepage
Project site on SF.net

 

Demand OpenDocument

 

Countomat Webcounter und Webstatistik (Statistik & Logfileanalyse, Counter)

Recent Posts
  • 2007-03-13 10:34:44 AODL is now part of the ODF Toolkit project of OpenOffice.org
    I'm proud to announce that AODL is now part of the ODF Toolkit project of OpenOffice.org. The sourcecode has already moved to the CVS server of OpenOffice.org. You will find more information and a detailed description of how to do a CVS checkout at OpenOffice.org on the AODL Wiki page at OpenOf ... .
     
  • 2007-02-14 10:37:55 First part of the Master Page Styles implementation
    The first part of the Master Page Styles implementation is done and already checked in into the CVS repository. Now, you can set up the page properties like page orientation and the margins for the different page sides. The following code snippte will show you how to do this. TextDocument documen ... .
     
  • 2007-02-08 17:42:25 A short stop ... but not really ...
    Since I've promised you to implement also the page setup handling for the OpenDocument to PDF exporter for AODL I have to make a short stop with the PDF export implementation. I've decided to do this, because the OpenDocument master page handling in AODL is up to now very rudimentary, but for genera ... .
     
  • 2007-02-07 11:06:50 PDF export for AODL/ODF - the current state of implementation
    During the last two days I was able to implement the image support. The images should be positioned well, whether with or no surrounding text parts and keeping possible resize info of embed pictures alive. Therefor I have extended the AODL ODF graphic implementation in this way that the object will ... .
     
  • 2007-02-04 23:28:18 Up to the PDF table implementation ...
    After a lot of coding for the PDF exporter add on for AODL this weekend I have reached the first running state for simple PDF table support. On the way to the simple table support I have also successfully implemented paragraphs, simple text, formated text, whitespaces, headings, fonts, font properti ... .
     
Table of contents a short tutorial Print E-mail
Written by Lars Behrmann   
Wednesday, 04 January 2006

This tutorail will you show how you can add a Table of contents inclusive hyperlinks to your OpenOffice writer documents.

 

Table of contents
a short tutorial

by Lars Behrmann

This short tutorial will show how to insert a Table of  contents with hyperlinks into your OpenOffice writer document. This tutorial is based on OpenOffice 2.0 and I assume that you start with a blank writer file, but I will also describe the steps for existing files. Normally all chapter entries within a Table of contents are based on the headings you use inside your writer documents. In which the outline of the header realize the subchapter. The following list will show which heading outline become which subchapter.

  • Heading1 ( Outline level 1 )  => 1. A headline
  • Heading2 ( Outline level 2 )  => 1.1. A headline
  • Heading3 ( Outline level 3 )  => 1.1.1 . A headline
  • Heading4 ( Outline level 4 )  => 1.1.1.1. A headline
  • .......
Of course, you can also use other ways then the usage of headline styles and it's outline levels, but this is the standard way and the tutorial will use this standard. After you know a little bit of  the chapter and were they come from let's start ...

A moment, please. If you want to add a Table of contents to an existing document. You maybe have to reformat your chapter headlines. Set all headlines which should become part  of the Table of contents accordingly to the styles shown in the liist above. Notice, you don't have to set the numbering manual. This will be solved over the Table of contents settings. After you finished the reformatting you can went on to step 1.

Step1: Insert the Table of contents
First place the cursor at the position where you want to insert the Table of contents. From the main menu choose "Insert"=>"Indexes and Tables"=>Indexes and Tables" as shown in pic. 1.

Insert Table of contents
Picture1: Insert Table of contents (menu)

Step2: Setting up the "Outline Numbering"
After you choose the "Indexes and Tables" menu item the "Insert Index / Table" table window appears. First you can change the title via the "Title" textbox, if you want. The rest of the settings of the "Index / Table" tab page could be set as default. Now, you should modify the "Outline" settings. Therefor you have to click the button with the the 3 dots next to the "Outline" checkbox (Picture 2).

Setting the outline style
Picture 2: Open the "Outline Numbering"

Now, the "Outline Numbering" window appear. In the "Level" listbox on the left side select the "1-10" entry. Then select from the "Number" combobox the "1,2,3,..." entry. Now, the preview on the right side of the window should show the resulting headline numbering. If you want to add additional dots or other chars behind the cpater numbers you can insert this into the "After" textbox. Now, your "Outline Numbering " window should look like this in picture 3. Click Ok to finish the "Outline Numbering" settings.

Outline Numbering Setting
Picture 3: "Outline Numbering" setting


Step 3: Set up the Table of contents to use hyperlinks
Now, you change the focus to the "Entries" tab page. Make sure that in the "Level" listbox "1" is selected. The "Structure" control look a little bit complex, but it's easy! The "Structure" control display the order of our Table of contents entries. "F#" is the chapter number, "F" is the chapter text, "T" is the tab stop and "#" is the page number. The operation of inerting a hyperlink is split into three steps. Insert the hyperlink start position, insert the hyperlink end position and attach the usage of hyperlinks to all used Table of content entries. Let's start with step 1. Place the cursor in the textbox before the "F#" button and press "Hyperlink" button  (Picture 4) after you pressed this button in the "Structure" control the new button for the hyperlink start button appear(Picture 5).

Insert hyperlinks step 1
Picture 4: Insert hyperlink start position

The hyperlink start button
Picture 5: The inserted hyperlink start button

Now, you have to set the hyperlink end. Therefor place the cursor after "F" and press again the "Hyperlink" button and the hyperlink end button appear within "Structure" control. see Picture 6 and 7.

Insert the hyperlink end
Picture 6: Insert hyperlink end position

The inserted hyperlink end button
Picture 7: The inserted hyperlink start button

At least click the "All" button to add the usage of hyperlinks to all levels. In the preview on the left side othe window you will see that all chapters are diplayed with hyperlinks, now. That was it! Easy, or?


Step 3: Test the Table of contents with a first few headlines
Place the cursor at the end of the document and enter the text for your headline. e.g My first headline then select the whole text and append the Heading1 style to it. Immediately  OpenOffice add the numbering to the text. If this Headline doesn't appear in your Table of contents right click into the Table of contents and choose "Update Index/Table" and your headline is shown incl. hyperlink, numbering, .. in the Table of contents list. If you want to add a subchapter enter the headline text and set it's style to heading Heading2 and you have a subchapter.

The Table of contents in OpenOffice
Picture 8: The Table of contents in OpenOffice

Lars Behrmann, This e-mail address is being protected from spam bots, you need JavaScript enabled to view it , 04. January 2006
 
Last Updated ( Wednesday, 04 January 2006 )
 
Next >
Quick jump
Download area
Who's Online
We have 7 guests online
Polls
Should AODL and AODC also implement export as PDF and RTF?
 
Popular
© 2005 MamboZ. All rights reserved.