Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Tables of Contents styles
Tables of Contents styles
 
   NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
slaw
Captain


Joined: Jan 20, 2005
Posts: 71

PostPosted: Wed Apr 11, 2007 9:38 pm    Post subject: Tables of Contents styles

I can make a table of contents, selecting the single line entries I want and applying a style selected from Heading1 through Heading 10. I followed the instructions in Help.

Unfortunately for me, the resulting entries in the TOC contain not only the single lines that I selected but also the following first two lines of each paragraph. I only want the single line that I selected and applied the style to.

I also tried Heading(no number), but that did not produce any entries in the TOC.

I have not been able to find a way to modify the styles, either.

Is it possible to do what I want? It seems reasonable.

Nick
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Wed Apr 11, 2007 11:08 pm    Post subject:

I am a bit puzzled, but I will give it a go:

- Make sure your style includes a margin rather than line breaks. The whole section of the header-styled text will show up in the TOC.

- Test (by turning on numbering in the TOC) of your extra text is exactly part of that header, or that the first lines of the paragraph are formatted in a style that is not a heading, but is included in the TOC. If so, turn that off.

I hope this helps, but I am not sure where your problem is coming from.

Best wishes,
Oscar

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
Lorinda
Captain Mifune


Joined: Jun 20, 2006
Posts: 2051
Location: Midwest, USA

PostPosted: Thu Apr 12, 2007 7:34 am    Post subject:

Nick:

If you haven't done so already, read through the article on Table of Contents in the Neowiki.

To alter the heading paragraph styles, see the Using Paragraph Styles article in the wiki.

You can also designate custom styles (with names other than heading1, etc.) for the table of contents. That is explained in the Table of Contents article in the wiki.

If the wiki articles aren't clear, or appear to contain mistakes, please let me know by posting in this thread. (I'm the one who translated both articles from French)

I don't have any personal experience with TOCs, beyond some simple testing I did when I translated the articles, but I would say that Oscar's guess is probably correct.

In addition to his suggestions, it would be a good idea to:

-turn on View NonPrinting Characters to see if you have line breaks instead of returns at the end of your heading lines.
-check the "Next style" setting of your heading paragraph styles by selecting the stye (in the Styles and Formatting window) and looking at the "Organizer" tab. "Next style" should be set for the style you want the body of your document to be.
Back to top
LemonAid
The Anomaly


Joined: Nov 21, 2005
Posts: 1285
Location: Witless Protection Program

PostPosted: Thu Apr 12, 2007 3:51 pm    Post subject:

Additional information might be found at OpenOffice.org Off-the-Wall:
ToCs, Indexes and Bibliographies in OOo Writer by Bruce Byfield.

Wise man, that Bruce! More at: http://members.axion.net/~bbyfield/ooo.html

Philip ( So MANY resources - can't . read . them ... all! Wink )

_________________
Have you checked the NeoWiki Documentation Page for more answers?
http://neowiki.neooffice.org/index.php/Documentation_and_Related_Resources
includes User Guides, eBooks, Blogs, additional resource links, and much more!
Back to top
slaw
Captain


Joined: Jan 20, 2005
Posts: 71

PostPosted: Sat Apr 14, 2007 7:57 pm    Post subject:

First, let me apologize for my tardy follow-up. Usually I get an email notice when there's a response, but not this time, although I did check the "notify" box when I posted it.

Thank you all for the info and bountiful references.

It turns out that the simplest fix works. Putting a CR instead of LF at the end of the desired heading works.

Nevertheless, I'm trying to learn more, which leads to a couple more questions.

Oscar, I don't understand what "margin rather than line breaks" means.
Lorinda, I don't see "Organizer" tab in the Styles and Formatting window.

Thanks again,

Nick
Back to top
Lorinda
Captain Mifune


Joined: Jun 20, 2006
Posts: 2051
Location: Midwest, USA

PostPosted: Sat Apr 14, 2007 8:48 pm    Post subject:

Nick,

My apologies, the Organizer tab is in the Paragraph Dialog window that comes up when you choose Format > Paragraph or when you modify an existing paragraph style. I was writing too fast and used the wrong window name above.
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.