Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Collapse or expand

parts of a document
Word for Microsoft 365 Word for the web Word 2019 Word
2016 Word 2013
WindowsWeb

When you’re working on a long, complicated


document, you can collapse everything except the part
you want to focus on. Or, if you think you might be
overloading your readers with too much information,
you can display summaries and leave it to your readers
to open the summary and read the details if they want.

The ability to collapse and expand content in your


document is based on its outline level. You can quickly
add an outline level and make part of your document
collapsible by adding a heading using Word's built-in
styles.
After applying the heading style, you’ll see a small
triangle when you move your cursor over the heading.
Click the triangle to collapse the body text and
subheadings below it.

Tip:  If you’re working on a touch device, tap to place your cursor in the heading to see the triangle.

Click the triangle again to expand that part of the


document.

To collapse or expand all the headings in your


document, right-click the heading and
click Expand/Collapse > Expand All
Headings or Collapse All Headings.
When you close and reopen a document, the headings
will be expanded by default. If you want the document
to open with the headings collapsed, follow these
steps.

1. Place your cursor in the heading.


2. On the Home tab, click the arrow in
the Paragraph group.

3. In the Paragraph dialog box, click the checkbox next


to Collapsed by default.
4. Click OK.

Creating Expand/Collapse Sections (Drop-Down Hotspots) in Word


You can create sections of content that expand and collapse when you click a link or hot spot. This structure allows
you to create items, such as tasks with numbered procedures, bulleted lists, or definitions, that are easy to scan.
Users can then expand individual items to display additional information.

Hot spots for expand/collapse sections initially display in one of the following states:

The content is initially collapsed and will expand beneath the hotspot when the user clicks the hotspot. Clicking the
hotspot a second time causes the expanded content to return to its original collapsed state.

The content is initially expanded and will collapse or disappear from beneath the hotspot when the user clicks the
hotspot.

You create expand/collapse sections in Microsoft Word source documents by using the following items:

An Expand/Collapse paragraph style

A DropDownEnd marker

You use an Expand/Collapse paragraph style to start expand/collapse sections and a DropDownEnd marker to
specify where the content in the expand/collapse section ends. The Stationery defines whether the sections should
initially be expanded (shown) or collapsed (hidden) and the image used to show the state of the section.

To create expand/collapse sections, your Stationery and template must have the following items configured:

An Expand/Collapse paragraph style

A DropDownEnd marker

Your output format must also support this feature. For more information about output formats that support this
feature, see Features Available in Each Output Format.

The following procedure provides an example of how to create expand/collapse sections in Microsoft Word source
documents using Microsoft Word 2003. Steps for creating expand/collapse sections in Microsoft Word may be
different in other versions of Microsoft Word.

To create an expand/collapse section in a Microsoft Word source document

1.In your Microsoft Word source document, identify a topic that contains text for which you want to create an
expand/collapse section.
2.Apply an Expand/Collapse paragraph style to the text you want users to click to expand or collapse content.

For example, in the following sample procedure, you would apply the Expand/Collapse paragraph style to the To
open a project text.

To open a project

a.On the File menu, click Open.

b.Browse to the location of the project on your local computer.

c.Select the project, and then click Open.

3.Insert your cursor at the end of the content you want to display in the expand/collapse section.

For example, in the following sample procedure, you would insert your cursor after the period in the last sentence
of the procedure, Select the project, and then click Open.

To open a project

a.On the File menu, click Open.

b.Browse to the location of the project on your local computer.

c.Select the project, and then click Open.

4.On the WebWorks menu, click Markers.

5.In the Markers field, select the DropDownEnd marker.

6.Leave the Value field blank.

7.Click OK. ePublisher inserts a DropDownEnd marker at your insertion point. This marker identifies where the contents
of your expand/collapse section will end.

8.Save your Microsoft Word source document.

9.Generate output for your project. For more information, see Generating Output.

10.In Output Explorer, go to the page where you created the expand/collapse section and verify that ePublisher created
the expand/collapse section and that the expand/collapse section displays the content you specified. For more
information, see Viewing Output in Output Explorer.

Last modified date: 04/22/2019

You might also like