Solved

Word 2010 Headings and Styles, Oh My!  (Creating Headings)

Posted on 2012-04-11
5
682 Views
Last Modified: 2012-04-30
We are new to using Word in our office and in the process of converting forms from Word Perfect.  (No snide comments, please!)  In order to make use of a Table of Contents and references, I need to use either Headings/Style or Paragraph Lists going forward.  The one place I am stuck is this:  I need to separate the heading ARTICLE I and it's title MY RETIREMENT PLAN on two separate lines, but as one "style".  For example:

ARTICLE I
MY RETIREMENT PLAN

Section 1.1 - Etc.

Is this possible?  I thought perhaps a Line Break would be the answer (my small knowledge from older versions of Word), but I'm not sure this applies.

Your answer will be greatly appreciated!
0
Comment
Question by:MariaJoyal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 37833512
It isn't clear what the problem is. You can have two sequential paragraphs with the same style. If they are in one line at the moment, just position the cursor where you wish the lines to split, and press Enter.
0
 
LVL 21

Expert Comment

by:EricFletcher
ID: 37833552
A line break will work (Shift-Enter) to separate the lines but keep them within the same paragraph (and therefore, style). Another alternative for managing how headings get broken across two lines is to use fixed spaces (Ctrl-Shift-Spacebar) between words that need to be locked together. Either method will help manage how a heading ¶ is set on >1 line within the body of a document.

However, it sounds like you are having trouble with how the table of contents function deals with the styled paragraphs. Unfortunately, the TOC field code (which is what generates the table of contents) ignores the line break and lets the 2 lines run together.

One solution is to set the text as 2 different styles, and then use switches in the TOC field to assign the different styles to 2 different TOC levels. The default TOC field simply collects the headings to the level you specify, and associates them with the equivalent TOC style (i.e. Heading 1 ::> TOC 1; Heading 2 ::> TOC 2; etc.). You can reveal the TOC field code with Alt-F9, and then edit it to get much more functionality. Refer to this Microsoft page for a description of available switches.

For example, consider the following edited TOC field code:
{ TOC \t "Heading 1,1,Title,4,Subtitle,1" \n 4-4 \b "forToC" }

The "\t" switch is used to set the relationships of styles within the document to TOC styles in the table of contents. Here I have set both Heading 1 and Subtitle styles to appear in the table of contents as "TOC 1" styled paragraphs -- and any Title styles in the document will appear as "TOC 4" styled ¶s. Further, the "\n" switch turns off page numbering for the level 4 (TOC 4s). The final switch -- \b -- limits the table of contents to just the area of the document within the bookmark named "forToC". This last switch can be useful if you use heading levels within the front- and back-end parts of a document but do not want them included within the table of contents (subheads in an Appendix for example.)

The other way to manage a ToC is to edit the collected content after building it (so in your case, insert the Shift-Enter after the "Article I"). The caution is that you would need to redo any such edits after rebuilding the ToC. Just updating the page numbers won't reformat anything, but rebuilding will recreate it from scratch.
0
 

Author Comment

by:MariaJoyal
ID: 37833852
Eric, all I can say is WOW!  I'll work from this angle and see what happens. Thanks for the explanation.
0
 

Author Comment

by:MariaJoyal
ID: 37834879
Well... Working between the Multilevel lists and Styles gives me the look in the document I want.  I created Styles that are headings and used the Multilevel list to connect with the styles.

From here, I tried applying the TOC from the default choices.  The formatting isn't close to what I would like to see.  Also, Alt+F9 only shows me the codes on the table page, not the text.

What have I missed?
0
 
LVL 21

Accepted Solution

by:
EricFletcher earned 500 total points
ID: 37835067
Alt-F9 toggles between showing the field codes and the result of the field code. I always recommend changing Word's "Options, Advanced, Show document control, "Field shading:=Always" so that your field code results are displayed with a grey background. This only shows up on the screen (i.e. not on your printouts) and makes it easy to differentiate between typed and calculated content.

As I noted earlier, the default table of contents settings from the dialog box creates a very basic field code. By default, the dialog will create a field code that looks something like { TOC \o "1-3" }.  This means that Heading 1 ¶s will be formatted with the TOC 1 style in your table of contents (Heading 2s will be set as TOC 2; Heading 3s as TOC 3, etc.)

If you want to include other styles that are not Heading X levels, use the \t switch.

To have specific ¶s within your table of contents formatted differently, change the style definition of the associated TOC X style.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Authors who set out to write any sort of lengthy piece for online submission—be it a long question or comment on a technical form, an article, or a substantial blog entry—often find it useful to work up a draft in an editor other t…
The Selection object is designed for user interaction. It has a Range property, so it can be used in most places that a Range object can. Recorded macros must use the Selection because they are simply copying what the user is doing. A Range prope…
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question