Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-26-2013, 12:03 AM
xyz123 xyz123 is offline Word 2010 table of content - font Windows XP Word 2010 table of content - font Office 2007
Novice
Word 2010 table of content - font
 
Join Date: Apr 2012
Posts: 3
xyz123 is on a distinguished road
Default

Quote:
Originally Posted by Stefan Blom View Post
If you display the TOC field code, what does it say? Press Alt+F9 to show/hide field codes.

Chances are that Heading 2 isn't mapped to the TOC 2 style (which it is by default) but to some other style. Its formatting will then be controlled by that other TOC style.
Pressing Alt +F9 reveals this code: {TOC \O "1-2" \H\Z\U}

And on the same note one more question. how do i find out which TOC style is used in the document. Normally i select text and see which Style is highlighted in "styles" box in top bar. But with TOC i cant see any highlights despite scralling through all available options.



Ta
Reply With Quote
  #2  
Old 09-26-2013, 02:25 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Word 2010 table of content - font Windows 7 64bit Word 2010 table of content - font Office 2013
Moderator
 
Join Date: Aug 2011
Posts: 4,036
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

The TOC 1 style controls the formatting of level 1 entries in the table of contents, TOC 2 controls the formatting of level 2 entries, etc.

Your TOC field, or more specifically the \o "1-2" switch, tells me that styles whose "Outline level" (as seen in the Paragraph dialog box) is 1 or 2 are included in the TOC. Heading 1 paragraphs always have Outline level 1, and Heading 2 paragraphs always have "Outline level" 2; this is hardcoded and can't be changed. In this case, you should modify the TOC 2 style, which corresponds to Heading 2. Is that what you have been doing?
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2010 table of content - font text appears in prompt font in RTF content control eli.rhodes Word 1 09-18-2013 08:32 AM
Word 2010 table of content - font Word 2010 freezes when changeing font K.Baillie Word 2 11-30-2011 04:54 PM
Word 2010: Book Fold, content not scaled down accordingly??? tinfanide Word 0 09-02-2011 07:17 AM
Word 2010 table of content - font Font problem in Word 2010 meh3re Word 2 09-26-2010 02:54 PM
How to add Table of Content in word document by C# ! ! ! arun singh Word 0 11-12-2008 11:21 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:41 PM.


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