Problem with ToC formatting in Writer

View: New views
10 Messages — Rating Filter:   Alert me  

Problem with ToC formatting in Writer

by McLauchlan, Kevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


G'day all.

OOo 3.1.1 on Win XP Pro x64.

I've got a couple of documents with Table of Contents where the entries have styles applied (Contents 1, Contents 2, etc.), according to the heading level that they capture from the main body of the document. The resulting appearance of entries for the first chapter or three are correct, but all the succeeding chapters (in the ToC) have the page number wrapping to the next (or later) line.   So I get the heading text followed by a line of leader dots to the margin, another line of leader dots on the next line, and then FINALLY the page number on the third line... against the left margin.

I'll try to illustrate what I mean. Imagine this is my table of contents. It starts off ok.


Chapter 1  The Intro Stuff .................................... 1

   Introduction ............................................... 1
   Something else ............................................. 2
   Yet more something ......................................... 3

Chapter 2  The Config Stuff ................................... 5
:
Chapter 3  The Network Stuff .................................. 9
:
Chapter 4  The Meat of the Matter .............................
...............................................................
13
   Overview ...................................................
...............................................................
13
   Next thing .................................................
...............................................................
14

The mess happens at Chapter 4.
The various entries for Ch 4 have the same styles associated with
them as the equivalent entries for Ch 1, 2, and 3. If I open/edit
the style, it's got the same settings if it's style "Contents 2" in
Chapter 4 as it does if it's "Contents 2" in Chapter 1 of the ToC.

What else should I be looking at?

I've tried deleting the table and re-inserting/re-creating it. It
does the same.  

The Preface and Chapters One through Four are OK.

Every chapter after Chapter Four gets its ToC entries screwed-up in
this way.

I can't see anything different/special between the actual headings
in the chapters, that are being captured for these ToC entries.

All the entries are active links to their respective headings in
the book.

Suggestions?

I have several other books that don't show this problem. Don't know
where it came from, except all were originally MS Word documents.


 - Kevin

The information contained in this electronic mail transmission
may be privileged and confidential, and therefore, protected
from disclosure. If you have received this communication in
error, please notify us immediately by replying to this
message and deleting it from your computer without copying
or disclosing it.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: Problem with ToC formatting in Writer

by McLauchlan, Kevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

UPDATE:  I just updated the ToC on another document that didn't have the problem, and now it does, for the entire ToC.

CRAP!  

So this means there's some kind of global setting that I don't know about, in OOo 3.1.1?

What might it be? Where to look?
 
What would be the proper (search) term for "set all ToC entries to overwrap by two lines"?



> -----Original Message-----
> From: McLauchlan, Kevin [mailto:Kevin.McLauchlan@...]
>
> G'day all.
>
> OOo 3.1.1 on Win XP Pro x64.
>
> I've got a couple of documents with Table of Contents where
> the entries have styles applied (Contents 1, Contents 2,
> etc.), according to the heading level that they capture from
> the main body of the document. The resulting appearance of
> entries for the first chapter or three are correct, but all
> the succeeding chapters (in the ToC) have the page number
> wrapping to the next (or later) line.   So I get the heading
> text followed by a line of leader dots to the margin, another
> line of leader dots on the next line, and then FINALLY the
> page number on the third line... against the left margin.
>
> I'll try to illustrate what I mean. Imagine this is my table
> of contents. It starts off ok.
>
>
> Chapter 1  The Intro Stuff .................................... 1
>
>    Introduction ............................................... 1
>    Something else ............................................. 2
>    Yet more something ......................................... 3
>
> Chapter 2  The Config Stuff ................................... 5
> :
> Chapter 3  The Network Stuff .................................. 9
> :
> Chapter 4  The Meat of the Matter .............................
> ...............................................................
> 13
>    Overview ...................................................
> ...............................................................
> 13
>    Next thing .................................................
> ...............................................................
> 14
>
> The mess happens at Chapter 4.
> The various entries for Ch 4 have the same styles associated with
> them as the equivalent entries for Ch 1, 2, and 3. If I open/edit
> the style, it's got the same settings if it's style "Contents 2" in
> Chapter 4 as it does if it's "Contents 2" in Chapter 1 of the ToC.
>
> What else should I be looking at?
>
> I've tried deleting the table and re-inserting/re-creating it. It
> does the same.  
>
> The Preface and Chapters One through Four are OK.
>
> Every chapter after Chapter Four gets its ToC entries screwed-up in
> this way.
>
> I can't see anything different/special between the actual headings
> in the chapters, that are being captured for these ToC entries.
>
> All the entries are active links to their respective headings in
> the book.
>
> Suggestions?
>
> I have several other books that don't show this problem. Don't know
> where it came from, except all were originally MS Word documents.
>
>
>  - Kevin
The information contained in this electronic mail transmission
may be privileged and confidential, and therefore, protected
from disclosure. If you have received this communication in
error, please notify us immediately by replying to this
message and deleting it from your computer without copying
or disclosing it.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: RE: Problem with ToC formatting in Writer

by Rob Clement-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

McLauchlan, Kevin wrote:

> UPDATE:  I just updated the ToC on another document that didn't have the problem, and now it does, for the entire ToC.
>
> CRAP!  
>
> So this means there's some kind of global setting that I don't know about, in OOo 3.1.1?
>
> What might it be? Where to look?
>  
> What would be the proper (search) term for "set all ToC entries to overwrap by two lines"?
>
>
>
>> -----Original Message-----
>> From: McLauchlan, Kevin [mailto:Kevin.McLauchlan@...]
>>
>> G'day all.
>>
>> OOo 3.1.1 on Win XP Pro x64.
>>
>> I've got a couple of documents with Table of Contents where
>> the entries have styles applied (Contents 1, Contents 2,
>> etc.), according to the heading level that they capture from
>> the main body of the document. The resulting appearance of
>> entries for the first chapter or three are correct, but all
>> the succeeding chapters (in the ToC) have the page number
>> wrapping to the next (or later) line.   So I get the heading
>> text followed by a line of leader dots to the margin, another
>> line of leader dots on the next line, and then FINALLY the
>> page number on the third line... against the left margin.
>>
>> I'll try to illustrate what I mean. Imagine this is my table
>> of contents. It starts off ok.
>>
>>
>> Chapter 1  The Intro Stuff .................................... 1
>>
>>    Introduction ............................................... 1
>>    Something else ............................................. 2
>>    Yet more something ......................................... 3
>>
>> Chapter 2  The Config Stuff ................................... 5
>> :
>> Chapter 3  The Network Stuff .................................. 9
>> :
>> Chapter 4  The Meat of the Matter .............................
>> ...............................................................
>> 13
>>    Overview ...................................................
>> ...............................................................
>> 13
>>    Next thing .................................................
>> ...............................................................
>> 14
>>
>> The mess happens at Chapter 4.
>> The various entries for Ch 4 have the same styles associated with
>> them as the equivalent entries for Ch 1, 2, and 3. If I open/edit
>> the style, it's got the same settings if it's style "Contents 2" in
>> Chapter 4 as it does if it's "Contents 2" in Chapter 1 of the ToC.
>>
>> What else should I be looking at?
>>
>> I've tried deleting the table and re-inserting/re-creating it. It
>> does the same.  
>>
>> The Preface and Chapters One through Four are OK.
>>
>> Every chapter after Chapter Four gets its ToC entries screwed-up in
>> this way.
>>
>> I can't see anything different/special between the actual headings
>> in the chapters, that are being captured for these ToC entries.
>>
>> All the entries are active links to their respective headings in
>> the book.
>>
>> Suggestions?
>>
>> I have several other books that don't show this problem. Don't know
>> where it came from, except all were originally MS Word documents.
>>
>>
>>  - Kevin
> The information contained in this electronic mail transmission
> may be privileged and confidential, and therefore, protected
> from disclosure. If you have received this communication in
> error, please notify us immediately by replying to this
> message and deleting it from your computer without copying
> or disclosing it.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>
Kevin

Could you please supply some extra information

What page size are you using?

How wide are the page margins?

Could you please try and set the page margins to be 1 inch rather than
the default 1.25 and see if that makes a difference.

Thanks

Rob

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: RE: Problem with ToC formatting in Writer

by Andy-264 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

McLauchlan, Kevin wrote:

> UPDATE:  I just updated the ToC on another document that didn't have the problem, and now it does, for the entire ToC.
>
> CRAP!  
>
> So this means there's some kind of global setting that I don't know about, in OOo 3.1.1?
>
> What might it be? Where to look?
>  
> What would be the proper (search) term for "set all ToC entries to overwrap by two lines"?
>

Kevin,

I can not find anywhere that there is a "global" setting for the ToC.  I
did find where it can be formated.  Left click on the Toc, in the pop up
menu there is an "Edit Index/Table" option.  Right click on that option.

A widow opens that allows several selections for making changes.  The
"Entries" tab may be where you will find what your looking for.

If you want send me a copy of the file you have and I will take a look
and see if I can spot something out of place.


--
Andy Brown


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: RE: Problem with ToC formatting in Writer

by McLauchlan, Kevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

  Rob Clement [mailto:rob@...] replied:

> >> -----Original Message-----
> >> From: McLauchlan, Kevin [mailto:Kevin.McLauchlan@...]
> >>
> >> G'day all.
> >>
> >> OOo 3.1.1 on Win XP Pro x64.
> >>
> >> I've got a couple of documents with Table of Contents where
> >> the entries have styles applied (Contents 1, Contents 2,
> >> etc.), according to the heading level that they capture from
> >> the main body of the document. The resulting appearance of
> >> entries for the first chapter or three are correct, but all
> >> the succeeding chapters (in the ToC) have the page number
> >> wrapping to the next (or later) line.   So I get the heading
> >> text followed by a line of leader dots to the margin, another
> >> line of leader dots on the next line, and then FINALLY the
> >> page number on the third line... against the left margin.
> >>
> >> I'll try to illustrate what I mean. Imagine this is my table
> >> of contents. It starts off ok.
> >>
> >>
> >> Chapter 1  The Intro Stuff .................................... 1
> >>
> >>    Introduction ............................................... 1
> >>    Something else ............................................. 2
> >>    Yet more something ......................................... 3
> >>
> >> Chapter 2  The Config Stuff ................................... 5
> >> :
> >> Chapter 3  The Network Stuff .................................. 9
> >> :
> >> Chapter 4  The Meat of the Matter .............................
> >> ...............................................................
> >> 13
> >>    Overview ...................................................
> >> ...............................................................
> >> 13
> >>    Next thing .................................................
> >> ...............................................................
> >> 14
> >>
> >> The mess happens at Chapter 4.
> >> The various entries for Ch 4 have the same styles associated with
> >> them as the equivalent entries for Ch 1, 2, and 3. If I open/edit
> >> the style, it's got the same settings if it's style
> "Contents 2" in
> >> Chapter 4 as it does if it's "Contents 2" in Chapter 1 of the ToC.
> >>
> >> What else should I be looking at?
> >>
> >> I've tried deleting the table and re-inserting/re-creating it. It
> >> does the same.  
> >>
> >> The Preface and Chapters One through Four are OK.
> >>
> >> Every chapter after Chapter Four gets its ToC entries
> screwed-up in
> >> this way.
> >>
> >> I can't see anything different/special between the actual headings
> >> in the chapters, that are being captured for these ToC entries.
> >>
> >> All the entries are active links to their respective headings in
> >> the book.
> >>
> >> Suggestions?
> >>
> >> I have several other books that don't show this problem.
> Don't know
> >> where it came from, except all were originally MS Word documents.
> >
> Kevin
>
> Could you please supply some extra information
>
> What page size are you using?
>
> How wide are the page margins?
>
> Could you please try and set the page margins to be 1 inch
> rather than
> the default 1.25 and see if that makes a difference.
>

It's gone from A4 to North American Letter size (8.5x11 inches) with Inner margin at 1.00 inch and Outer margin at 0.61 inch (obviously Page Layout is "Mirrored").



 - K


The information contained in this electronic mail transmission
may be privileged and confidential, and therefore, protected
from disclosure. If you have received this communication in
error, please notify us immediately by replying to this
message and deleting it from your computer without copying
or disclosing it.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: RE: Problem with ToC formatting in Writer

by Michele Zarri :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/11/6 McLauchlan, Kevin <Kevin.McLauchlan@...>:

> UPDATE:  I just updated the ToC on another document that didn't have the problem, and now it does, for the entire ToC.
>
> CRAP!
>
> So this means there's some kind of global setting that I don't know about, in OOo 3.1.1?
>
> What might it be? Where to look?
>
> What would be the proper (search) term for "set all ToC entries to overwrap by two lines"?
>
>
>
Hello Kevin,

A simple test you can make is to insert a fresh ToC and see if the
problem still occurs.

It may be that the style for the headings 4-x is not the same as that
for chapters 1-3,
In this case the issue could be in the structure of the entries.

Cheers,

Michele

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: RE: Problem with ToC formatting in Writer

by McLauchlan, Kevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

  Michele Zarri [mailto:m.zarri@...] suggested:
 

> 2009/11/6 McLauchlan, Kevin <Kevin.McLauchlan@...>:
> > UPDATE:  I just updated the ToC on another document that
> didn't have the problem, and now it does, for the entire ToC.
> >
> > C--P!
> >
> > So this means there's some kind of global setting that I
> don't know about, in OOo 3.1.1?
> >
> > What might it be? Where to look?
> >
> > What would be the proper (search) term for "set all ToC
> entries to overwrap by two lines"?
> >
> >
> >
> Hello Kevin,
>
> A simple test you can make is to insert a fresh ToC and see if the
> problem still occurs.
>
> It may be that the style for the headings 4-x is not the same as that
> for chapters 1-3,
> In this case the issue could be in the structure of the entries.
>
> Cheers,
>
> Michele

How much is imported from the headings into the ToC? I see that
the text is imported, but what else... and where does it hide?
Or where is it specified which aspects of formatting or ?? will
be part of what is imported?

I tried deleting the ToC entirely and inserting a new one (even at a new location).

The problem persists.


 Chapter 1  The Intro Stuff .................................... 1

    Introduction ............................................... 1
    Something else ............................................. 2
    Yet more something ......................................... 3

 Chapter 2  The Config Stuff ................................... 5
 :
 Chapter 3  The Network Stuff .................................. 9
 :
 Chapter 4  The Meat of the Matter  
 ...............................................................
 13
    Overview  
 ...............................................................
 13
    Next thing  
 ...............................................................
 14

The "Contents2" heading items (for example) that have the problem,
or "Contents2" heading items that don't have the problem, appear
to have identical settings in the style editor dialog.

In the chapters of my document, if I select a source "Heading 2"
that corresponds to the ToC "Contents 2" that shows the problem,
OR if I select a source "Heading 2" for a "Contents2" that
DOESN'T show the problem in the ToC, they are identical.
If I change/edit the style for one "Heading 2", it changes for
the other.

Where ELSE could a magical override of SOME "Contents2" items
in my ToC be coming from?

My imagination fails me as to how you could _deliberately_ make
this happen, so I don't know where to look for how it is
unintentionally (on my part) occurring.

The .ODT file is a little over 1MB in size.

At this point, various departments are screaming for the docs and
I am holding up the release of the product - always a good move
for one's career prospects ... or even prospects of continuing
employment (not).  So I'll have to release with the ugly problem not
solved, and apologize for it in the Release Notes.

INTERESTING

For items in the ToC, there's a left-aligned tab-stop over near
the right margin, and then the right-aligned stop exactly at that
same margin for the page number.

If I drag a tab-stop slightly to the left (one character space),
the problem goes away FOR THAT ENTRY.  
The page number associated with that entry comes up two lines
and lands in its proper spot over near the right margin.

Obviously I'm not going to do that for the document because:

a) there are dozens of them
b) the problem comes back instantly, next time I generate the ToC
c) the stops (both kinds) are in IDENTICAL positions for the NON-PROBLEM entries.

Yes, this document came from Word, originally.

ALSO INTERESTING
The problem does not affect Contents 3 items. Only Contents 2 and Contents 1.

If I simply CLICK in the top ruler, which adds a left-aligned tab stop
at the place I click, then the page number jumps up to its correct
position at the end of the line following the heading text (though
without the "....." leader dots.  This is WITHOUT disturbing the left  
and right tab stops that already existed over by the right margin.

DID I MENTION...
That the Paragraph Style dialog for the broken ToC entries has a
right-aligned tab-stop defined (for the page number) but DOES NOT
have an explicit left-aligned tab-stop defined, yet there's a
left-aligned tab marker visible in every ToC entry.
Before discovering that, I thought I was going to outfox this
problem by simply deleting/removing the entry that specified the
problematic tab-stop, but apparently that one is specified somewhere
in an alternate universe and then channeled to my ToC by invisible
means.  Cool, I suppose, but not useful.

 - Kevin



The information contained in this electronic mail transmission
may be privileged and confidential, and therefore, protected
from disclosure. If you have received this communication in
error, please notify us immediately by replying to this
message and deleting it from your computer without copying
or disclosing it.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: RE: Problem with ToC formatting in Writer

by Michele Zarri :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

McLauchlan, Kevin wrote:
[snip]

> INTERESTING
>
> For items in the ToC, there's a left-aligned tab-stop over near
> the right margin, and then the right-aligned stop exactly at that
> same margin for the page number.
>
> If I drag a tab-stop slightly to the left (one character space),
> the problem goes away FOR THAT ENTRY.  
> The page number associated with that entry comes up two lines
> and lands in its proper spot over near the right margin.
>
> Obviously I'm not going to do that for the document because:
>
> a) there are dozens of them
> b) the problem comes back instantly, next time I generate the ToC
> c) the stops (both kinds) are in IDENTICAL positions for the NON-PROBLEM entries.
>
> Yes, this document came from Word, originally.
>  
I think you found your problem here although I am a bit confused since I
cannot see where the tabs are in my ToCs unless I deselect the "protect
from manual changes in the Index/Table page of the Insert Index/Table
dialog.
It seems clear though that the issue is created by an additional tab
stop in fact it starts occurring as soon as the page number is on two
digits. It seems that there is not enough room for the page number to
honour the tab stop settings and this is why it is all shifted to a new
line.

I guess you have already tried this, but it is worth trying again...

1. right click on the TOC and select edit Index/Table
2. go to the Entries tab and select level 1 on the left menu
3. remove any unwanted "T" from the structure (that is leave only one T
between the entry (E) and page number (#) right aligned, with filling
character .
4. repeat for level 2

Also, just in case, select the para styles Contents 1 and Contents 2 and
click on the "default" button to reset all the settings.

Hope that helps,

Cheers,

Michele


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: RE: Problem with ToC formatting in Writer

by McLauchlan, Kevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> From: Michele Zarri [mailto:m.zarri@...] said:
[...]

>
> I guess you have already tried this, but it is worth trying again...
>
> 1. right click on the TOC and select edit Index/Table
> 2. go to the Entries tab and select level 1 on the left menu
> 3. remove any unwanted "T" from the structure (that is leave
> only one T
> between the entry (E) and page number (#) right aligned, with filling
> character .
> 4. repeat for level 2
>
> Also, just in case, select the para styles Contents 1 and
> Contents 2 and
> click on the "default" button to reset all the settings.

I "solved" it by creating a clean document, faking some text and creating/applying styles with the same names as my heading styles from the culprit document, creating a ToC in the clean document, then copying and pasting into the culprit doc, and updating the ToC.  Seemed to work... sorta... kinda... maybe... I'm not confident it'll stay that way.

I guess this is one of the many joys of inheriting Word documents from people who had their own special ways of producing docs.

 - KevinThe information contained in this electronic mail transmission
may be privileged and confidential, and therefore, protected
from disclosure. If you have received this communication in
error, please notify us immediately by replying to this
message and deleting it from your computer without copying
or disclosing it.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: RE: Problem with ToC formatting in Writer

by pitonyak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 11/10/2009 11:43 AM, McLauchlan, Kevin wrote:

>> From: Michele Zarri [mailto:m.zarri@...] said:
>>      
> [...]
>    
>> I guess you have already tried this, but it is worth trying again...
>>
>> 1. right click on the TOC and select edit Index/Table
>> 2. go to the Entries tab and select level 1 on the left menu
>> 3. remove any unwanted "T" from the structure (that is leave
>> only one T
>> between the entry (E) and page number (#) right aligned, with filling
>> character .
>> 4. repeat for level 2
>>
>> Also, just in case, select the para styles Contents 1 and
>> Contents 2 and
>> click on the "default" button to reset all the settings.
>>      
> I "solved" it by creating a clean document, faking some text and creating/applying styles with the same names as my heading styles from the culprit document, creating a ToC in the clean document, then copying and pasting into the culprit doc, and updating the ToC.  Seemed to work... sorta... kinda... maybe... I'm not confident it'll stay that way.
>
> I guess this is one of the many joys of inheriting Word documents from people who had their own special ways of producing docs.
>
>    
I found many wonderful joys while dealing with Word documents. Something
about the way they handle (or don't) styles and then converting that
mess to OOo.

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...