Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-02-2018, 09:05 AM
slaycock slaycock is offline TOC:  Hanging indent is acting as an unwanted tab stop Windows 7 64bit TOC:  Hanging indent is acting as an unwanted tab stop Office 2016
Expert
TOC:  Hanging indent is acting as an unwanted tab stop
 
Join Date: Sep 2013
Posts: 256
slaycock is on a distinguished road
Default TOC: Hanging indent is acting as an unwanted tab stop

I have a problem with Word 2016 (native not compatible format) where the page numbers in a TOC are being positioned incorrectly.

I read up on Jason tabs and this seems to be a related but different problem.

The problem I'm having is that when a title is shorter than the indent of the hanging indent, the page number aligns at the hanging indent rather than at the right margin. i.e. it seems like the hanging indent is acting as an unwanted tab stop.

I use an incrementally indenting TOC with each level set to have a hanging indent of 2 cm (to accommodate the long section numbers.) e.g left margin is set as 2+ ((outline level-1)/2) cm , the hanging indent is at (left margin -2cm).

TOC 2 is derived from TOC 1 etc.

All TOC levels have two tabs,

• Left justified, no leader, at the left margin


• Right justified, with a '.' leader at 16 cm for the page number

The right margin is set at 15.5 cm

If I remove the tab stop in the TOC style that aligns with the Hanging Indent the problem persists.

If I increase the size of the hanging indent then the problem persists.

The TOC, like all my styles, are set programmatically.

There are no tabs set in the TOC base style ('Normal').

Unlike earlier versions of word the right tab is not respected so page numbers align at the right margin rather than a short distance beyond it.

Does anyone have suggestion on how to correct this problem.

Our temporary solution is to use a longer heading name (e.g. 'List of Definitions', rather than 'Glossary').
Reply With Quote
  #2  
Old 01-02-2018, 02:32 PM
macropod's Avatar
macropod macropod is offline TOC:  Hanging indent is acting as an unwanted tab stop Windows 7 64bit TOC:  Hanging indent is acting as an unwanted tab stop Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

It would be easier to diagnose with a document containing the actual TOC you're using. See also: https://www.msofficeforums.com/word/...html#post52345
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 01-02-2018, 07:06 PM
Charles Kenyon Charles Kenyon is offline TOC:  Hanging indent is acting as an unwanted tab stop Windows 10 TOC:  Hanging indent is acting as an unwanted tab stop Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,125
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

You can set a right indent on your TOC that is inside the right margin and set the right-tab for the TOC outside the right indent but inside the margin.
Reply With Quote
  #4  
Old 01-03-2018, 12:03 PM
slaycock slaycock is offline TOC:  Hanging indent is acting as an unwanted tab stop Windows 7 64bit TOC:  Hanging indent is acting as an unwanted tab stop Office 2016
Expert
TOC:  Hanging indent is acting as an unwanted tab stop
 
Join Date: Sep 2013
Posts: 256
slaycock is on a distinguished road
Default

I've attached a document which demonstrates the problem.


The indenting of the page number occurs because I have set a hanging indent to accommodate headings with 'complex' heading numbers.


It just so happens that 'Glossary' is shorter than the 2 cm I've used for the hanging indent and consequently the tab that Word inserts after the Heading text gets stuck at the hanging indent.


In the attached document the problem disappears if you set the hanging indent for TOC 1 style to 1.5 cm, But this then causes problems elsewhere with the numbering scheme

I'd be happy to accept a workaround that allowed me to pad the 'Glossary' title with non visible characters but unfortunately, when adding non-breaking spaces, hidden ' leader' characters or just tabs, Word happily ignores the non visible text (even when using charformat for the hidden text).

PS. Thanks for the tip about the right margin. That resolves the issues I was having with wrapping heading text appropriately in the TOC.
Attached Files
File Type: docx TOC problem demonstrator.docx (79.0 KB, 12 views)
Reply With Quote
  #5  
Old 01-03-2018, 02:59 PM
macropod's Avatar
macropod macropod is offline TOC:  Hanging indent is acting as an unwanted tab stop Windows 7 64bit TOC:  Hanging indent is acting as an unwanted tab stop Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You have a number of options, including:
1. Delete the first tab-stop and reduce the amount of hanging indent for the TOC1 Style;
2. Map a different TOC Style to the 'SubTitle' Style, using an appropriate paragraph format for the TOC Style you choose.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #6  
Old 01-15-2018, 09:59 AM
slaycock slaycock is offline TOC:  Hanging indent is acting as an unwanted tab stop Windows 7 64bit TOC:  Hanging indent is acting as an unwanted tab stop Office 2016
Expert
TOC:  Hanging indent is acting as an unwanted tab stop
 
Join Date: Sep 2013
Posts: 256
slaycock is on a distinguished road
Default

I finally got a working solution. As I use dots as a leader between the toc entry and the page number it is possible to pad a very short entry with periods which are coloured white.

These then show up as slightly different dots in the TOC but ensure that the page number lines up OK.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hanging Indent Issue in Word 2013 erinkcochran Word 2 11-13-2014 10:01 AM
TOC:  Hanging indent is acting as an unwanted tab stop Can't grab hanging indent slider because of a tab stop in exact same spot WaltR Word 2 10-28-2014 09:56 AM
TOC:  Hanging indent is acting as an unwanted tab stop Hanging indent within a numbered list? uskedaddle Word 3 02-27-2012 08:28 AM
TOC:  Hanging indent is acting as an unwanted tab stop Hanging Indent in Numbered List donnadelayed Word 1 05-04-2011 06:44 PM
Hanging Indent bixby Word 0 07-22-2010 07:32 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:39 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft